DEV Community

Discussion on: # 5 Tips for better code readability

Collapse
 
davidlambauer profile image
David Lambauer

Hi Mohd,

I think now a days, we don't have to worry about memory. I would prefer to be able to read, debug and understand the code instead of having to worry about memory.

But for sure, I am talking about PHP. It might makes sense to worry about the usage of memory in different languages.

Collapse
 
msamgan profile image
Mohammed Samgan Khan

No offense, it's just I have a personal rule not to create an unwanted variable until that particular value is used more than ones.

Thread Thread
 
davidlambauer profile image
David Lambauer

You're right, not every function call must be wrapped in a variable. It always depends, right? 🙃

Thread Thread
 
msamgan profile image
Mohammed Samgan Khan

hell yaaa...