Hot answers tagged

4 votes

Merges two OKHTTP responses into one

Types I find it mildly confusing to have a type named RequestOneBody be used not only for the first request's body but also for its response's body. The name seems ...
  • 3,022
3 votes
Accepted

Saving and reading the last successful execution as a json-file

First the positives: you've put some effort into typehints, caching, and encapsulation, all good things. You've started into pathlib support, which is good, and you ...
  • 53.4k
2 votes
Accepted

Iterating over JSON more effectively

Much more complicated than it needs to be. You extend a list, then traverse the list to construct a counter, then traverse again to get a sorted sequence, then traverse again to get a list of keys ...
  • 53.4k
2 votes

Find download URL for a package, from almost-JSON with substitutions

Late answer, but here goes anyway First off, I'm not a huge fan of piping the resulting commands to sh As far as I can tell, we're just trying to generate a single <...
  • 3,022
1 vote
Accepted

Implementation of JSON schem parser to extract some attributes

First I will say, the fact that you're doing any of this raises just all of the red flags. This code and the data it consumes and outputs have all of the hallmarks of poorly-structured data lasagna. ...
  • 53.4k

Only top scored, non community-wiki answers of a minimum length are eligible