#How to write clean code?

5 messages · Page 1 of 1 (latest)

autumn blaze
#

I've been wondering if anyone could guide on to writing clean code and self-explanatory functions. Thanks!

somber kindleBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.

willow star
#

The biggest one is naming things properly.

glass jay
#

Also keep questioning whether an entity is doing more than it should

frozen zenith
#

Comments may help and python has something called pep8 which are guidelines to write clean code, maybe cpp has something similar