symfony

Factories and dependency injection (mglaman.dev)

Last week I wrote about dependency injection anti-patterns in Drupal. These anti-patterns occur when your service's constructor has logic that interacts with the injected dependent services beyond assigning them to properties. These anti-patterns include creating a new object from a factory or retrieving an object from a stack....

Drupal 10: Using A Lazy Builder To Create A Dynamic Button (www.hashbangcode.com)

Adding dynamic and interactive elements to a web page can be a challenge, and there are a few techniques available in Drupal to allow for this. One solution might be to add a form to the page, but this can cause problems with the cache system. Adding forms actually makes it slightly difficult to cache the page properly and you...

Dependency injection anti-patterns in Drupal (mglaman.dev)

Whenever I have done an audit for a Drupal codebase, one of the first things I manually review and profile is dependency injection anti-patterns in custom code and any contributed modules used. The anti-pattern isn't for accessing services statically through \Drupal: service. These anti-patterns live within the class's...

PostgreSQL and JSON – How to Use JSON Data in PostgreSQL (www.freecodecamp.org)

PostgreSQL is a powerful open-source relational database management system (RDBMS). It was initially created as a successor to the Ingres database system and was later named "PostgreSQL" (short for "Post-Ingres SQL"). PostgreSQL is known for its robustness, reliability, and scalability, making it a popular choice for large and...

  • All
  • Subscribed
  • Moderated
  • Favorites
  • Symfony
  • ngwrru68w68
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • InstantRegret
  • GTA5RPClips
  • Youngstown
  • everett
  • slotface
  • rosin
  • osvaldo12
  • mdbf
  • kavyap
  • cubers
  • JUstTest
  • modclub
  • normalnudes
  • tester
  • khanakhh
  • Durango
  • ethstaker
  • tacticalgear
  • Leos
  • provamag3
  • anitta
  • cisconetworking
  • megavids
  • lostlight
  • All magazines