When you think of stress, you no doubt think of a situation similar to this picture. A situation of discomfort, strain and pressure, which could be caused by innumerable reasons. While this is definitely one form of stress, stress is also something that can also make you feel excited, motivated and challenged.
Sam Jenkins' Blog Posts
Excel is a powerful tool and has a lot of opportunities that people aren’t aware of. In this post, I’m going to talk about one of these, the ability to easily make a dynamic sub-menu.
In this post, I’m going to talk about my recent change of hosting provider and the impact it has had. Honestly, I hadn’t expected there to be one, so I have been left surprised by the impact it has had.
Hello Internet, it’s been a while! My last update was written in January 2014! This is obviously a very long time ago and a lot has happened in my life since then. The primary change in my life is that I have moved away from primarily working in development roles into more business consulting and project management. This means that while I might still post the occasional piece of code or tech they are likely to be less frequent.
I had a comment recently from ‘The Dag‘ asking if I could create some code which would check to ensure that none of the parameters for a methods were null. While this is quite a simple piece of code I thought I would reply in a post rather than answering in the comments as it is more likely to be found by anyone else who is looking to do the same.
If you have ever developed an application that is time sensitive you’ll appreciate just how much of a nightmare it can be to get right. Do you handle users in a different time zone to you? Do you handle day light savings? Do you handle leap seconds/days?
As developers we’re inclined to want to understand what is happening under the hood or at least know that we can check if we wanted to. This is the case with Entity Framework, which performs some magic to provide access to a database and allowing us to perform actions against it. While 99% of the time we are more than happy to treat Entity Framework as a black box, sometimes we like to look under the covers and see what the Entity Framework is doing. In this article I will show you how to log the SQL queries that are being performed by the Entity Framework in an ASP.NET MVC application.
NuGet is an amazing addition to Visual Studio, it’s one of those features that you wonder how we managed without it before. The only problem is that it requires that there is an active Internet connection to use it. This means by default you’re unable to use NuGet when you’re developing out and about.
One of my least favourite things about the .NET Framework is that there are plenty of places where it expects you use magic strings . These make maintaining your application harder as refactoring through Visual Studio will not pick up these references, which then get left behind with their original value. This blog post is to mostly share a very useful code snippet with you that helps us to avoid using magic strings and instead uses lambda expressions to specify the name we want.
Failing to handle null reference’s is one of the most common bugs in an application, this happens when a developer assumes that the a value will always contain an object even though it could be null. One of the nasty things about checking for nulls is that if you’re looking to retrieve a value from a deeply nested value would end up with a large number of nested if statements or one rather long if condition. In this blog post, I am going to show you a method that I have developed to avoid the need for these, allowing us to write much cleaner and more readable code.