2 ms·
This bit about summed it up for me: "You can say that [NSJSONSerialization JSONObjectWithData:resultsData options:0 error:nil]; is more verbose than r.json() b
by bshimmin 12y ago
This bit about summed it up for me:
"You can say that [NSJSONSerialization JSONObjectWithData:resultsData options:0 error:nil]; is more verbose than r.json() but verbosity is an Objective-C convention, for the better or the wors[e]"
For this sort of task, like one of the other commenters, I would almost certainly write something quick and simple (and fairly unstructured) in bash; if it needed to be more maintainable, I'd write it in Ruby. Using a verbose, static typed language just seems wrong here.
Of course, for any given programmer and any given task, using the language with which they are most familiar is often a very good option (obviously only in circumstances where it is possible to perform the task in that language and its specific attributes don't jeopardise the successful running of the task).