What is NullReferenceException? Object reference not set to an instance of an objectApril 17, 2017Null reference errors are responsible for a good percentage of all application bugs. They are usually very simple problems caused by not adding additional logic to ensure that objects have valid values before using them. The following code will throw a NullReferenceException if the variable “text” being passed in is null. You can’t call ToUpper() on a null string..
Understanding # of Exceps Thrown / Sec, and How to Find ExceptionsApril 17, 2017Exceptions can cause big performance problems. One of the most important performance metrics to track about your application is “# of Exceps Thrown / Sec“. It is available via Windows Performance Counters under the category .NET CLR Exceptions. In this article we will talk about exceptions, how to monitor your exception rate and find the actual exceptions being thrown..
How to Generate C# Random Numbers, Pseudo vs Secure Random NumbersApril 16, 2017Random numbers are used in a wide variety of software applications. Depending on what you are using random numbers for, you will need to decide which type to use. For a music jukebox, the accuracy is not very critical. For something like a lottery or slot machine, the random number generator must be extremely accurate. There are two types.
How to Convert C# String to IntApril 16, 2017The .NET Framework provides a couple built in ways to convert a C# string to int, or several other numeric datatypes. It is important that you do so in a way that does not throw potential exceptions. Unsafe Ways to Convert a C# String to Int You can use a couple built in methods, as shown below, to convert.
Why Production Monitoring Can Come Too Late in the Development ProcessApril 20, 2017I’ve spent a number of years, now, writing software. At the risk of dating myself, I worked on software in the early 2000s. Back then, you couldn’t take quite as much for granted. For example, while organizations considered source control a good practice, forgoing it wouldn’t have constituted lunacy the way it does today. As a result of the.
22 Software Developers and Development Leaders Reveal the Best Metrics for Measuring Software Development Efficiency and ProductivityApril 18, 2017We’ve talked a lot about Agile development and DevOps — particularly, the always-pressing need to rapidly ship new versions of their code and update their products. But when it comes to evaluating the productivity of your development teams, what metrics matter most? Should you merely be concerned with deadlines and timesheets, or should you focus on customer satisfaction to evaluate.
Download v2.1 Now!