DEV Community

Nikola Stojiljkovic
Nikola Stojiljkovic

Posted on • Edited on

1

[PHP Guidelines series] Final classes as a warning sign

As announced here, I have started working on a series of posts related to good and bad development practices.

Final classes as a warning sign

The next chapter deals with one of the warning signs in PHP development - final classes.

I am not, in this post, going to go into details on what are final classes and how exactly they are a warning sign. There is a whole article with examples available in the main repository of this series. Let's just say that final classes are functionally useless and can be easily overridden by using a Decorator Design pattern.

The whole article, with analysis and conclusions is available here: https://github.com/constup/php-guidelines/tree/master/src/WarningSigns/FinalClasses

If you liked the article,...
Image description

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay