Posts by Chris Powell
Virtual Workspaces Are Here! How Will You Use Them?
My YouTube feed has been full of reviews of the Apple Vision Pro since it became available in the US on February 2. In one of the videos, the content creator used the Vision Pro for working on his script, and several other tasks around his house (See video). This intrigued me and I wondered what it would be like to code in a virtual environment and create virtual workspaces. I don’t have $4k lying around and the Vision Pro isn’t available in Canada yet. So, my ability to try it was rather limited. For Christmas 2023, I bought myself a Meta Quest 3 headset. Thanks in part to our … Read more
Primary Constructors (C# 12 Syntactic Sugar): A Guide
With the introduction of .Net8 and C#12 in November of 2023, there were many significant changes to .NET and C#. One such feature in C#12 is the concept of a Primary Constructor. A Primary constructor replaces a class constructor with parameters on the class. The parameters for the constructor are available anywhere in the body of the class. With Primary Constructor: It is important to note that the class parameters are not fields of the class. The following code will not compile if used in SimpleClass, as foo and bar are not available on “this”. Using a Primary Constructor can significantly improve the readability of your code, as it does away with a lot … Read more