[BangPypers] Favorite tips/techniques

Shabda Raaj shabda at agiliq.com
Tue Sep 10 06:27:17 CEST 2013


http://code.activestate.com/recipes/52308-the-simple-but-handy-collector-of-a-bunch-of-named/

With api responses after you have parsed the json, you start doing things
like:

api_response["attribute"]

I would much prefer to do

api_response.attribute

Which the bunch pattern can enable.
I don't use it as frequently as I would like, as "code is read much more
frequently than it is written", and not everyone would be aware of the
"bunch" pattern.


-- 
Thanks,
Shabda

Agiliq.com - Building Amazing Apps
agiliq.com/blog/ | github.com/agiliq
US: +13152854388 | IN: +919949997612 | Skype: shabda.raaj
Our Android Apps <https://play.google.com/store/apps/developer?id=Agiliq> | Our
iOS Apps <https://itunes.apple.com/us/artist/agiliq/id407918088>


More information about the BangPypers mailing list