Delegates in C# was one of the many concepts that eluded me for a long time. Not anymore. I started reading C# in Depth by Jon Skeet this morning, and the entire first chapter is devoted to delegates. How many programming books do you know where the book opens with a fairly advanced topic? I guess only Jon Skeet could do that.
Is there an easy way to see the internal, structural details of your objects laid out in one place so you don’t have to go searching layers and layers of objects to find what you want? Yes, there is. Let’s see how strings can make your life awesome.
Since I started learning to program, one of the most confusing topic has always been how to pass data, without having unintended side effects. Sometimes, we want the data to be immutable, sometimes we do want to modify it within a method. Eric Lippert’s Essential C# does a wonderful job of explaining this topic in depth. This entry tries to summarize my understanding and how it works in C#.
Software development is difficult. Especially if you are working on a 25-year old enterprise software that has gone through multiple platforms, technologies, and has seen multiple generations of developers. All of which makes it hard to understand and difficult to develop. What can we do as developers? Turns out, a lot.
I was really struggling at work this week. Spent hours banging my head to parse a simple XML document. According to pragmatic programmers, I was programming by coincidence, without any clear plan, just hoping to get the code working somehow, and failing completely.