Dave Zych
  • Home
  • About
  • Contact
  • Privacy

comments

A collection of 2 posts
comments

You have version control. So use it!

How often do you see items like this when reviewing your source code: //We no longer display the count on the homepage //Uncomment this if we need it again! 8/20/2010 //for(int i = 0; i < maxResults; i++) //{ or… //Why is this commented? How are we getting the most
Sep 10, 2013 1 min read
C#

Avoid Commenting Your Code

When I’m answering questions on Stack Overflow [http://www.StackOverflow.com], I see a lot of questions with code like this: // Convert our ciphertext into a byte array. byte[] cipherTextBytes = encryptedBytes; ... // Create uninitialized Rijndael encryption object. TripleDESCryptoServiceProvider symmetricKey = new TripleDESCryptoServiceProvider(); ... // Define memory stream which will be used to hold
Jul 24, 2013 2 min read
Page 1 of 1
Dave Zych © 2025
  • Data & privacy
  • Contact
Powered by Ghost