The Absolute Minimum Every Software Developer Must Know About Unicode in 2023
No suprises here: UTF-8 is the most popular encoding for data in transfer and at rest.
Read more [tonsky.me]
Posts tagged with best practices
No suprises here: UTF-8 is the most popular encoding for data in transfer and at rest.
Read more [tonsky.me]
– devonmather.dev - submitted by Devon Mather
We will look at a couple of common scenarios where adding a couple of lines to your tests can future-proof your application from data loss when using Model Observers.
Read more [devonmather.dev]
Join 9,500+ smart developers
Get my monthly newsletter with what I learn from running Spatie, building Oh Dear, and maintaining 300+ open source packages. Practical takes on Laravel, PHP, and AI that you can actually use.
No spam. Unsubscribe anytime. You can also follow me on X.
"As a Laravel developer, this is the one newsletter I most look forward to. Freek has a talent for distilling packages or techniques down to something immediately useful - one tip can save you hours and even weeks. It's concise and practical and highly relevant."
– stefanzweifel.dev - submitted by Stefan Zweifel
I struggled for a long time to find a good way to represent settings in my Laravel apps. spatie/laravel-data solves this for me with strong types and Eloquent casting.
Read more [stefanzweifel.dev]
Another gem of a blog post by Tim MacDonald
Read more [timacdonald.me]
– blog.shahryartayeb.com - submitted by Shahryar
In this blog post, you will learn what event delegation is, how it can help you optimize your JavaScript code by reducing the number of event listeners, and how to implement it with a practical example.
Read more [blog.shahryartayeb.com]
– flareapp.io - submitted by Spatie
Alex and Christoph explain why error tracking is crucial for your application.
Read more [flareapp.io]
It's always nice to read good post on code reability.
Read more [loup-vaillant.fr]
Whenever Oh Dear detects something wrong with your site, it can send you a notification. We have multiple channels available: Slack, Telegram, webhooks, and many more. The most popular channel our users use is just simple mail.
Behind the scenes, Oh Dear uses Postmark to send emails. Postmark will inform us whenever a notification mail results in a hard bounce. A hard bounce means that the mail won't be delivered. The most common reason for this is that the mailbox doesn't exist (anymore). This can occur when somebody changes jobs, and the work email address no longer exists.
– www.conroyp.com - submitted by Paul Conroy
Value objects are a great way to add safety and consistency to PHP applications, while improving readability & testability. Let's dive into what they are, what they're not (DTOs!), and how they can help us improve our code quality.
Read more [www.conroyp.com]
If you’re about to build a web app and you’re pretty sure it requires JavaScript, why not pause and consider whether you can provide a read-only version.
Read more [adactio.com]
– 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]
A nice refactor from Aaron Francis
I'm always on the lookout for a good "make more things the same" refactor and I just found one!
— Aaron Francis (@aarondfrancis) March 8, 2023
Make your life easy, make more things the same. pic.twitter.com/tQfnqSZ84u
Before you write any code — ask if you could ever possibly want multiple kinds of the thing you are coding. If yes, just do it. Now, not later.
Read more [www.swyx.io]
While attending Laracon India, many people approached me to ask how we handle the maintenance of all our Spatie packages. One of the ways we keep maintenance burden low is by making our packages customizable. In this blog post, I'd like to cover some of our best tips to make a Laravel package easy…
– jamie-peters.co.uk - submitted by Jamie Peters
Have you ever been using the Laravel Request class and found yourself creating single use variables just for type casting? What if I told you there's a better way...
Read more [jamie-peters.co.uk]
– stefrouschop.nl - submitted by Stef Rouschop
With a proper implementation of global scopes instead of local scopes, the code and security would be greatly improved. Let me illustrate this with a simple example.
Read more [stefrouschop.nl]
– 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]
– medium.com - submitted by Mazen Touati
We will crack the controversy of the repository pattern in Laravel. The good and the bad, and what alternatives we can use to build a maintainable codebase.
Read more [medium.com]