DEV Community

Shariful Ehasan
Shariful Ehasan

Posted on

What’s one PHP tip, pattern, or practice you wish you learned sooner and why?

It could be:

  • Using Composer properly
  • Understanding PSR standards
  • Embracing object-oriented programming
  • Writing unit tests
  • Dependency injection
  • Using Laravel (or Symfony) instead of raw PHP

Top comments (3)

Collapse
 
nathan_tarbert profile image
Nathan Tarbert

been there tbh, figuring stuff out the hard way made stuff stick but took me ages - you reckon starting with all the right patterns up front actually makes for better devs though or does messing up help more

Collapse
 
thecodeliner profile image
Shariful Ehasan

Yeah, I feel that! Struggling through things definitely makes it stick, but it can be a slow way 😅

Collapse
 
lawondyss profile image
Ladislav Vondráček
  • Using Domain-Driven Design