Re:Shell Scripting with Objective-C
by callesgg on Sunday June 01, 2014 @12:12AM
(#7828149)
Personally I find the objective c stuff to take longer to read and understand just because there is allot more text.
[ Parent
| on HN ]
What is going on in the below line?
c = [t v]
Can you tell me what c represents, and where it got its value? Sure, from [t v], but what are those? No, you can't. You finished reading it really quickly, but you understand very little about what is going on."A lot more text" is there for a reason: to explain what is going on.
How about:
cellsToUpdate = [tableView visibleCells]
This code tells you exactly what each item means. I find clear naming really nice to work with. Not that I would necessarily use exactly that line as a way of doing things, but hopefully you get the idea.
Re:Shell Scripting with Objective-C
by shadesandcolour on Sunday June 01, 2014 @11:12AM
(#7829404)
I like Objective-C a whole lot, but this is a shitty example. You didn't show what "a lot more text" looks like, you showed everyone what "proper variable names" look like.
Nice.. getting down votes for saying that objective c is more verbose than Python.
Most function names are longer and that is the way it is.