Difficult is OK

August Lilleaas

Simple

Easy

Complex

Difficult

Simple vs. Complex

Easy vs. Difficult

Simple vs. Complex

Braiding together, intertwined

Objective, absolute

Easy vs. Difficult

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();
});

Abstractions!

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