3 ms·
I think it depends. For the class of "quick hack to get some data from a JSON API and munge it" having to model the data can be a burden. Just using a Python di
by wwaites 16y ago
I think it depends. For the class of "quick hack to get some data from a JSON API and munge it" having to model the data can be a burden. Just using a Python dict and getting the values out is initially quite a lot simpler.
However for anything more complicated than that you start having to model the data anyways, in Python or Go or any other language otherwise it will quickly devolve into unmaintainable spaghetti. In this case, I was forced to do this early on, which made me think through the structure of the program more thoroughly than I might otherwise have done.