3 ms·
We all have written code only to come back to it a few weeks later and think "oh god, what in the world was I thinking". If only code refactored itself over the
by Mahn 14y ago
We all have written code only to come back to it a few weeks later and think "oh god, what in the world was I thinking". If only code refactored itself over the time; small projects aren't an issue, but there's a point in every devs life when you have this monstrous one-eyed, ten thousand lined class that works fine in production but no one knows how or why it works and the idea of making a single change to it gives you pure panic and terror. And you know you have to rewrite it, but you have a hard time justifying spending two weeks on getting nothing tangible done, so to speak. The class goes on unfactored for a while (until it inevitably breaks) but at least you come to this almost zen realization that beautiful code = simple, short, and self descriptive code.
- danneu 14y agouser.rb