1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 13:24:03 +00:00
laravel-tips/content/tips/dont-just-write-procedural-code-in-classes.md
2021-04-07 20:16:47 +02:00

540 B

title tweet_id thread_slug author_username images created_at slug
Don't just write procedural code in classes 1272822462040899584 laravel-clean-code-tactics samuelstancl
https://pbs.twimg.com/media/Ean2u-YX0AEmwEd.jpg
2020-06-16T09:24:57+00:00 dont-just-write-procedural-code-in-classes

This ties the previous tweet with the other tips here. OOP exists to make your code more readable, use it. Don't just write 400 line long procedural code in controller actions.

Here's code from my first Laravel project 😬