Francisco Moretti
Francisco Moretti
AboutBlogCode Tips
Code Tips

Code Tips

🧑‍💻
Code Tips
📐
Composition vs Inheritance: Which is Better for Your Code?
Jan 16, 2023
✨
Avoid side effects in functions
Jan 9, 2023
⏩
Emmet Abbreviations
Jan 4, 2023
📐
KISS: Keep it short and simple!
Dec 14, 2022
🐞
Don't ignore caught errors
Nov 10, 2022
⚗️
One concept per test
Oct 27, 2022
🧱
Dependency Inversion Principle (DIP) - SOLID
Oct 5, 2022
🧱
Interface Segregation Principle (ISP) - SOLID
Sep 28, 2022
🧱
Liskov Substitution Principle (LSP) - SOLID
Sep 22, 2022
🧱
Open-Closed Principle (OCP) - SOLID
Sep 13, 2022
🧱
Single Responsibility Principle (SRP) - SOLID
Sep 6, 2022
✨
Use Getters and Setters
Aug 22, 2022
✨
Prefer ES6 classes over ES5 functions
Aug 15, 2022
✨
Don’t Over Optimize
Aug 8, 2022
✨
Avoid Negative Conditionals
Aug 1, 2022
✨
Remove dead code
Jul 25, 2022
✨
Encapsulate conditionals
Jul 18, 2022
✨
Don’t use flags as function parameters
Jul 11, 2022
✨
Function names should say what they do
Jul 4, 2022
✨
Functions should do one thing
Jun 13, 2022
✨
Few Function Arguments
Jun 6, 2022
✨
Don't add unneeded context
May 30, 2022
✨
Avoid Mental Mapping
May 23, 2022
✨
Use Explanatory Variables
May 16, 2022
✨
Don’t Use Magic Numbers
May 9, 2022
✨
Use pronounceable and meaningful variable names
Mar 21, 2022
✨
Use the same vocabulary for the same concept
Mar 14, 2022
Copyright 2022 Francisco Moretti