Clean code, hard-coded, guard clauses, naming conventions
Static Factory Methods aka Named Constructors
![Static Factory Methods aka Named Constructors Static Factory Methods aka Named Constructors](https://devpark.pl/wp-content/uploads/2021/03/5ca7939234a0a197816472-1-300x112.jpg)
How to handle method overloading in PHP and multiple conditions, therefore creating single object instance? Static Factory Method is your answer
Refactoring Example – guard clauses
![Refactoring Example - guard clauses Refactoring Example - guard clauses](https://devpark.pl/wp-content/uploads/2021/03/5c94cb7f4209e670076879-1-300x112.jpg)
Real code rafactoring example with guard clauses usage
Hard-coded parts
![Hard-coded parts Hard-coded parts](https://devpark.pl/wp-content/uploads/2021/03/5c34f1a835efb493587192-1-300x112.jpg)
Few code smell which shouldn’t be present in your clean codebase.
Dependency Injection code smells
![Dependency Injection code smells Dependency Injection code smells](https://devpark.pl/wp-content/uploads/2021/03/5c34a9583f663826946791-1-300x112.jpg)
Dependency Injection is a great thing, however using it doesn’t mean that everything is done right in the codebase. Lets check few things to notice that probably something can be improved.
Naming conventions
![Naming conventions Clean Code - how to start](https://devpark.pl/wp-content/uploads/2021/03/5c2ff9ea7664d878615417-1-300x112.jpg)
It’s quite important for your code quality to properly format your code and use some rules to set function or variable names.
Improving conditions clauses – few small things with hudge impact
![Improving conditions clauses - few small things with hudge impact Clean Code - how to start](https://devpark.pl/wp-content/uploads/2021/03/5c2fed2f122db142721760-1-300x112.jpg)
Don’t be afraid to write functions for small things. You will be supprised how they will improve your code.
Clean Code – how to start
![Clean Code - how to start Clean Code - how to start](https://devpark.pl/wp-content/uploads/2021/03/5c2f63913894d980199061-1-300x112.jpg)
Basic things to know, which are required to start writing code