Re:Show HN: Enlight – Learn to code by building projects
by s4vi0r on Sunday December 10, 2017 @03:10PM
(#15893249)
Why the `var`s everywhere in the example? They should really be `const`s
[ Parent
| on HN ]
Re:Show HN: Enlight – Learn to code by building projects
by inimino on Sunday December 10, 2017 @06:25PM
(#15894073)
`var` still works everywhere, right?
Re:Show HN: Enlight – Learn to code by building projects
by akvadrako on Monday December 11, 2017 @05:10AM
(#15896130)
Current coding examples should be using the current best practice, which is const. If you want to support old browsers without compiling the JS, you are going to have a lot more issues than const/var and is not for beginners.
Re:Show HN: Enlight – Learn to code by building projects
by inimino on Tuesday December 12, 2017 @01:39AM
(#15903461)
The difference between `var` and `const` is irrelevant for beginners. `var` also happens to be the standard on deployed browsers and existing code, and every beginner should recognize it. It’s the least substantive thing you could pick to criticize about this code.
Re:Show HN: Enlight – Learn to code by building projects
by rapind on Monday December 11, 2017 @03:24PM
(#15900099)
It's actually pretty easy to support older browser's without getting into the packaging mess if you don't need a modern framework. Learning webpack is a distraction from learning programming and would overwhelm a lot of the audience IMO.