- Use Microsoft's Code Contracts
- Don't call LINQ .FirstOrDefault without checking the return value
- Thow ApplicationException for internal checks (and check often)
- Check for null after casting a variable using "as"
- Think before you code :-)
Just some random development ramblings mostly related to the Microsoft .NET platform.
Monday, August 19, 2013
Code Defensively
Code Defensively
Subscribe to:
Comments (Atom)
Can't RDP? How to enable / disable virtual machine firewall for Azure VM
Oh no! I accidentally blocked the RDP port on an Azure virtual machine which resulted in not being able to log into the VM anymore. I did ...