Removing Entry from a Database using Entity Framework

Most of the tutorials on the internet seem to focus on how to remove these objects from DataContext as opposed to DbContent. However, if your database is built using code first approach you are unlikely to be using DataContext/. In order to delete an entry from the database, firstly Remove the element and then save ... Read more Removing Entry from a Database using Entity Framework

Proper way of returning multiple values from a method

Since C# 7 you can make method signatures which correspond to multiple values In Python, you can return multiple values from a function. This functionality is not however built-in into C#, shame. I think this is a nice feature of the language. It frequently reduces asymptotic complexity (i.e. "performance") without resorting to implementing another class ... Read more Proper way of returning multiple values from a method

Using #region to improve readability of your Code in VS

#region is an interesting instruction that tells Visual Studio how to wrap the code into 'meaningful' chunks. In larger classes, especially, those with several interfaces it is particularly helpful.

Pretty handy if you ask me. The downside is, and I have seen this already a couple of times, is that some engineers use them ... Read more Using #region to improve readability of your Code in VS

Automated WCF RESTful System Testing with VS

Lately, we've been playing around a lot with WCF. Unit testing WCF services is not exactly challenging (well done Microsoft), but it seems that with unit tests it is quite difficult to test certain behaviour, for example, authentication or authorization. There are other means of developing automated tested system tests, but they are not that ... Read more Automated WCF RESTful System Testing with VS

Remember to close files: the process cannot access the file '' because it is being used by another process

I was building a simple web system which relied on XML files. On initiation, the system would open the XML config file, read it and include other XML files defined in it:

The operation was done within a WebForm and it worked just fine. I also had a WCF service whose job was to ... Read more Remember to close files: the process cannot access the file '' because it is being used by another process

Should software engineers be empowered to say “no” to building a given system?

Should software engineers be empowered to say “no” to building a given system? For an employed software engineer the refusal to build a given system may be seen as not performing required tasks. For an unemployed software engineer, it may be another couple of months without a job. The word “no” may be caused by ... Read more Should software engineers be empowered to say “no” to building a given system?

Ensuring internal quality of software

Internal quality (aka structural quality or architectural quality[3][9][10]) is an assessment on the quality of the code and its underlying architecture. It differs from external quality which assesses how good the software is in relation to the requirements. Nowadays, as building large scale applications is becoming increasingly common, assessing it, is becoming increasingly important. The ... Read more Ensuring internal quality of software

9 steps to make your website more accessible

Accessible Web The internet is an information medium based in 95% on visual transmission. It would seem therefore that it is virtually unusable for people unable to see. This, however, is not true. Indeed, we (the developers) can make browsing our sites a truly great experience by making it a more accessible. Here are the 9 ... Read more 9 steps to make your website more accessible