mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 05:14:04 +00:00
initial commit
This commit is contained in:
commit
1beb9dd34c
281 changed files with 56773 additions and 0 deletions
12
content/tips/write-functional-code-when-it-benefits-you.md
Normal file
12
content/tips/write-functional-code-when-it-benefits-you.md
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
title: 'Write functional code when it benefits you'
|
||||
tweet_id: '1272826462031286272'
|
||||
thread_slug: laravel-clean-code-tactics
|
||||
author_username: samuelstancl
|
||||
images:
|
||||
- 'https://pbs.twimg.com/media/Ean8cQUWoAEjdO3.jpg'
|
||||
created_at: 2021-04-06T16:07:38+00:00
|
||||
slug: write-functional-code-when-it-benefits-you
|
||||
---
|
||||
|
||||
Functional code can both clean things up and make them impossible to understand. Refactor common loops into functional calls, but don't write stupidly complex reduce()s just to avoid writing a loop. There's a use case for both.
|
||||
Loading…
Add table
Add a link
Reference in a new issue