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

Automatically register doctrine types in Symfony with compiler pass

Automatically register doctrine types in Symfony with compiler pass

I'm using more and more value objects in my projects. To integrate them with doctrine, I also create custom doctrine types. Usually you have to register them manually one by one. But you can also register them through a compiler pass to make your live easier. To register all doctrine
Sep 19, 2023 1 min read
Add XDebug to unstable PHP version

Add XDebug to unstable PHP version

My packages support the two latest minor versions of PHP. As the first alpha of PHP 8.3 was just released, I'm upgrading the packages to PHP 8.3 and dropping PHP 8.1 from them. This way I'm able to use readonly for my classes. I use XDebug in
Jun 24, 2023 2 min read
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
Digital Craftsman © 2023
  • Datenschutz
  • Impressum
Powered by Ghost