Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
sharktits3574012dDear python developer, when we are using python, it is because its easy to quickly throw a script together. If we want concise and well factored code, we wont touch python.
alkuzad90412d@sharktits so you mean it's better to pass around 'a;b;c;d # e;f' and do `s.split(";").split['#'].split[';']` instead of using lists/objects/namedtuples/whatever ? Yep it's faster but proper way is to utilize functions/objects to add context and abstractions to things you do, so other person would see what is going on.
Globals everywhere are also "fast" hacks but you know how this ends - script becomes "production critical" and maintenance passes to SCM. And we know how to do `git blame` :D