Blog

Clean code & ReverseString

In his latest video, Nick Chapsas is reviewing various C# advises. The one we will be talking is about Keep it simple stupid, and starts but comparing two implementation of the same function.

Read more

Stack on the stack

ref struct have been introduced with C# 7.2 to give us some optimizations opportunities. So let's try to implement a ref struct Stack and see how it goes.

Read more

ReadOnlyObservableCollection

What is the point on observing changes on a collection that is ReadOnly?

Well, I guess it is all in the name: you cannot change it but you can still know what is happening to it.

In framework 1.0 & 1.1, you had no ReadOnly implementation visible. You could create ReadOnly instances by calling static methods. I guess it was decided that it is clearer to explicitly expose the Collection as ReadOnly in the signature of the property itself, than having to read the documentation to discover it.

Read more