News for hackers. Stuff that matters.
Re:Design Patterns Are Temporary, Language Features Are Forever by BerislavLopac on Tuesday September 10, 2024 @05:02AM (#41498750)
My experience was some 20-odd years ago, when I was trying to learn design patterns by implementing them in PHP. Specifically, I built the whole array of abstract and concrete factories and all that, until I realised that it can all be replaced by something like:

  $className = "MyClass";
  $classInstance = new $$className();

There are no comments on this comment yet.