A bit of inspiration most weekdays for exploring your mindset .

Code and readability

Khem Raj September 11, 2024 #meta

I have seen fabulous computer programmers, who can code any hard problem at hand. However, I have seen few whose code can be understood easily by others and perhaps given enough time interval by themselves too.

While code is meant to be understood by machine in the end, its often misconstrued term, it should be written to be understood by humans.

There is code that has comments isn't that enough for humans ?

No it isn't. Overtime, comments can easily go out of sync with program logic and become irrelevant and hurt the readability instead of helping.

Writing lucid code is an art.