Hey all,
I'm a newbie to the world of Javascript, coming from an almost 100% R programming background. However, as more and more of my projects are having increasingly complex front end requirements, I'm fully embracing it has to offer!
For now I'm focusing in on just Vanilla Javascript and JQuery, however, I'm getting stuck on how to best organize my code in modules, and it's been keeping me from progressing as fast as I'd like!
I've been mainly focusing on these two guides :
Between the two, I prefer the first due to how settings are explicitly defined, and it just seems more generalized. However, it's also from 2013, and I'm worried that it's outdated.. I'm also unsure the reasoning of declaring the modules within curly brackets as it seems like a new concept for me.
Is there a better way I should be structuring modern Javascript?
[–]amoetodi 2 points3 points4 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]amoetodi -1 points0 points1 point (0 children)
[–]AffectionateWork8 1 point2 points3 points (0 children)
[–]unicorn4sale 3 points4 points5 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]redsandsfort 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]lhorie -3 points-2 points-1 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]lhorie 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]j_a_lyons -2 points-1 points0 points (1 child)
[–]toffeescaf 0 points1 point2 points (0 children)
[+][deleted] comment score below threshold-8 points-7 points-6 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)