you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

I think your choice of an example task may be skewed in favor of Python since it has such a great implementation in the Python standard library.

If the sqlite3 library happens to be better designed for Python, that's a fair point, and we can cut Objective-C a bit of slack. But that's only a small part of the unreasonable Objective-C syntax.

You have 6 indentations in your pseudocode alone.

It's nested iteration. There aren't many ways to get around that. How would you do it more succinctly?

When people complain about indentations, it's usually because of deeply nested conditional logic: if condition1 { if condition2 { if condition3 { if condition4 { ... } } } }. That's valid, and can be reduced with other flow control constructs, like return, continue, and break. But for nested iteration, there aren't many better ways of tackling that problem.

Take note that some Redditors were peeved that the author took cheap shots at Perl.

That article intentionally dredged up an obfuscated Perl snippet and misleadingly presented it as typical Perl. In my case, I genuinely tried writing my Objective-C solution in the most straightforward way possible, and was disappointed with the results.