http://blog.voxgig.com/2018/07/13/welcome-voxgig-newsletter-...
139 karma · joined September 3, 2010
http://blog.voxgig.com/2018/07/13/welcome-voxgig-newsletter-...
All this wonderful art greets me on the way to the office every morning - fabulous!
In the meantime, for those of us stuck with contemporary JS, there are mitigating code styles, in particular "early return":
function foo(a, callback) {
bar(a, function(err, b) {
if (err) return callback(err)
baz(b, function(err, c) {
if (err) return callback(err)
// some more stuff
callback(null, d)
})
})
}
Just to be clear, this is still inferior to a linear style.It is however much clearer than the "traditional" style.
koush just took this to the next level.
But you know what. Just stop fighting the callback model. Adapt your coding idioms and move on...
Many server systems use this convention as a way of embedding an extra bit of info (stable/unstable) for sys admins.
Many people are using Node to push boundaries in various ways, so they are using the unstable versions. I did this with 0.3, but 0.4 is good enough for the moment.
Read everything James Altucher has written: http://www.jamesaltucher.com/
He's been around the block a few times, but wears his heart on his sleeve.
One tip: go very easy on the movement - you'll make your audience sea sick!
You need to be able to eye-ball an algorithm and go: hmm, that's O(n^2) ... not gonna work for this use-case... etc.
You can book learn this stuff. Just make sure you do.
Some of the best coders I know never darkened the door of a university.
I've never done this deliberately, but I have noticed this effect.
Drink loads of coffee as well for a double boost: it reduces appetite.
After a few days you will burn out though - only use at critical times.
You start with a free t1.micro instance on Amazon and you measure empirically.
The internal design philosophy of any creative person completely permeates their work.
Many developers have very little awareness of this. The primary symptom: randomly indented code.
Just a word of warning ... it's barely even an MVP at this stage. More a sort of experiment to see how far I can push one of those free Amazon micro instances (pretty far when you use node.js as it happens!).
All the async event goodness (which is great for streaming of course) is just icing on the cake.
Only to be used in the week after you close a round!