DEV Community

Discussion on: Don't return associative arrays!

 
crease29 profile image
Kai Neuwerth • Edited

Always consider that others could be involved in it some day. That helps to reflect your own work and will at least make it easier for you in the end if you have to look at that code after some months.

I personally always set the goal that I want to make a project open source available on github. That means that others will see this piece of code and they want to understand what I'm doing.