r/programmingcirclejerk • u/dreampwnzor Software Craftsman • Dec 30 '17
Retiring Python as a Teaching Language because Javascript
http://prog21.dadgum.com/203.html
39
Upvotes
r/programmingcirclejerk • u/dreampwnzor Software Craftsman • Dec 30 '17
12
u/[deleted] Dec 30 '17 edited Dec 31 '17
I guess that kind of makes sense. I suppose I'm just used to languages where smartlinking exists (and more broadly linking of any kind, obviously), haha.
Although I'd still say people should try to avoid unnecessary imports/includes/usings/e.t.c in any language where possible. I'm never going to buy that the sort of entirely trivial nature yet insanely overestimated importance and status of something like "leftPad" is a perfectly reasonable phenomenon.
That said, if I were actually a JS programmer/someone who regularly had to import a single-function not-library for something as simple as what leftPad does, I'd definitely be asking more and more questions as time went on about why JavaScript doesn't have at least a nominal standardized collection of string handling methods.
Also more specifically/less seriously, in my experience padding the left side of a string with anything is not even something most developers would ever need to do that much at all (although it's normally no big deal... in Pascal at least I can just call either PadLeft or PadRight directly through the strings themselves by default) so it seems strange/funny that leftPad is even that regularly useful for JS devs?
Is there some specific reason you need to pad stuff especially often while making web-things?