why i hate node js

44
sabato 10 novembre 12

Upload: sammyrulez

Post on 04-Jun-2015

6.309 views

Category:

Technology


1 download

DESCRIPTION

my talk at nodejsconfit

TRANSCRIPT

Page 1: Why i hate node js

sabato 10 novembre 12

Page 2: Why i hate node js

Why I Hate NodeJS

sabato 10 novembre 12

Page 3: Why i hate node js

• I do not hate anything

Disclaimer

sabato 10 novembre 12

Page 4: Why i hate node js

•Working with web apps since 1998•Worked with a lot of different frameworks•Worked on some high traffic websites•Worked in the architecture team in a big sw company

Who Am I ?

http://linkedin.com/in/sammyrulez

sabato 10 novembre 12

Page 5: Why i hate node js

What’s wrong with Nodejs?

sabato 10 novembre 12

Page 6: Why i hate node js

JAVASCRIPT!

sabato 10 novembre 12

Page 7: Why i hate node js

JAVASCRIPT!

sabato 10 novembre 12

Page 8: Why i hate node js

JAVASCRIPT!

sabato 10 novembre 12

Page 9: Why i hate node js

voluntier needed

What do you know about Javascript ?

sabato 10 novembre 12

Page 10: Why i hate node js

[ ] + [ ]Result?

sabato 10 novembre 12

Page 11: Why i hate node js

EMPTY STRING!

[ ] + [ ]Result?

sabato 10 novembre 12

Page 12: Why i hate node js

[ ] + { }Result?

sabato 10 novembre 12

Page 13: Why i hate node js

EMPTY OBJECT!

[ ] + { }Result?

sabato 10 novembre 12

Page 14: Why i hate node js

{ } + [ ]Result?

sabato 10 novembre 12

Page 15: Why i hate node js

EMPTY OBJECT!

{ } + [ ]Result?

sabato 10 novembre 12

Page 16: Why i hate node js

EMPTY OBJECT!

{ } + [ ]Result?

or Zero?!?sabato 10 novembre 12

Page 17: Why i hate node js

{ } + { }Result?

sabato 10 novembre 12

Page 18: Why i hate node js

LIST EMPTY OBJECTS!

{ } + { }Result?

sabato 10 novembre 12

Page 19: Why i hate node js

LIST EMPTY OBJECTS!

{ } + { }Result?

or NaN?!?sabato 10 novembre 12

Page 20: Why i hate node js

There should be one-- and preferably only one --obvious

way to do it.

sabato 10 novembre 12

Page 21: Why i hate node js

Hemingway

sabato 10 novembre 12

Page 22: Why i hate node js

Shakespaere

sabato 10 novembre 12

Page 23: Why i hate node js

Dickens

sabato 10 novembre 12

Page 24: Why i hate node js

It works. I know because I did the math and I have a model to prove it.

Architecture

sabato 10 novembre 12

Page 25: Why i hate node js

V8: an insane external, platform dependecy

Architecture

sabato 10 novembre 12

Page 26: Why i hate node js

Nodejs has his own way to be fast.

Architecture

sabato 10 novembre 12

Page 27: Why i hate node js

Programming model

sabato 10 novembre 12

Page 28: Why i hate node js

sabato 10 novembre 12

Page 29: Why i hate node js

sabato 10 novembre 12

Page 30: Why i hate node js

sabato 10 novembre 12

Page 31: Why i hate node js

0

25

50

75

100

20072008

2009

2010

Complexity O Feature

sabato 10 novembre 12

Page 32: Why i hate node js

Programming culture

sabato 10 novembre 12

Page 33: Why i hate node js

Random (unconfirmed) stuff

•Bugs / Stability•Poor libraries

sabato 10 novembre 12

Page 34: Why i hate node js

Nodejs: the good parts

sabato 10 novembre 12

Page 35: Why i hate node js

Community!

sabato 10 novembre 12

Page 36: Why i hate node js

NPM

sabato 10 novembre 12

Page 37: Why i hate node js

Hubble suggestions

sabato 10 novembre 12

Page 38: Why i hate node js

Hubble suggestions

Fork V8

sabato 10 novembre 12

Page 39: Why i hate node js

Hubble suggestions

Fork V8

Simplify callbacks

sabato 10 novembre 12

Page 40: Why i hate node js

Thank youfor keeping me alive

sabato 10 novembre 12

Page 41: Why i hate node js

...And one more thing...

sabato 10 novembre 12

Page 42: Why i hate node js

Vertex.vmNon blocking event driven based on the JVM

sabato 10 novembre 12

Page 43: Why i hate node js

Vertex.vmNon blocking event driven based on the JVM

Polygloth

sabato 10 novembre 12

Page 44: Why i hate node js

Vertex.vmNon blocking event driven based on the JVM

Polygloth

Runs “Hello World” faster then Nodejs

sabato 10 novembre 12