News for hackers. Stuff that matters.
Re:C++ Is the Next C++ by kllrnohj on Thursday November 03, 2022 @09:50AM (#33450923)
> If code is broken due to it being bad abstractions, you will need to know how it is implemented regardless.

Sure, but the type (and thus the guideline) is still helping with that instead of hurting. I can much more easily find all usages of a broken `Month` type than I can an int representing a month which could be named anything.

> That said, I still will never follow anything religiously, even if Bjarne Stroustrup wrote it because really no rules fit every situation

Oh definitely, I don't agree/follow all of those guidelines either. The guidelines themselves don't pitch themselves as that, and many of the "rules" have whole sections listing reasonable exceptions and why those exceptions are OK.

There are no comments on this comment yet.