oliver,
@oliver@phpc.social avatar

One of the annoyances found in the codebase I'm currently busy with is finding many traits that are used in one single class. Those traits have literally zero other places they could be used at, so... why? Just because someone else did it, you don't have to the same thing. Also, don't do that if you think it just may be needed in the future. Do it only if that's really, really needed now.

djumaka,
@djumaka@phpc.social avatar

@oliver the answer is oftern - bad design. I'm in a similar project, where traits are used to organize common functionality AND to organize different functionality within a single class. The very description shows the issue, but there is some people issue usually to explain why should we go full OOP.
I also click on the "premature optimization"- people don't get it that keeping your impact at any point to the minimum is what business will benefit the most.

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