Member-only story
How can programmers be lazy if coding is hard?
Year 1725. Programming starts. Some years later, hipster programmers hack systems with perforated cards:
But one programmer was fed up with punching cards. He made a processor and figured out how to program with a keyboard:
mov dx, 3c8h
xor al, al
out dx, al
inc dx
mov cx, 256
xor al, al
Everyone was so happy that they don’t need to punch cards. But another lazy developer came and said, “Hey, this is easier”:
cout << “Enter an integer: “;
cin >> number;
cout << “You entered “ << number;
return 0;
It didn’t last forever because another lazy programmer came in and told them he has a way to code easier:
var i;
for (i = 0; i < cars.length; i++) {
text += cars[i] + “<br>”;
}
And everything was OK until a lazy germ infected another programmer and he invented this new lazy method:
cars.forEach(function(car) {text += “<br>”});
Meanwhile another programmer was lazy enough to go further. He hid this into a method and just told everyone to just use:
cars.toString();
Programmers are like the laziest people in the world. They work each day very very hard to have less work. And we all benefit from this laziness living in an era where everything is possible. Because programmers not only think about how to make their life easier, they also think about how to make everyone else’s life easier too.