I’m a big fan of Laravel. The thing I like the most about the community is the focus on understandable code. Not patterns, not architectures, but how to choose the best API for a task so the result is readable as plain English.
But today, I want to talk about one name that Laravel’s developers often get wrong.
The main advantage is, if I add a possibility in my type, for example data Customer = Student | Individual | Company, the Haskell compiler will tell me that my function is missing a pattern. I will need to provide a getPrice Company = ?.
Of course, in PHP we don’t have a compiler but we can still have some checks…
I’m currently developing the Quantic Telecom website with Laravel. My app folder is well-organized as my views and my resources but not my migrations because the Laravel php artisan migrate command doesn’t run nested migrations. My package thibaud-dauce/laravel-recursive-migrations will allow us to put migrations into sub-directories.
The goal of my package is not to create new commands like submigrate, submigrate:rollback… I want to keep the original names migrate, migrate:rollback and add an option --recursive which will look into all sub-directories.
The Laravel community is a huge fan of Stripe. As Laravel, Stripe provides a great API to interact with the product. In this article, I’ll create a proof of concept using Laravel’s Eloquent relations to fetch a foreign data source as Stripe. The same idea could be applied to other foreign data providers.
It’s been a few weeks since a set a AAAA record for my domain name and allow IPv6 to visit my website. Same with SSL and Let’s Encrypt. Today I switched from Apache 2 to Nginx and enabled HTTP/2.0 on my server.
In my previous blog post, I talked about how LaTeX is a fantastic tool and I concluded with some generators that could be interesting. I had to write some documents with LaTeX and I wanted to improve my work flow. I will share with you some tips & tricks I discovered.
It’s been a while since I wrote my last blog post. Today, I want to share with you my small experience with Ansible. Ansible is an open source project for application deployment. I heard of it last year but never took the time to dig in. Last week, I gave it a new try for Quantic Telecom to deploy new containers easily and I really enjoy it!
NullPointerException is an obvious runtime problem in most Java applications. But it’s not limited to Java, in PHP for example we could get a “Trying to get property of non-object”. But today, there’s a compilation alternative to this runtime problem.
What’s UX? UX stands for User Experience. It refers to “a person’s emotions and attitudes about using a particular product, system or service” according to Wikipedia. I’m starting today a series of blog posts about UX and some fails I ran into on software I use every day.