Re:How true hackers write JavaScript
by jm547ster on Wednesday September 05, 2018 @03:29AM
(#17915773)
Really? Plenty of needlessly abbreviated function names IMO. At a quick glance is it immediately obvious what posf or arem are without looking into the context in which they're being used?
Don't get me wrong it's a nice piece of code but super-readable it isn't.
[ Parent
| on HN ]
Re:How true hackers write JavaScript
by oh-kumudo on Wednesday September 05, 2018 @03:34AM
(#17915800)
Well, I disagree. It is abbreviated, but since the whole file is self-contained and the definitions are put at the beginning, there is enough information to infer the function's semantics without being excessively specific. I think well defined organization of abstractions is an often overlooked but surprisingly effective way to achieve readability
> there is enough information to infer the function's semantics without being excessively specific
You mean you can just read the function definition to see what it does?