Refactoring real-world Laravel app. Who wrote THIS CODE?!

preview_player
Показать описание
I live for the clickbait.

In this video we'll focus on refactoring a Laravel application using the 80/20 rule. We'll just go through the files, see what we can do to improve the code slightly without stressing over the details.

More me:
Рекомендации по теме
Комментарии
Автор

The refactor when you delegated the user service instantiation to laravel was quite cool. I was manually creating these instantiations in the constructor body and I think I will refactor to your approach.

limitlesskode
Автор

It's a very useful video! Looking forward to seeing more of these)

Vitalii-mr
Автор

I really like the refactoring videos! Nice job. Good to aim for the 80/20 rule too, you seem to get a lot of work done quickly!

natenatters
Автор

Great video! What are your thoughts on actions vs services?

binaryfire
Автор

At 8:24, UserService isn't the appropriate service class. It should be user order service if there are any other type of order services. Otherwise, user service will be a god service, sooner or later.

And i think usrr service should always return user objects. It can be user model or dto or the collection of dto or user models. But when it returns anything else, it breaks the law of diameter.

mohammadashrafuddinferdous
Автор

I see you have a few Enums. What is preferred storing statuses for products, users etc. in Enums or in a table? I used to use Enums but now converted all status to status table.

_bijaydas
Автор

Very, very cool format, if possible, shoot more, please.

karlson
Автор

Is there a repo for this code? Amazing! thanks!

carvalho
Автор

Can u name the vscode extension which make ur code very real

akhileshkumar-iuuq
Автор

ANY php project that it requires use of the CLI means you are doing things WRONG, PHP was not created for this use environment

Nodsaibot
Автор

Why TF you decreased the pitch soo much ?
these annoying youtubers, never gonna learn

khanra