Modern applications are complex multi-tier and multi-layer systems that consist of multiple client-side apps, web servers, application servers, and database servers. The applications use third-party libraries, communicate with other applications using different communication mechanisms, and rely on cloud services and hosting providers. The complexity goes on and on and on. In other words, modern applications are Complicated with a capital …
7 Common Mistakes You Should Avoid When Handling Java Exceptions
Handling an exception is one of the most common but not necessarily one of the easiest tasks. It is still one of the frequently discussed topics in experienced teams, and there are several best practices and common mistakes you should be aware of. Here are a few things you should avoid when handling exceptions in your application. Mistake 1: Specify …
9 Best Practices to Handle Exceptions in Java
Exception handling in Java isn’t an easy topic. Beginners find it hard to understand and even experienced developers can spend hours discussing how and which Java exceptions should be thrown or handled. That’s why most development teams have their own set of rules on how to use them. And if you’re new to a team, you might be surprised how …
Top Java Software Errors: 50 Common Java Errors and How to Avoid Them
There are many types of errors that could be encountered while developing Java software, from, but most are avoidable. We’ve rounded up 50 of the most common Java software errors, complete with code examples and tutorials to help you work around common coding problems. For more tips and tricks for coding better Java programs, download our Comprehensive Java Developer’s Guide, …
Top .NET Software Errors: 50 Common Mistakes and How to Fix Them
Developing in .NET provides several powerful benefits, including less overall code, improved security, ease of updates/changes, and language independence. That said, the system isn’t without errors and problems. From common exceptions to coding mistakes to incorrect assumptions, most of these issues come down to programmer error. The list below shares the 50 top .NET software errors from around the web. …
How to Use Web.Config customErrors for ASP.NET
The ASP.NET framework provides built-in settings to control how to respond when an application error occurs. This functionality is part of the Web.Config customErrors section. Configuration Options for Web.Config <customErrors> Like most web.config settings, customErrors can be configured within the Machine.config, root web.config or your application web.config file. Usually, it is set per application. CustomErrors supports the following modes: On – …
Best Practices for Error Handling in ASP.NET MVC
Error handling is an important part of any application. ASP.NET provides several different ways to handle errors. In this article, we will review MVC error handling best practices. 5 Ways to do MVC Error Handling Between .NET, ASP.NET, and MVC there are several potential ways to handle application errors. Web.Config customErrors MVC HandleErrorAttribute Controller.OnException method HttpApplication Application_Error event Collect exceptions via …
Understanding # of Exceptions Thrown / Sec and How to Find Exceptions
Exceptions 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. Is …
How to Convert C# String to Int
The .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 a …
Software Error vs Exception – In Real World Examples
After 15+ years of software development, I still use the words error and exception interchangeably. But is there a difference between error and exception? I think it is best to make the distinction with some examples of errors vs exceptions. Example #1: Dishwasher Errors Let’s use this example of a dishwasher. Both images depict a problem, or error, that happened with …
C# Exception Handling Best Practices
Welcome to Stackify’s guide to C# exception handling. In this article we cover the following topics: Basics about C# Exceptions, including examples Common .NET Exceptions How to Create Your Own Custom C# Exception Types How to Find Hidden .NET Exceptions C# Exception Logging Best Practices What is an Exception? Exceptions are a type of error that occurs during the execution …
Finding Hidden Exceptions in Your Application with Prefix
Prefix enables developers to easily see what their code is doing as they write and test their code, including SQL queries, HTTP calls, errors, logs, and much more. One of the best features of Prefix is its ability to see all of the exceptions that are occurring in your code. There are 3 types of exceptions: Unhandled – the user got a …
How GWB Found Hidden Exceptions and Application Performance Problems
Exceptions in .NET can be very expensive when it comes to CPU cycles. Read how Geeks with Blogs (http://geekswithblogs.net) used Retrace to improve the performance of their application. About Geeks with Blogs (GWB) Thousands of software developers use Geeks with Blogs (GWB) to host their own personal blog. The code base has slowly morphed and has been modified by several developers over …