My notes goes here
  • About Me

My website


This is where I will tell my friends way too much about me

Replace temp with query to achieve cleaner and more maintainable code

Find a temporary variable in a function body and extract it out as a method

Posted on January 13, 2020

An easy way to reduce functions/methods length and stick to single responsibility principle is to extract a portion of the function body as a separate function/method. [Read More]
Tags: development clean code code smell

Some of important PHP 7.* features

List of important PHP code syntax changes from PHP 7.0 to 8.0

Posted on January 9, 2020

New PHP features let the code to be safer, faster and less error prone. [Read More]
Tags: development php

What is data clumps and how to refactor it?

When more than one data are passed around the code together, make an object out of it

Posted on January 7, 2020

Data clumps happens when two or more data are often passed around the code together. [Read More]
Tags: development clean code code smell

PHP magic methods for object oriented programming

They don't exist but they work for you

Posted on January 4, 2020

You can make your PHP classes dynamic by using magic methods. [Read More]
Tags: development php

What is Duck Typing in computer programming?

In duck typing, the type of object is not important, what it can do or what properties it has are important.

Posted on January 3, 2020

If it walks like a duck and it quacks like a duck, then it must be a duck [Read More]
Tags: development golang javascript
  • Older Posts →
  • RSS
  • Email me
  • Facebook
  • GitHub
  • Twitter

Farhad Ahmadi  •  2021