4 ms·
> And then after two rounds of interviews they rejected me because apparently 'cat error.log | grep 'ERROR:' | wc -l' is not how real programmers find error cou
by reificator 7y ago
> And then after two rounds of interviews they rejected me because apparently 'cat error.log | grep 'ERROR:' | wc -l' is not how real programmers find error count, but write python programs every single time they face such a problem.
bulletsDodged += 1
- somebodythere 7y agoReal programmers would write bulletsDodged++;
- reificator 7y agohttps://doc.rust-lang.org/1.2.0/complement-design-faq.html#why-no---x-or-x++ https://doc.rust-lang.org/1.2.0/complement-design-faq.html#w...?
- bagacrap 7y agoour style guide dictates ++bulletsDodged;
- ErikAugust 7y agoWell, bulletsDodged++ and ++bulletsDodged mean different things in most languages. It ain't just a matter of style. :)
- reificator 7y agoBut preferring one over the other is.
- fhars 7y agoLike C++ gives you the current value of C and then increments it for some future use.
- philpem 7y agoThing is, that's not valid Python - but the OP's version is ;-)