Fun with initialisers
C# has had object and collection initialisers since C# 3.0, but all the docs and blogs I’ve ever seen only cover the basics. We’ve all seen examples like these:
C# has had object and collection initialisers since C# 3.0, but all the docs and blogs I’ve ever seen only cover the basics. We’ve all seen examples like these:
My first foray into blogging was 8 years ago, in 2010, when I was learning C# and .Net for the first time. At the time I decided to blog about what I was learning as a way to help make things stick. Not only was I learning a new language and platform, but, as a result of my own personal “Hit Refresh” moment, I was learning a new discipline as I changed gears in my career from IT operations to software engineering.
And now for something completely different … a man with three buttocks! Okay, so maybe not THAT different. It’s not C# or .Net, though. It is, however, something that many ASP.Net developers will run across - jQuery. Long story short - I’ve created a new jQuery cheat sheet in two versions (A4 and Letter). If you want the long story, read on. If you don’t then just grab your copy and let me know if you find it helpful.
For anybody who’s actually been reading and is interested I’ve uploaded a ZIP file containing the Visual Studio project with all the code from the blog so far. I’ll aim to keep it up to date with future code on a semi-regular basis.
Over the last four posts I’ve built up the engine of an RPN calculator in the form of a DLL. Now it’s finally time to put it use. In this post I’ll present the code for a console-based user interface for our calculator.
In this post I’ll complete the RPN Calculator engine we’ve been looking at. This will complete the DLL I’ve been working on, and next time I’ll run through the code for a Console-based front-end.
So, back to my RPN calculator implementation. Bear in mind that I wrote this code over six months ago, and I’ve learned a lot since then. If I was to do it again now I may make different design decisions, but for the moment I’ll stick with the original code. Let’s see what we can learn.
So, you may have noticed that it’s been about 6 months since my last post. I’ve been a little busy. I’ve also been learning heaps.
It’s been a while, but I’ve finally found some time to post again. In my last post I showed the basic structure of a DLL for the engine of an RPN Calculator in response to Prashant’s 6th exercise. In this post I’ll start to look at the details.
For his 6th exercise, Prashant suggests writing a Scientific calculator supporting addition, subtraction, multiplication, division, square-root, square, cube, sin, cos, tan, Factorial, inverse, modulus. In planning my solution to this exercise, I thought it would be cool to write a DLL (a Class Library in .NET parlance) to be the core engine of the calculator, and then write a console-based front-end. Later, when I’m learning WPF I can write a graphical front-end to the same DLL.