
Handling model inheritance in Laravel’s Eloquent ORM without third-party libraries (is a bad idea)
It’s technically possible to make Eloquent models inherit from each other, but I probably wouldn’t recommend it.
It’s technically possible to make Eloquent models inherit from each other, but I probably wouldn’t recommend it.
In this latest instalment of “Things That People Don’t Want To Bother With” I discuss best practices for writing comments in source code.
How many unit tests are enough? As always the answer is “It depends”, but fortunately there is a handy rule of thumb that you can use!
Tests can be written Chicago-style or London-style. Neither is strictly better than the other; which style should you use?
Arrange-Act-Assert is a standardised approach to writing tests that makes them easier to read and helps you avoid some bad practices.
Relational databases are very good at storing tabular data, but what if you need to store arbitrarily-sized trees?
The Dutch have a lot of long words that aren’t in dictionaries. But that doesn’t necessarily mean they’re hard to read for Dutch people.
Relational databases make it very easy to join data from different tables, but did you know you can also JOIN data within the same table?
Want to let number or rank your query results? Let your database do the hard work for you.
A tutorial for people who keep forgetting how to run PHPUnit tests using PhpStorm.
If you have your own blog and like the simplicity of Markdown, but don’t want to give up JSX, you may want to give MDX a try.
How you can detect the language of texts, without using the “ML” word.
Alternatively: why word counting is nothing like bean counting.
This post discusses three common array functions: map, reduce, and filter.
Go’s time
package takes a novel approach to defining datetime serialisation formats. Is it an improvement over existing alternatives?