C#, Tech questions

Tech questions 1-3: Linq

Hey guys, This is a new series I will try to maintain to the best of my capabilities. I'm this awesome blogger who happens to be also a Microsoft MVP called Iris Classon. After her first year of programming, she started to ask and get answers for what she'd call "stupid question". Why would she… Continue reading Tech questions 1-3: Linq


Implementing a Stack in F#. Tail Recursion.

Viral F#

Since Push requires stacks to manipulate its data, we need an implementation of this data structure. There is of course a .NET implementation, however, it is not a “functional” data structure, in a sense that it is mutable. It is easy enough to implement our own, purely functional, immutable stack.

F# list is a logical choice for an underlying implementation. It derives from Seq (i.e. implements all IEnumerable flavors), has a useful length property which we would like to have for our stack as well:

What remains is to implement basic operations, which are all static members of the Stack module.

These are pretty straightforward. pop function has a slight quirk: we would like to return both the value of the head of the stack as well as “the rest” of the stack. So the return type in this case is a tuple.

Another slight irregularity: stack functions work on…

View original post 270 more words


Shaping your profesional skills structure

Hey guys, So, professional shaped skills... What's that. Basically, it's the form your skills take concerning your expertise in your individual field(s). This form will depend on both depth and broadness. Trying to learn as many things as possible will lead to little depth and a large broadness of skills. The exact opposite leads to… Continue reading Shaping your profesional skills structure


Become better, learn better, do code katas !

Hey guys Today, I'm here talking about how to better ourselves us developers. We're always learning while working and that's bad. We should instead learn in our own time and practice before trying to use our tools to resolve the bugs in the software and the features requests from the clients. Learning on the job… Continue reading Become better, learn better, do code katas !