Be simple, but not simpler
Pavel Filippov
4th of October, 2012
(Press "→" for a next slide)
Pavel Filippov
4th of October, 2012
Pavel Filippov (emdin)
Frontend dev @ Delivery Hero (aka Lieferheld.de),
world-wide food ordering platform, over 9 million orders placed)
Everything should be as simple as it can be, but not simpler.
locationsCollection.fetch({ success: function(collection, response) { throbber.hide(); collection = collection. filterByRelevance(locationValue). sortByRelevance(locationValue); // ...more stuff... } });
locationsCollection.fetch({ success: _.bind(this.onSuccess, this) });
var lb = new Lightbox(); lb.header = myHeader; // bad lb.setHeader(myHeader); // better
smth || smth.do(); // neat
if (smth) { smth.do(); // readable }
Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.