DEV Community

Discussion on: 3 Tips to enhance your programming capabilities as a beginner and come up as a superhero!

Collapse
 
murrayvarey profile image
MurrayVarey • Edited

Ah man, those reversed headings made my head spin!

That makes me think of a nice little tip: where possible, give your booleans positive names. My brain gets seriously confused whenever I see code like:

isNotVisible()

Which becomes:

!isNotVisible()

Or even worse:

!IsNotInvisible()

First Try like there is no-one to solve this problem for you and then you can ask your friends or seniors.

Yeah, this is really good advice. For one thing, you'll be able to ask better questions. But make sure you do ask eventually -- I hate to hear that someone has been sat around for two days, panicking because they haven't made any progress.

Collapse
 
justaashir profile image
Aashir Khan

It's really fun, 😂 Thanks. There is another mind-bender, in the first paragraph. Maybe you've noticed?

Collapse
 
murrayvarey profile image
MurrayVarey

Aaah, I'd originally assumed that was a typo! Now I need to lie down ...

Thread Thread
 
justaashir profile image
Aashir Khan

🙂😀