PLAY PODCASTS
When should you use final classes or private properties?
Episode 76

When should you use final classes or private properties?

No Compromises · Joel Clermont and Aaron Saray

June 13, 202313m 48s

Audio is streamed directly from the publisher (media.transistor.fm) as published in their RSS feed. Play Podcasts does not host this file. Rights-holders can request removal through the copyright & takedown page.

Show Notes

The discussion of final classes was a hot topic recently. We had planned on discussing this even before it came up on Twitter, but here is our unsolicited opinion.

Is there some use case we missed? Aaron wants to hear about it.

Show notes

  • (00:00) - Final classes, the hot topic on Twitter
  • (01:00) - Aaron's opinion has evolved over the years
  • (03:15) - Packages vs applications
  • (04:00) - What about making PHPStan happy?
  • (06:45) - What about reducing support burden on package maintainers?
  • (10:05) - What about private properties?
  • (11:15) - Aaron wants to be wrong
  • (11:45) - Silly bit

Want to hire us and argue about it? Book a call

Topics

LaravelPHP