aeveltstra, (edited ) to Java
@aeveltstra@mastodon.social avatar

Reflection considered harmful

In the #java and #csharp OOP programming languages, #reflection is used to not only review an object’s private fields and methods, but also to access and change them.

This is used for instance by large #dependencyinjection libraries and frameworks, by preprocessors, and of course by the standard library itself.

It is dangerous because it can break a class’ definition of what should be private and inaccessible.

Every programmer should know.

brotkrueml, to php
@brotkrueml@phpc.social avatar

On the #PHP User Group Rhein-Neckar Oliver Kossin demystified #DependencyInjection with Starfleet as example
#phpugmrn

image/jpeg
image/jpeg

DiazCarrete, to haskell
@DiazCarrete@hachyderm.io avatar
cspray, to php
@cspray@phpc.social avatar

I released v2 of Annotated Container! It is a pretty big milestone for a project I've spent a lot of time working on. Getting this release out allows me to start thinking about how to continue improving the library.

To commemorate the occasion I wrote a deep-dive article on how Annotated Container handles autowiring.

https://www.cspray.io/blog/autowiring-and-annotated-container/

#php #dependencyinjection

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