Earlier quoted context omitted.
The first time I saw something like IIFEs was in one of the SICP lectures, where they show that variable definitions with let or define can be seen as syntactic sugar over immediately invoked lambdas. And even those Scheme uber-nerds considered it big hack, more useful in theory then in practice.
It's useful as a de-sugaring step during compilation, not something people generally do by hand.
Preparing Yourself for Modern JavaScript Development
71–75 of 75 posts
Re: Preparing Yourself for Modern JavaScript Development
#72Earlier quoted context omitted.
I've been following the work on RequireJS for two years and think that it's an evil project that sabotages the rise of CommonJS, NodeJS and NPM by leading client-side Javascript coders to follow a non-standard, awkward way of JS development. From the very beginning, it forces coders to cover their code with awkward code and maintain it manually. It's completely insane. I even think that I'm wasting my time by talking…
Their (RequireJS's) website claims the following; I would be interested in an argued response/critique. > CommonJS defines a module format. Unfortunately, it was defined without giving browsers equal footing to other JavaScript environments. Because of that, there are CommonJS spec proposals for Transport formats and an asynchronous require.
Re: Preparing Yourself for Modern JavaScript Development
#73Earlier quoted context omitted.
I cringe when people claim to be writing more than the most basic JS and aren't using prototypes.
It's a style choice. You don't have to use classes and/or do anything with the prototype chain.
No. max line lengths is a style choice. indenting with spaces vs tabs is a style choice brace position is a style choice
Using prototypes and instances in JS is about using the right tool for the job.
Re: Preparing Yourself for Modern JavaScript Development
#74Earlier quoted context omitted.
It's useful as a de-sugaring step during compilation, not something people generally do by hand.
Continuation Passing Style is also supposed to be used as part of acompilation step but look at how everyone does in by hand in Javascript-land :(
Re: Preparing Yourself for Modern JavaScript Development
#75Earlier quoted context omitted.
here; http://requirejs.org/docs/ you can see all the smelling shit of requirejs there.
Can you expound please?