News for hackers. Stuff that matters.
Re:React Tutorial: Cloning Yelp by romaniv on Thursday May 26, 2016 @02:02PM (#11780141)
>I'm not blaming react, everything else in the javascript space is just as bad right now. There's at least 4 different ways of loading modules (UMD, AMD, commonJS, es (babel) modules), 2 of which (require(), import .. from) are used within this example.

Personally, I got so frustrated with ever-increasing complexity of tools and growing networks of dependencies that whenever I can I try to package my JS code in self-contained modules/files that depend on nothing -- not even on one another. Needless to say, it's not an approach that's very popular, but it works remarkably well for websites of moderate complexity. One thing I'm sure of: using those modules feels far more satisfying than using a framework.

Re:React Tutorial: Cloning Yelp by softawre on Thursday May 26, 2016 @04:07PM (#11781071)
Sounds very anti-DRY, though I get where you are coming from.
Re:React Tutorial: Cloning Yelp by romaniv on Thursday May 26, 2016 @06:43PM (#11782279)
As far as DRY, the worst aspect of no-dependencies approach is dealing with AJAX. The rest of it is actually not that bad. After some experimentation, I separated the functionality into "behaviors", which are fairly reusable across different pages and projects.