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

Sir Terry Walks with Death

Terry Pratchett death tweet

    Sir Terry met with Death today. This was announced on his Twitter in a typical Discworld fashion (see above). Of course we knew this would happen as he was fighting Alzheimer's disease for almost a decade. He is my favorite author and I am sad that he is gone but at the same time I smile all the time to all the clever ways his fans apply quotes from his books to the event.

I ATEN'T DEAD - a placard Granny Weatherwax puts on her body when she possesses animals to avoid accidents.

Don't think of it as dying, said Death. Think of it as leaving early to avoid the rush.*

...and many others. I guess it helps that he has the Death character in his books.

    Now that the greatest wizzard of literature is dead I wonder if the morons composing school curriculum for literature classes will dare to include him. They manage to suck the fun of reading every book but I believe that Terry is even more powerful than them. Go ahead put him in the textbooks and write endless analyses I dare you!


* - fun fact that may not be known to people who read Terry Pratchett in Bulgarian - Death speaks in caps but he still uses bigger letters where appropriate

Posted by:   Stilgar
21:42 12.03.2015
First Previous 1 2 3 4 5 6 7 8 9 10  ... Next Last