Digital Craftsman
  • Search
Sign in Subscribe
javascript

JS: The Right Way

  • Christian Kolb

Christian Kolb

Feb 2, 2014

A quick reference to best practices for writing JavaScript — links to code patterns and tutorials from around the web

JS: The Right Way

Reduce input of functions to improve readability

Reduce input of functions to improve readability

One of the elements we evaluate when reading a function call are the parameters given to it. To understand what's happening inside (not how, just what) it's necessary to see the relevant data as part of the function call. Counterintuitiv, this sometimes means to increase the amount of parameters or
Mar 13, 2023 1 min read
Where and how to use abstraction

Where and how to use abstraction

Abstraction is one if the first things a developer learns when starting programming. It's repeated again and again from "Clean Code" to every other introduction book. It's so ingrained, that we don't really question why. As most developers I also started to use abstraction everywhere. Abstraction as a goal in
Mar 8, 2023 2 min read
Delete JSON property in Postgres

Delete JSON property in Postgres

When migrating JSON data in Postgres, it's often necessary to delete properties within a JSON object. There's a neat operator for it #-. In this example the property comment was stored as an empty string instead of the property just missing. So we delete the property for all domain messages
Dec 26, 2022
Digital Craftsman © 2023
  • Datenschutz
  • Impressum
Powered by Ghost