Recent submissions

Comment · 12 years ago

    > Women are like dogs
Fuck off.
Comment · 12 years ago
Yeah. The hand-wavey reference to advances in parallelisation and cloud runner infrastructure doesn't adequately address the drawbacks of this "post-TDD" approach.
Comment · 12 years ago
Worth bearing in mind that this is effectively DRM for email, with all the negative connotations that DRM brings.
Comment · 12 years ago
Better still, it deserves to be replaced with a better name. Comments should not be our first port of call when we notice an issue like this in code. Fix the name. If you can't fix the name, you hang your head in shame and then you write a comment.
Comment · 12 years ago
See this comment: https://news.ycombinator.com/item?id=7296586

Good commenting is no substitute for good naming. For a variable containing the number 1, "three" is a shitty name.

Comment · 12 years ago
This is a bloody clever counter-argument as well as an excellent example of the right way to use comments.
Comment · 12 years ago
Comment · 12 years ago
I don't think there's enough attention on the fact that the strict MVC approach of big old school web frameworks like Rails is an increasingly glaring architectural dead-end. The "model" part of an MVC application is invariably far too complex to crowbar inside a couple of dozen Active Record subclasses. And you can't prescribe a one-size-fits-all architecture for the model from a framework level. That part has to emerge from the business and technical constraints of the specific application in order to be correct.
Comment · 12 years ago
Rather than an exception, I think this is an example of the precise scenario in which it's most inappropriate to use comments.

    > visually represent logical segments of the code
This is exactly the use case in which function definitions excel. Use functions for this, not comments.
Comment · 12 years ago
Never write comments that re-state the implementation.

    # Try to read the configuration file.
If this wasn't already obvious without the comment, then the code is a mess. Tidy the code up instead of painting over the problem with comments.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton