mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 13:24:03 +00:00
14 lines
No EOL
540 B
Markdown
14 lines
No EOL
540 B
Markdown
---
|
|
title: 'Don''t just write procedural code in classes'
|
|
tweet_id: '1272822462040899584'
|
|
thread_slug: laravel-clean-code-tactics
|
|
author_username: samuelstancl
|
|
images:
|
|
- 'https://pbs.twimg.com/media/Ean2u-YX0AEmwEd.jpg'
|
|
created_at: 2021-04-06T16:07:28+00:00
|
|
slug: 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 😬 |