An Easy Way to Improve Code Readability

An Easy Way to Improve Code Readability
   Readable code has a lot of properties. Following conventions, consistent formatting, proper naming and even architecture affect readability. There is one aspect of readable code that I find often neglected and even broken on purpose for dubious reasons. Good code reads almost like a natural language sentence. While I am all for conventions and formatting I think staying closer to natural language is the most impactful feature of readable code...
Posted by:   Stilgar
16:33 14.05.2016

Five Little Tricks to Make Your Life with Entity Framework Easier

Five Little Tricks to Make Your Life with Entity Framework Easier
   The history of data access technologies in .NET is not a pretty one. Microsoft told us to do DataSets, then SqlDataSource, then LINQ to SQL, then Entity Framework in one way, then Entity Framework in another way. In the meantime many people were using raw ADO.NET and wrote their SQL by hand and other people were using NHibernate. It seems that things have finally settled down. DataSets, DataSources and LINQ to SQL are pretty much dead and it seems NHibernate is about to join them. The people who love control over their SQL are still a minority but they are doing just fine and have added some tools like Dapper to their belts. For the past four or five years most people have been doing (at least for new projects) what Microsoft calls Entity Framework Code First which is a name that in typical Microsoft fashion is very confusing and inaccurate. If you are in that camp you might find the knowledge I am about to share useful. It has come with a lot of battle scars...
Posted by:   Stilgar
10:22 08.02.2016

C# 6.0 Features

C# 6.0 Features
   C# 6.0 has been officially released along with the Roslyn compiler platform. I feel it is my duty to inform the world of my opinion on the topic as undoubtedly millions are interested to learn what they should think about it. Adopting mine is the easiest way to have a correct opinion...
Posted by:   Stilgar
22:12 30.07.2015

Discrediting Questions about the Next Number in a Series with the Lagrange Polynomial

Discrediting Questions about the Next Number in a Series with the Lagrange Polynomial
   For quite some time I have been annoyed by the kind of IQ test questions where you are given a series of numbers, quite often without any explanation and are expected to provide the following number in the series. These are the type of questions I fail most often on IQ tests and maybe this is the reason I hate them so much. I can accept that I am stupid but I cannot accept people claiming that these are Math problems. This is not simply not Math. This is anti-Math...
Posted by:   Stilgar
17:34 09.07.2015

Implementing IDisposable on Types which Own an IDisposable

Implementing IDisposable on Types which Own an IDisposable
   Implementing IDisposable is a subject discussed so many times that it is highly unlikely I have anything to add that is not common knowledge. However checking the whole first page of Google results did not yield any article that mentions how to implement IDisposable on objects that own an IDisposable object. While the actual code is simple I have seen people forget to implement it or use the unnecessarily heavy Disposable pattern to implement it. But first…
Posted by:   Stilgar
23:02 14.01.2015
First Previous 1 2 3 4 5 6 7 8 9 10  ... Next Last