Digital Craftsman
  • Search
Sign in Subscribe
javascript

JavaScript Tips, Tricks and Best Practices

  • Christian Kolb

Christian Kolb

Jan 27, 2014

A nice collection of javascript tips, tricks and best practices:

45 Useful JavaScript Tips, Tricks and Best
Practices

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