Tyler Doll
Jul 7 · 1 min read

Daan,

Thanks for the great article! However I happen to disagree with the assertion that you shouldn’t name private members with leading underscores. I would agree with this for languages that have the ability to differentiate scope (like C++), but for languages like Python it’s not only helpful but the standard. It doesn’t add all that much to your code and it provides the added benefit of documenting your module/class interface for you. Like you mentioned about variable names including their intent, using leading underscores can make clear that the member is intended to be private/protected. Now you can’t always enforce this (like in Python), but when done right and agreed upon by the team it can be a good way to communicate intent through your code and without extra documentation. All in all though I loved the article and hope it helps others improve their coding skills!

Thanks,

Tyler

Tyler Doll

Written by

A guy who likes to think about computer things

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade