DEV Community

Discussion on: Don't return associative arrays!

Collapse
 
frogbeerr profile image
Frogbeerr

Hey, thanks for the article.
I really enjoyed reading it. As I am currently writing in first server backend (in Python though, but I guess some concepts aren't bound by language), I am tripping over my own code and styles of returning values all the time.
A lot of things just went 'click' inside my head on how I can go about streamlining my code.

Collapse
 
aleksikauppila profile image
Aleksi Kauppila

Glad you liked it! Python equivalent would be to return dictionaries. Although they are actual objects and have some methods, they are too generic to promise anything useful.