One of the big new features introduced with C# 7 is the ValueTuple.
Now we all know Tuples, we heard of their existence in C#, saw them in a tutorial and decided not to use them, ever again because they were completely awkward and difficult to use.
Continue reading Understanding C# 7 ValueTuples
Here is one very useful, very handy and yet very funny MySQL command line switch.
Continue reading i-am-a-dummy
Didn’t you ever notice that India’s peaceful leader, Gandhi, has been dropping nukes around? From the first game up to today he is dropping nukes.
This is not just our mind playing tricks on you, noticing things that are not there, nor a myth being accepted as a fact.
Continue reading Why is Gandhi a nuclear asshole in Civilization?
One small thing a lot of newcomers to C# and .Net in general are not aware of, is that Strings are immutable. What does that mean? That means a string you created cannot be altered. Strings can only be created and destroyed
Continue reading Small Tip: C# Strings are immutable
I am sure in many cases you have seen enumerations that can be combined using the bitwise OR operator.
It is being used by many libraries that you might have used. It is also useful when you want to set some flags on or off on a specific item in a non OO language or if you wish to pass a specific set of flags in a method.
Continue reading Combinable Enums
Now let’s discuss a few weird stuff it includes.
In previous posts we discussed about casting using the ‘as’ operator instead of using the ‘classic way’ of casting (more info here). But there are a few things we need be careful when using ‘as’ and ‘is’ operators.
Continue reading Pattern Matching and casting using ‘is’ and ‘as’
Let’s assume that you wish to call a method that has a return value and also accepts an out variable, but you do not wish to use the contents of the out variable that will be returned.
So far we were creating a dummy variable that will later not be used, or discarded.
With C# 7 you can now use Discards
Continue reading C# 7: What are discards and how to use them
TO: Tech Support
Last year I upgraded from Boyfriend 5.0 to Husband 1.0 and noticed that the new program began making unexpected changes to the accounting software; severely limiting access to wardrobe, flower and jewelry applications that operated flawlessly under Boyfriend 5.0. No mention of this phenomenon was included in the product brochure. In addition, Husband 1.0 un-installs many other valuable programs such as Dinner Dancing 7.5, Cruise Ship 2.3, and Opera Night 6.1. It also installs new, undesirable programs such as Poker Night 1.3, Saturday Football 5.0, Golf 2.4 and Clutter Everywhere 4.5. Conversation 8.0 no longer runs. When I click on it, the system crashes. Under no circumstances will it run Diaper Changing 14.1 or House Cleaning 2.6.
I’ve tried running Nagging 5.3 to fix Husband 1.0, but this all purpose utility is of limited effectiveness. Can you help, please!!!!
Continue reading Husband 1.0