News for hackers. Stuff that matters.

g1236627

Re:How to name things in programming on Monday May 25, 2015 @05:00AM (#9599197)
I agree with everything except abbreviations, but to be honest, I think my worst habit it just trying to use words with the same number of characters for different variables so they align well with monospace font.

e.g.

    int num = 42;
    int acc = 0;
instead of;

    int n = 42;
    int acc = 0;
and it gets worse when things get complicated;

    vector<int> dist;  // stands for distances
    vector<int> excs;  // stands for excesses
Does anyone else have this problem?
Re:Show HN: Cat, a C++14 functional library on Wednesday April 29, 2015 @05:20PM (#9461878)
zero cost abstractions?
Re:The Sortix Operating System on Monday April 20, 2015 @07:42AM (#9407351)
I highly doubt the target audience care about that..
Re:About Liberland on Saturday April 18, 2015 @04:34PM (#9400909)
They are liberals not libertarians.
This is indeed an annoying problem. Please either decrease the font size or use 2 or 4 space indentation (without mixing tabs and spaces) or just steal some space from the sides.
Re:C++ Streams on Tuesday April 07, 2015 @06:40AM (#9332982)
Show some compiler errors or it did not happen.