Improve user experience while keeping an eye on performance
A nice touch by Joel Clermont
Read more [masteringlaravel.io]
Posts tagged with best practices
A nice touch by Joel Clermont
Read more [masteringlaravel.io]
Brent is doing some interesting stuff here.
Read more [tempestphp.com]
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.
A bottleneck isn’t inherently bad, we all have them. What matters is making sure your biggest bottleneck is always working at it’s most optimal conditions. That’s where your optimizations should be focused.
Read more [benmckay.com]
Something that you’ll need to often is casting the collection back to a regular array. Like me, you might be tempted to use toArray() for this. But that might be the wrong method to call.
Read more [spatie.be]
Users don’t know what your product does, how to use it, or why they would use it. You need docs to explain this.
Read more [newsletter.posthog.com]
– muhammedsari.me - submitted by Muhammed Sari
Group by type or context / process? One of these methods will crush your project's growth. Find out which!
Read more [muhammedsari.me]
– liamduckett.com - submitted by Liam
A short post about my preferences around type safety and static analysis.
Read more [liamduckett.com]
We've been using this solution in our projects as well.
Read more [darkghosthunter.medium.com]
Naming things is good skill to have for any programmer.
Read more [masteringlaravel.io]
Beware of "Other"!
Read more [devblogs.microsoft.com]
– ashallendesign.co.uk - submitted by Ash Allen
Read about how to use the Illuminate\Console\Prohibitable trait to prevent destructive commands from running in your Laravel application. We'll also look at how to prevent your own custom Artisan commands from running using this trait.
Read more [ashallendesign.co.uk]
Pseudo-types like callable and iterable may seem convenient at first glance, but they introduce ambiguities and make code harder to analyze.
Read more [f2r.github.io]
– clig.dev
Good naming, consistency, clear communication, and discoverability. These are things that do not only apply to command line programs, but to general development as well.
Read more [clig.dev]
Stephen Rees-Carter tells how hardcoding admin domains in code can lead to security vulnerabilities
Read more [securinglaravel.com]
Postgres has many nuances and best practices that are important to understand.
Read more [challahscript.com]
While scopes are useful for simple queries, custom query builders are preferred for complex or frequently used queries.
Read more [blog.oussama-mater.tech]
Tomas shares his approach to get the most out of mocks, drop dead code, and make tests more valuable.
Read more [tomasvotruba.com]
– davorminchorov.com - submitted by Davor Minchorov
Learn about data transfer objects, why they are useful and why it's better to use them over arrays.
Read more [davorminchorov.com]
– alsterholm.com - submitted by Andreas Alsterholm
A blog post explaining some benefits (and drawbacks) of using custom Eloquent collections.
Read more [alsterholm.com]
– dev.to
Spoiler: it doesn't really matter anymore as long as you're using a modern version of PHP
Read more [dev.to]