Enki.js, lessons learned while writing a javascript framework

Post on 02-Aug-2015

138 views 2 download

Tags:

Transcript of Enki.js, lessons learned while writing a javascript framework

Enki.jsLessens learned while writing a libray

Ok, so what is it?

Why did I write it?

I disliked existing libraries

Disillusioned with my work

Bored

Wanted to see if I could do it

Design philosophy

For modern browsers (IE9+)

No boilerplate code

No boilerplate code

No code in the view

Keep it simple

Keep it simple

Keep it simple

Keep it small

Keep it small

No defensive programming

Things I’ve learned

TDD is fun when not at work

TDD is fun when not at work

Big things with little code

JavaScript is seriously powerful

Dynamic types + functional = 💣

Dynamic types + functional = 💣

Feedback is hard to come by

Scope creep

Documentation is harder than it should be

Things that it’s missing

Speed tests

Memory tests

Async loading

Questions?