Excessive Bold
Martin Fowler on the overuse of bold in technical writing — and how LLMs have picked up and spread this practice. The more you emphasize, the less power it has.
Read more [martinfowler.com]
Posts tagged with readability
Martin Fowler on the overuse of bold in technical writing — and how LLMs have picked up and spread this practice. The more you emphasize, the less power it has.
Read more [martinfowler.com]
– acairns.co.uk - submitted by Andrew Cairns
The pipe operator will improve your code readability and composition in PHP. Understand the current approach and what future will look like.
Read more [acairns.co.uk]
Join thousands of developers
Every two weeks, I share practical tips, tutorials, and behind-the-scenes insights from maintaining 300+ open source packages.
No spam. Unsubscribe anytime. You can also follow me on X.
– jump24.co.uk - submitted by jamie peters
We all strive to write good code when we jump onto a project but sometimes do you wonder why?
The post covers
The techniques here are useful for all level of developers and worth a quick skim over as we all nothing wrong with a quick refresher
Read more [jump24.co.uk]
My colleague Seb made a cool package to write complex expectations in a readable way.
Read more [sebastiandedeyne.com]
It's always nice to read good post on code reability.
Read more [loup-vaillant.fr]
– htmx.org
Locality is that characteristic of source code that enables a programmer to understand that source by looking at only a small portion of it.
Read more [htmx.org]
Mohamed write a nice post featuring a lot of good tips on how to make your code readable.
Read more [themsaid.com]
Focus on writing code that solves real problems, is well-tested, and is easy to maintain.
Read more [localheinz.com]
– www.eloquentarchitecture.com - submitted by John Freeman
The LoB principle dictates that the behavior of a unit of code should be as obvious as possible by looking only at that unit of code. But I think something is missing from this discussion.
Read more [www.eloquentarchitecture.com]
Personally I don't know if this is a good practice, but you (and future me) might like it.
Read more [www.aaronsaray.com]
I'm proud to announce that our new premium course on writing readable PHP is now available. It's called Writing Readable PHP.
This course contains a collection of bite-size tips (both in written form and videos) that make your code a joy to read for your co-workers and future self. These tips are aimed towards developers who know the basics of PHP and want to improve their craft. As a bonus, you'll learn to use static analysis to ensure that your code is understandable and correct.
Writing Readable PHP has been created by our team and Christoph Rumpel. It contains our combined knowledge on how to write the best PHP possible.
Passing booleans to a method can be code smell, as it is not clear what a boolean does by reading the calling code.
Using else often encourages complexer code structure, makes code less readable. In most cases you can refactor it using early returns.
Have you ever needed to maintain a project that wasn't yours? A project that, when you first opened it, gave you chills down your spine? Even without reading the code in detail, you could already tell it was a mess.
We talk about cleverness as if it’s Just Bad, such as “clever code is harder to debug”. That’s going too far. Cleverness can lead to faster, safer, even clearer code.
Read more [www.hillelwayne.com]
Regular expressions are powerful, PHP but they are not known to be readable, and more often than not, maintaining a regular expression is not a straight-forward task. Here are some tips to improve and write better regular expressions in PHP.
Read more [php.watch]
Most developers have probably seen some complex conditionals in legacy code. In this video I show you how to refactor those.
Readability of code can be vastly improved by decreasing indentation. In this video we'll reverse conditions and early returns to accomplish this. If you want to see more videos like this one, head over to the video section at Spatie.
In PHP 7.4 a widely requested feature landed: arrow function. In this blogpost I'd like to show you how I like to use them.
In this short post, I'd like to give you a tip on writing readable PHP.