Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Whats missing from an SRM?

MISSING SRM
0
Posted

Whats missing from an SRM?

0

Before I took part in my first TopCoder competition I visited many of the practice rooms and studied the solutions of other competitors. My first reaction (being an teacher) was “What’s up with these variable names? Where are the comments?”. I shortly realized that no points were awarded for conforming to coding standards. One letter variable names take less time to type than more descriptive ones. Comments only help others during the challenge phase. On the other hand, the mindset of a professional programmer must be that code is written once to be read many times. An effective SRM solution is written once to be tested shortly thereafter. As I write production code I tend to ask myself if I’ll be able to understand it in 6 months. I understand that I’ll often be required to revisit it. My employees labor under the same expectations. None of us wants our cell phone to ring on Sunday morning because something we wrote is dividing by zero. If such a problem does arise, however, it’s comf

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.