Open in app

Sign In

Write

Sign In

Saeid Raei
Saeid Raei

62 Followers

Home

About

Pinned

Race Condition in Laravel: Save yourself from going Bankrupt

Race condition generally is the situation when one thing is being done twice or more at the same time when it’s supposed to be done sequentially, In the tech field, this usually happens when two different processes or threads do something at the same time when they’re not supposed to. …

Laravel

3 min read

Race Condition in Laravel: Save yourself from going Bankrupt
Race Condition in Laravel: Save yourself from going Bankrupt
Laravel

3 min read


Pinned

How to apply Hexagonal/Clean/Onion architecture with only two changes to your symfony project

a proposal on how to follow Hexagonal/Clean/Onion architecture in symfony with minimum changes possible — If we look into history of software engineering there are multiple solutions proposed to us around the similar concept (Hexagonal/Clean/Onion architecture) lets see some of them: BCE by Ivar Jacobson in “Object Oriented Software Engineering: A Use-Case Driven Approach” book 1992 Hexagonal Architecture by Alistair Cockburn 2005

Symfony

6 min read

How to apply Hexagonal/Clean/Onion architecture with only two changes to your symfony project
How to apply Hexagonal/Clean/Onion architecture with only two changes to your symfony project
Symfony

6 min read


Pinned

Repository pattern the SOLID way in symfony

The problem: if you follow symfony’s documentation for database you’ll face a concept named Repository (Product repository in symfony’s example) which it would be generated by default if you use the make command. …

Symfony

4 min read

Repository pattern the SOLID way in symfony
Repository pattern the SOLID way in symfony
Symfony

4 min read


Oct 25, 2022

When to use and not to use Galera Cluster for scaling MySQL

Software products often don’t alert you with their limitations upfront and most of the time you need to have the bigger picture while digging deep into their documentation to find them out or you’re gonna have to pay the price of using them and finding those limitations out which often…

MySQL

3 min read

MySQL

3 min read


Sep 28, 2022

Top 5 lessons I learned about MySQL the hard way so you don’t have to

Here’s some of the lessons I had to learn in production environment so you don’t have to pay the price of making the same mistakes. Lesson 1 : A multi column index performs way better than several indexes on each column For example lets assume we have a users table including first_name and last_name columns , now if we’re querying both columns together most of the…

MySQL

4 min read

Top 5 lessons I learned about MySQL the hard way so you don’t have to
Top 5 lessons I learned about MySQL the hard way so you don’t have to
MySQL

4 min read


Aug 6, 2022

Symfony Testing: using Repository pattern without connecting to database

In this article we are gonna write tests that are independent from database for symfony using the repository pattern. I’ve written an article recently about how to use the repository pattern in a solid way which we are gonna follow in this article as well , here’s a tl;dr for…

Symfony

4 min read

Symfony Testing: using Repository pattern without connecting to database
Symfony Testing: using Repository pattern without connecting to database
Symfony

4 min read


Jul 19, 2022

Why you can’t have a solid application using laravel

we are comparing how the ORM is being handled in laravel vs symfony. THE PROBLEM : The fact that laravel models are tightly coupled with database and that violates the Dependency Inversion principle. keep in mind I’m not talking about projects where the speed of the first development is what matters the most (small projects , MVPs etc). in those project laravel might even be a better choice than symfony.

Laravel

4 min read

Why you can’t have a solid application using laravel
Why you can’t have a solid application using laravel
Laravel

4 min read


Nov 3, 2019

How to update PHP docker container with docker-compose

lets say php has release a security patch and you want to apply that to your docker container. you can follow this instructions to update your php container without any downtime. first of all you have make sure that your php version in the docker file or in the docker…

Docker

1 min read

How to update PHP docker container with docker-compose
How to update PHP docker container with docker-compose
Docker

1 min read

Saeid Raei

Saeid Raei

62 Followers

learning is my dopamine

Following
  • Romin Irani

    Romin Irani

  • .com software

    .com software

  • Maximilian Beck

    Maximilian Beck

  • Ali Yazdi

    Ali Yazdi

See all (5)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech