ββGo vs PHP syntax comparison
Go is a statically typed and compiled language designed by Google. It is somewhat similar to C. However, it is packed with more goodies such as garbage collection, memory safety, structural typing and concurrency. Its concurrency mechanisms make it possible to get the most out of the multicore and network machines.
Go is a statically typed and compiled language designed by Google. It is somewhat similar to C. However, it is packed with more goodies such as garbage collection, memory safety, structural typing and concurrency. Its concurrency mechanisms make it possible to get the most out of the multicore and network machines.
ββHow to build a Laravel REST API with Test-Driven Development
Today weβll be going on a Laravel journey driven by tests. Weβll create a Laravel REST API complete with authentication and CRUD functionality without opening Postman or a browser.
Today weβll be going on a Laravel journey driven by tests. Weβll create a Laravel REST API complete with authentication and CRUD functionality without opening Postman or a browser.
Amazing PHP pinned Β«Backorder expiring domain names Find a cool domain, backorder it and own it.Β»
New in PHP 8
PHP 8, the new major PHP version, is expected to be released by the end of 2020. It's in very active development right now, so things are likely to change a lot in the upcoming months.
PHP 8, the new major PHP version, is expected to be released by the end of 2020. It's in very active development right now, so things are likely to change a lot in the upcoming months.
How fast is PHP-8 going to be?
PHP-8 is going to be released at the end of this year, and one of its most exciting features is JIT compilation. Letβs see how it improves the speed of a PHP script.
PHP-8 is going to be released at the end of this year, and one of its most exciting features is JIT compilation. Letβs see how it improves the speed of a PHP script.
Clean Code and Object Calisthenics Rules I try to Follow
I do a lot of Code Reviews, and without proper automation of most of the low level items that you are usually βremarkingβ to colleagues it is a frustrating experience for everyone involved and takes more time that needed.
I do a lot of Code Reviews, and without proper automation of most of the low level items that you are usually βremarkingβ to colleagues it is a frustrating experience for everyone involved and takes more time that needed.
Writing a Damn Good README File
Raise your hand if youβve ever read a README file. Now, keep that hand raised if youβve ever written a README file. Iβm going to take a shot in the dark and assume that your hand is still raised; at least, itβs raised in spirit, since you probably refuse to flail your arms about like a crazy person just because I tell you to.
Raise your hand if youβve ever read a README file. Now, keep that hand raised if youβve ever written a README file. Iβm going to take a shot in the dark and assume that your hand is still raised; at least, itβs raised in spirit, since you probably refuse to flail your arms about like a crazy person just because I tell you to.
New in Symfony 5.1
A series of posts showcasing the new features introduced by each Symfony version.
A series of posts showcasing the new features introduced by each Symfony version.
Testing without mocking frameworks.
Over the years, my coding practices have changed a lot. From hacking away until it works to TDD/BDD/DDD and everything in between. One of the biggest changes in my developer career has been when, why, and how I test my code. In particular, my view on mocking frameworks has changed a lot. A couple of years ago I was convinced I could not live without them, now I wish I could do just that.
Over the years, my coding practices have changed a lot. From hacking away until it works to TDD/BDD/DDD and everything in between. One of the biggest changes in my developer career has been when, why, and how I test my code. In particular, my view on mocking frameworks has changed a lot. A couple of years ago I was convinced I could not live without them, now I wish I could do just that.
Circuit Breaker Pattern
In most systems, we use remote calls. Many factors may have an impact on these remote calls e.g. network latency, server availability and so on. So we should assume that something can go wrong. These calls can be potential bottlenecks, we donβt want user waiting for the response from the server very long, because external API is very slow or not available. Also if we have a few services which communicate with each other we shouldnβt aggravate the situation when one of them has too much traffic and slow down significantly. So how to do it correctly?
In most systems, we use remote calls. Many factors may have an impact on these remote calls e.g. network latency, server availability and so on. So we should assume that something can go wrong. These calls can be potential bottlenecks, we donβt want user waiting for the response from the server very long, because external API is very slow or not available. Also if we have a few services which communicate with each other we shouldnβt aggravate the situation when one of them has too much traffic and slow down significantly. So how to do it correctly?
Functional tests, and speeding up the schema creation
When Symfony2 was created I first learned about the functional test, which is an interesting type of test where everything about your application is as real as possible. Just like with an integration or end-to-end test. One big difference: the test runner exercises the application's front controller programmatically, instead of through a web server. This means that the input for the test is a Request object, not an actual HTTP message.
When Symfony2 was created I first learned about the functional test, which is an interesting type of test where everything about your application is as real as possible. Just like with an integration or end-to-end test. One big difference: the test runner exercises the application's front controller programmatically, instead of through a web server. This means that the input for the test is a Request object, not an actual HTTP message.
How to Migrate Spaghetti to 304 Symfony 5 Controllers Over Weekend
During Easter weekend, usually, people take a break and have a rest. Instead, we used these 4 days of holiday to migrate the 304-controller application. At least that was the goal on Friday.
Me in my colleague in the migrated project accepted the challenge. We got into many minds and code-traps. We'd like to share this experience with you and inspire those who are still stuck on non-MVC code and think it might take weeks or even months to switch to a framework.
During Easter weekend, usually, people take a break and have a rest. Instead, we used these 4 days of holiday to migrate the 304-controller application. At least that was the goal on Friday.
Me in my colleague in the migrated project accepted the challenge. We got into many minds and code-traps. We'd like to share this experience with you and inspire those who are still stuck on non-MVC code and think it might take weeks or even months to switch to a framework.
Meet the new Symfony Security: Authenticators
After more than half a year of work and discussions, Symfony 5.1 ships with an experimental and revisited Security system. Iβm incredibly excited about this system, as I think it opens up the component for a lot of possibilities. Thatβs why in the coming week, Iβll publish a series of blogposts about this new system. I hope youβll be just as excited as I am and help realising the full potential with us!
After more than half a year of work and discussions, Symfony 5.1 ships with an experimental and revisited Security system. Iβm incredibly excited about this system, as I think it opens up the component for a lot of possibilities. Thatβs why in the coming week, Iβll publish a series of blogposts about this new system. I hope youβll be just as excited as I am and help realising the full potential with us!
Yii2 PHP Framework - Full Course (Build a YouTube Clone)
Yii is a fast, secure, and efficient PHP framework used to create all kinds of web apps. Learn how to use Yii2 in this full tutorial for beginners by building a YouTube clone.
Yii is a fast, secure, and efficient PHP framework used to create all kinds of web apps. Learn how to use Yii2 in this full tutorial for beginners by building a YouTube clone.
Avoiding inheritance in Laravel
Over the past few years, I've paired with hundreds of developers on their Laravel projects. One of the most common regrets (technical debt) we encounter is the use of inheritance. While inheritance is one of the pillars of object oriented programming, it's actually less beneficial when used alongside a framework like Laravel.
Over the past few years, I've paired with hundreds of developers on their Laravel projects. One of the most common regrets (technical debt) we encounter is the use of inheritance. While inheritance is one of the pillars of object oriented programming, it's actually less beneficial when used alongside a framework like Laravel.
Liskov Substitution Principle in PHP
PHP did not start as an Object Oriented Programming language, but over the years, PHP has improved with classes, namespaces, interfaces, traits, abstract classes, and other improvements that help developers write SOLID code.
PHP did not start as an Object Oriented Programming language, but over the years, PHP has improved with classes, namespaces, interfaces, traits, abstract classes, and other improvements that help developers write SOLID code.
The Bulletproof Event Naming For Symfony Event Dispatcher
I wrote intro to Symfony\EventDispatcher and how to use it with simple event.
But when it comes to dispatching events, you can choose from 4 different ways. Which one to choose and why? Today I will show you pros and cons of them to make it easier for you.
I wrote intro to Symfony\EventDispatcher and how to use it with simple event.
But when it comes to dispatching events, you can choose from 4 different ways. Which one to choose and why? Today I will show you pros and cons of them to make it easier for you.