August Lilleaas
Simple
Easy
Complex
Difficult
Simple vs. Complex
Easy vs. Difficult
Braiding together, intertwined
Objective, absolute
Near at hand
Subjective, relative
Difficult is OK
Complex is BAD
row.find("a.show_more_info").bind("click", function (e) {
$.ajax({url: "/users/" + id, success: function (result) {
row.find(".more_info").html(result).show();
}});
e.preventDefault();
});
Complexity is forcing us to think about many things at once
row.find("a.show_more_info").bind("click", function (e) {
$.ajax({url: "/users/" + id, success: function (result) {
row.find(".more_info").html(result).show();
}});
e.preventDefault();
});
Networking
Event listening
DOM manipulations
Abstractions are difficult
Difficult is OK
Simple and difficult
Complex and easy
Over time,
Simple and difficult
becomes
Simple and easy
Over time,
Complex and easy
becomes
Complex and difficult
Difficult is OK
When possible,
Choose simple and difficult
Not easy and complex