News for hackers. Stuff that matters.
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.
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
Re:How true hackers write JavaScript by olavk on Wednesday September 05, 2018 @03:56AM (#17915929)
> 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?

Re:How true hackers write JavaScript by mosselman on Wednesday September 05, 2018 @04:14AM (#17916006)
He doesn't like being excessively specific with his writing I guess. Plus it makes you sound more like an engineer when you speak like this.