You may not know, but two principals at Fairway Technologies are published authors at Pluralsight.com. Pluralsight is the leader in online technology courses. Paul D. Sheriff and Michael Krasowski have created over 20 courses covering topics from Project Management, Estimation to WPF, MVC and Angular. Check out the complete list of the courses produced to date.
In the previous blog post on creating a configuration settings system for Angular, you learned to create a configuration settings service to retrieve default settings for your application. You first learned to hard-code a settings class with values, then how to read those same settings from a JSON file.
When a user clicks on a button on a web page, there can be a delay between posting back to the server and the next action that happens on the screen. The problem with this delay is the user may not know they actually clicked on the button and tries to hit the button again. It is important to give immediate feedback to the user so they know that the application is doing something. This post will show you how to disable the button, display a pop-up message and gray out the background before the post back happens thereby providing feedback to our user.
Yes, it is always a struggle to keep your software up-to-date, but it is vital that you do so. Microsoft and Apple upgrade their operating systems every couple of years. Sometimes, when they do this, they break compatibility with their older operating system (OS). While this might be fine for most software, sometimes it does cause older software running on the new OS to break. If you have older software such as software written using Visual Basic 6 or earlier, FoxPro, PowerBuilder, and others, this means you are at risk of your software no longer working.
Pluralsight is your go-to website for thousands of developer videos. Paul now has 13 courses available in the Pluralsight library. His latest is described below...
Prior to .NET 2.0 when you needed a single method to work with different data types the only way to accomplish this was to pass an ‘object’ data type to that method. Working with the object data type introduces performance problems and bugs that can occur at runtime. The alternative is to create a new method for each data type that you wished to work with. This introduces a maintenance nightmare and leads to a larger API for programmers to learn. An example of using individual methods is shown in the code snippet that follows. Notice the calls to two different “ConvertTo” methods; ConvertToInt and ConvertToDateTime. The only difference between these two methods is the data types being passed in as parameters.
When working with strings, you should take advantage of certain classes and methods to avoid performance and memory problems. A key item to remember about .NET string is that they are immutable. Immutable means that strings are read-only and the value cannot be changed after it is created. If you add more data to the original string, a new instance of a string class is created to hold the new string and the old memory is marked for garbage collection. Thus, if you are doing a lot of string manipulation, you can create performance and memory issues in your application.