1) Variable names: don’t leave out letters, and clearly identify semantics.

int numGrads;

Num is short for number; is it an index? A count? An offset?

Grad is short for graduate.

This habit comes from ancient language restrictions and 80-column CGA monitors but people still do it.

int GraduateCount;

Is only a few more letters but is unambiguous.

2) the ! Operator is too small for its significance and a lot of code “beautifiers” (to say nothing of developers who think legibility is degrading) will cram it all together

if(!isLegible)

This is horrible. I use direct comparisons instead (and whitespace):

if (isLegible == FALSE)

So it takes a little more time. So what. Tracking down bugs takes thousands of times longer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store