Thanks for coming to my TED talk.
I work for Microsoft, but not on the teams who work on .Net or Visual Studio. This piece is entirely *my* opinion and is not informed via any internal insights I hold!
Seriously though, what *does* the future hold for .Net developers in 2020?
Just last week I spent several hours on the Application Development stand at Microsoft Ignite The Tour Sydney and had several questions from developers about what they should be learning next.
In some cases it was because they were hearing demand for other languages at their employers (or from the market), the platform they developed for (web) was being replaced by a new one (mobile) where their .Net expertise was not as relevant, or that it seemed that Microsoft was not focusing as much on .Net as it once did.
Let’s dig into things a bit more and see how .Net’s really in the best shape it’s been in for ages!
In a building far, far away… (in Redmond actually)
Talk about coincidences! The following showed up in my timeline the day after I’d had all my discussions with the folks at Microsoft Ignite The Tour…
Ahhhh, simpler times.. Windows ❤ .Net and .Net ❤ Windows.
18 YEARS! 😲
Wow, I feel old (and congrats to .Net to finally being able to legally buy a beer in some places in the world!)
While I’m being flippant, this does lead me to one of the massive positive changes to have happened to .Net since its inception.
Traditionally if you were a commercial / professional .Net developer you’d be building desktop, console, web or API applications to run on Windows. Since about the time Bill Gates was lovingly holding up .Net in a box (remember when software came in a box?!), a group of adventurers were using the published C# specification to build Mono, to provide a way to use .Net on platforms other than Windows.
More on that later..
So many languages, what should I learn?
The answer to this is a resounding ‘yes’.
These days you have to be a polyglot programmer, even if you have one go-to language (in my case C#).
These days, given my job, I participate in many vibrant language communities from the well-established (Python) to the relatively new (Golang), but if you asked me to code anything substantial it’s probably going to be in .Net.
So then, how to answer the “what to learn” question?
Look around you – what is your team or company building with? What are the trends in the industry? What do you want your career path to look like?
Python is massive at the moment, but it’s not because everyone started building Python Flask web applications. It’s because it’s heavily used in data science. Do you want to learn Python to transition to a different career path (maybe, right!)?
Golang has interest because it has some unique features for building light-weight, easily deployable programs, and is also at the core of Kubernetes…
The point is, there has never been a better time to pick up a new language (or languages). The resources to cross-train yourself are but a click away.
- .Net (covering C#, VB.Net and F#):
Look for opportunities to contribute to open source to learn how to work with a new language, or set yourself a goal of building something with it (last year I built a bunch of web applications and Azure Functions using Python to consolidate by learning).
Find ways to use them at work, but don’t create a sprawl of languages nobody else knows how to maintain – be the person to upskill everyone else. I can tell you nothing brings focus to learning something like having to get up and present on it!!
Who moved my cheese?
The next most asked question was around the industry shift away from web / desktop towards mobile experiences. While it’s certainly possible to build responsive web experiences using .Net, it’s likely that many web applications whose life started prior to responsive web design being possible will never be updated to be so.
Instead, companies are either building, or using existing, APIs that then talk to a new generation of native mobile experiences that are built to deliver the best user experience on that platform.
The challenge has become the need to support multiple mobile platforms (maybe responsive web apps weren’t a bad idea after all 😉) which has lead to the creation of multiple technology solutions for native cross-platform mobile solutions.
Chances are if you’re a .Net developer you will have heard of Microsoft’s offering in this space – Xamarin.
The value of Xamarin to a .Net developer is that you can re-use your existing skills to build on new platforms. Companies or teams building using Xamarin have the ability to have a high percentage of code shared between all mobile platforms, rather than needing to write and maintain code in Objective-C / Swift for iOS or Java / Kotlin for Android.
Now… to the challenge here. Having developed and delivered cross-platform applications the main challenges I’ve seen are:
- Not understanding platform / device behaviour. A mobile phone is not a PC or web server. The one key item to keep in mind as a developer is that the device (and it’s OS) are there to maximise performance while minimising battery drain. This means the application lifecycle events you need to be aware of will be very different to a web or desktop application. If you don’t understand this one in particular then almost nothing else matters – the OS will cause your application to behave erratically as it either pauses or throttles execution, or worse, kills the app due to overuse of resources.
- Delivering a tech-driven solution with little focus on user experience (UX) or design, leading to an application that behaves differently to standard apps on each mobile platform (we’ve all seen the hamburger menu in React Native applications that looks nothing like any standard navigation UI element on either iOS or Android). This is common feedback from business stakeholders who care almost zero about how great it is you share code between the apps.
- Extending the previous point – not understanding target native UI elements. Yes, as a Xamarin / .Net developer you will need to dig into how iOS and Android work natively at the UI tier. This will allow you to build the best user experience into your applications so that you remove things like hamburger menus from your apps. This is where having someone who is already doing native development on the team will come in handy…
Outside of mobile the next change for .Net developers to deal with is that we can now multi-platform our web and console applications. If your team lead or business managers came to you and asked you to build a .Net solution to run on Linux could you?
While many techniques from the .Net Framework work and behave exactly the same in .Net Core on Linux there will be nuances to be aware of. How about shifting that ASP.Net Web Application to running on Linux on ASP.Net Core? You can’t rely on IIS modules on Linux, so you need to start to study the platform to understand what’s possible.
Some guidance will come from you or your team’s experience (build it and learn) and some will come from official guidance. Microsoft is starting to publish content around this space and the teams working on the language come from a multitude of platforms so over time we will continue to see more content appear on running .Net Core on non-Windows platforms.
Open Sourced and free (without a care in the world!)
Let’s be honest, it’s probably been a bit confusing over the last few years around the positioning of .Net.
When it was just the .Net Framework on Windows things were much clearer.
Then we had .Net Framework, .Net Standard *and* .Net Core. 🤯
Here’s something that will hopefully clear some confusion up:
- .Net Framework: the .Net you know and love if you build for Windows. Closed source and maintained by Microsoft.
- .Net Core: cross-platform .Net that is open source and accepts contributions on GitHub.
- .Net Standard: API definition for APIs that must be present in all .Net implementations. There is no implementation per-se, other than the adherence to the standard by both the .Net Framework and .Net Core implementations. If you ‘target’ .Net Standard you are allowing your codebase to run on either Framework or Core.
Thankfully this is just a transition period, though it will live with use for a while yet given the support lifecycle for .Net Framework is associated with the support lifecycle of Windows.
Microsoft has landed on a unified story for .NET 5. I would strongly recommend if you’re a .Net developer to go and read that linked document.
Some folks said to me that it appears Microsoft is “giving up on” or otherwise minimising work on .Net, especially with it showing up on GitHub. I wholeheartedly disagree with this.
.Net is in the best shape of its life and has by far the most active development it’s probably ever had. The community submitting changes or fixes to .Net Core are amazing and are a key reason I say .Net is in the best shape ever.
Additionally, Microsoft has a broad ecosystem of tooling for .Net that is also under active development. The Visual Studio team is working at a much higher release cadence than ever and Microsoft has a strong developer IDE story for both Windows and Mac users. There’s also a little thing called Visual Studio Code that seems to have caught people’s attention.
As an aside… if you’re using a version of Visual Studio prior to 2019… consider upgrading to access this new release cadence which includes bug fixes and new features.
In closing, your honour…
Hopefully through everything I’ve written you’ve been able to grasp how .Net fits into the modern tech landscape for developers.
.Net is not going away – you should be coding in more than .Net, and spend time getting educated on platforms other than the one you typically work with (web to mobile, Windows to Linux).
These days the best thing for me is…
dotnet 💙 Linux and hopefully Linux is 💙ing dotnet
Comments or questions? Leave them below!