started as that kind of dev 20 years ago, then i moved to web dev but apparently the best paying job for my seniority currently are all maintenance of win forms WPF scuff
Currently were in this situation where third party libraries don't provide module support, so you still need to #include those, and they in turn generally #include stdlib headers again. So generally you're in this mixed world where you're partially doing modules and partially doing old #includes.
Benefits of modules are better build times and slightly better ergonomics (import std is easier than including the right stuff). I think it's about 10%-20% range.
The downsides are that compiler and build system support is still in flux, so using modules can mean that it becomes harder to support multiple compilers and/or build systems. And you obviously lose support of older compilers / build systems.
You also need to refactor your code to use the modules.
So as of now, modules are great if you're starting a new, mostly standalone project and you have full control over the compiler and build system.
It's not so great for existing code bases that want to support older and/or multiple compilers and build systems.
oh the memories... my first real job was making wcf services translating to soap the flat string messages spit out from some kind of remote COBOL connection so i had to read COBOL interfaces documentation to write the deserializer
I thought WPF already outlived by new tech because.. uh it's been since 2008 or something right? I learned a bit about it back in 2010 and then I heard everything gone HTML5 for desktop app so I thought WPF is dead
i mean win32 api is still a first-class tech/api according to microsoft's azure cto. so i guess in a sense legacy tech is still powering a lot of the modern world meaning demand for those skills will probably stay
It's super stable and useful for enterprise apps. It'll be interesting to see how WinUI 3 shakes up things though since there's a lot of neat stuff in it and is the new recommended thing.
Costs 15€/month for individual users, and 300€ per year for organizations.
And community version has mandatory registration where you need to link your github and share info about yourself. And it still misses basic stuff like Hot reload
And there is experimental MAUI backend for targetting Linux, using GTK4. Since, MAUI itself already supports desktop programs for Windows and MacOS. Its not framework designed just for phones.
As I see on their page, there 2 free tiers "Avalonia" and "Free" (terrible naming, very confusing). Only "Free" tier requires registration and only thing it gives is some tooling like extension for visual studio. I use avalonia in rider just fine without registration.
Also there is hot reload in paid tiers.
Hovewever I see how MAUI wins by being free even for commercial use.
Didn't know MAUI ever plans to support Linux. I want to test it. Thank you
searching for a new job lately I discovered quite the number of well paying jobs doing maintenance on legacy ERP written with winforms or WPF. They pay more than web fullstack with .NET since they also come with quite the hefty expertise requirement on MS SQL querying and reporting. The more i go on the more i feel like i need to move to python/java and master cloud stuff + typescript frameworks
They pay more than web fullstack with .NET since they also come with quite the hefty expertise requirement on MS SQL querying and reporting.
I don't know what kind of web dev have you been doing, but knowing MS SQL well (or any other kind depending on what the company uses, but with .NET mostly MS SQL) is a basic requirement if they are interested in making performant applications.
Going by the multiple context menus, and notifications, and widgets in different app bundled with Windows, I don't think even Microsoft knows.
I mean, even the Start Menu is, or was, an Electron app (Microsoft has fixed this with a recent update and now it's a WinUI 3 app which is partly why it's a lot faster now)
Yes and i still love it. I like the good support for mvvm through the binding mechanism and it also make use of the gpu and is very good for data intensive UIs 👍 Avalonia is also very nice, if you like to run your app on linux or android
Well, yes and no? No - they're using MAUI, yes - it's almost the same thing as WPF, at least on the surface. Though, realistically, WPF is still used very actively.
The standard looks like it is use Electron shit. I tried Jetpack compose and Qt with Python, I prefer Qt but it's heavier in RAM than I expected. Nothing compared to Electron btw
I want to try WinUI 3 with Python, but I'm unsure because it's unofficial
I did a WinForms gig a year ago. Turned it down initially, but they were persistent and I needed a job. I was surprised to discover that WinForms is still actively supported. Felt weird as hell to do a .NET 9 app with WinForms. Turned out to be a really interesting and fun project to work on (although that wasn't because of WinForms).
The reason web development is so easy/comfortable is because they have a huge amount of resources dedicated to unwinding the complex scripting and styling of the HTML/CSS/JS stack. It's a really efficient and nice solution for what it does, but it's a bit like running a Ferrari to get to the supermarket. It's often overkill for most tasks. But it's so nice to ride compared to any other UI stack
Yeah, nope. It's the opposite. I like the citation someone wrote that WinForms makes easy things easy and hard things hard, while WPF makes easy things hard and hard things easy.
Bindings are great, sure, but once you dip your toes into it - it's a damn deep and cold water. Triggers, behaviors, extensions, data templates, view templates... And with XAML it's harder to read than if it would've been a plain C# code creating those components.
Personally, I've seen QT QML and in theory that sounds like an absolutely best way to do layout, though I haven't tried it in practice. But I really loved specification for QML.
Triggers, behaviors, extensions, data templates, view templates
Please stop, I can only get so hard!
I think it's one of those technologies where it either 'clicks' for you or it doesn't. I not-even-lowkey love XAML - the way the structure matches the physical hierarchy of the running app (at least on Windows) just works for me. I guess it depends how you conceptualise what you're writing in your head. I also really like how it almost forces you to properly separate out your UI layer from your backend, which really helped me to write better code when I was first starting out all those many years ago.
Hm. I'd dare to say I know WPF quite well, since I've been working with it for a few years, and made all sorts of things from basic forms to custom controls, xaml extensions, bindable bindings, proxies, attached behaviors, storyboards (hate those, just absolutely abhorrent way to define animations). And I do like some aspects of WPF, and I think it's quite good system for UI and I have deepest respect to how well optimized it is, but I also certainly can't say I love it or it's clicked to me. It's just way too verbose and too confusing, and I think same features could've been done much better and cleaner.
And while MVVM separation is good in theory, in practice, with how WPF works, it practically twists your arm to occasionally do hacks and workarounds, either code in VM that needs to know view, or writing code-behind. Which I'd say is underappreciated in WPF best practices. Like, sure, code-behind in general is bad and should be avoided, but to reasonable extent, not just as a religious dogma. And it WPF would've been much much better if it would've allowed a bit of code in view directly. And get rid of f...ing XML god dammit, XML was obsolete even when WPF was conceived.
I'm not even really talking about WPF specifically, I just think the structure of XAML itself is a great way to express the hierarchy of a UI. I've used it in anger for work across WPF, WinUI, Avalonia, and MAUI, and I've always got on with it.
I don't agree on the MVVM take. I have an app at work that has multiple 'front-ends' (MAUI, CLI, WebSockets) that all 'bind' to the same ViewModels and services, and it's great. The MAUI layer is pretty much just Views and some implementations of shared interfaces between the other apps (e.g. navigation) registered in the DI container. If I wanted to make a WPF/Avalonia/whatever front-end for it tomorrow it would be easy-peasy.
I will say that none of the XAML-first frameworks force you to actually use XAML or MVVM or anything like that. You can write a perfectly functional WPF app without writing any meaningful amount of XAML, and without using bindings or anything like that. You probably shouldn't, but you can.
nah, Things are just different. some very different. Like a TreeView, WinForms vs WPF total different concepts. really need to get your head around.
but ListView/Box in WPF super easy. dynamic UI / scaling / spacing .. huge manual work in WinForms. (and I have done some dynamic controls with WinForms .. 🤮🤮 kinda easy with WPF ..
havent done much with QT QML. but looks powerfull too.
I really like the "new" ui definition languages that GTK and Qt developed with Blueprint and QML, both kinda replace XML and they are really nice to read and write. Jetpack Compose for Android apps also looks pretty nice to use in comparison to the old xml files.
Blueprint is specially interesting considering it compiles back into XML when you build it while still being very intuitive, makes me wonder if something like that could be created for whatever Windows for whatever C# UI framework is being used here (I only know of Avalonia)
i remember in high school they gave an assignment to write a full HTML page with tables using notepad, completely manually. we were using NETSCAPE to check on results
I love this because for over a decade, I have only developed using Windows Forms, with one rare exception I did a very small piece in WPF (that housed in a Windows Form, I needed for animations), 1 Xamarin App, and 2 MAUI apps (also tiny apps, just for me)
However, I have a new project I just started, and need to develop it in C# WPF, and wow, it's quite powerful, but also has quite the learning curve. I also question how the heck MAUI is so bad compared to what it can do
me working in an MVC Core shop with an entire custom framework built around encoding and decoding C# into blocks of XML looking at this post like... I need a 10:30 am beer (this is a joke, apologies to those it's not funny for)
You can do a lot with winforms. We’ve switched to web apps using react now but that’s what we used before that. Once you learn the ins and outs of it, you can do basically anything.
Views / components and theming are done via AXAML files (XML type UI but it also has a live preview and all that), has pretty amazing dev experience too considering how well it uses the source generator to generate AXAML bindings from the viewmodel class
Its pretty neat but i can't explain it properly, it's best to check their documentation and or look at their Avalonia MVVM example apps
It also works a lot with dependency injection which I appreciate a lot
The thing that bugs me about things like Flutter and especially jetpack compose is the way UI is styled, themes largely solve this but it still easily turns into an unreadable mess, BLOC and get_it also don't feel as intuitive for state keeping and dependency injection
AXML. Gross. As far as readability, I have had not had any issues when building production apps in Flutter. And state keeping in Flutter is way better than in Compose.
I came back to C# after a couple of years using C++ because I had to make an auth server and for first week I’m still just figurejng out the insanity Microsoft put in
57
u/oompaloompa465 Oct 14 '26
started as that kind of dev 20 years ago, then i moved to web dev but apparently the best paying job for my seniority currently are all maintenance of win forms WPF scuff
16
u/jolharg Oct 14 '26
I'm not sure why you expected to escape angle brackets in C#. They are spiky.
15
u/fugogugo Oct 14 '26
wait they still use WPF for GUI?
(honestly what is the go to language for desktop app nowadays?)
23
u/deepsky88 Oct 14 '26
Try Winforms
147
u/Historical_Cook_1664 Oct 14 '26
What did you expect, JSON ?
9
u/PaulTheRandom Oct 14 '26 edited Oct 15 '26
5 minutes of XML convinced me S-expressions weren't as bad as I once thought...
23
u/L30N1337 Oct 14 '26
If you've every used Winforms (especially for dynamic layouts), you'd realize that XAML is goated.
you basically just tell it what to do, and it does it.
1
u/tatstytastycakes Oct 14 '26
I know about being able to use C# markup over standard XML/XAML, but features like the XAML Live Preview are gone in one single Thanos snap :(
4
u/GamesRevolution Oct 14 '26
I really like the "new" ui definition languages that GTK and Qt developed with Blueprint and QML, both kinda replace XML and they are really nice to read and write. Jetpack Compose for Android apps also looks pretty nice to use in comparison to the old xml files.
Blueprint is specially interesting considering it compiles back into XML when you build it while still being very intuitive, makes me wonder if something like that could be created for whatever Windows for whatever C# UI framework is being used here (I only know of Avalonia)
2
u/Stormraughtz Oct 14 '26
Heathens just dont understand art.
2
u/Ange1ofD4rkness Oct 14 '26
I love this because for over a decade, I have only developed using Windows Forms, with one rare exception I did a very small piece in WPF (that housed in a Windows Form, I needed for animations), 1 Xamarin App, and 2 MAUI apps (also tiny apps, just for me)
However, I have a new project I just started, and need to develop it in C# WPF, and wow, it's quite powerful, but also has quite the learning curve. I also question how the heck MAUI is so bad compared to what it can do
2
u/CyraxSputnik Oct 14 '26
Not so bad, everything is organized... if you're organized...
2
u/ksky0 Oct 15 '26
avalonia is great, you should try.
1
u/phasmaglass Oct 14 '26
me working in an MVC Core shop with an entire custom framework built around encoding and decoding C# into blocks of XML looking at this post like... I need a 10:30 am beer (this is a joke, apologies to those it's not funny for)
1
u/Zap_plays09 Oct 14 '26
I still can't believe android devs used make UIs with xml about 5-6 years ago. Saw a guy make one and my brain gave up. Thank you jetpack compose.
1
u/phoenix1984 Oct 14 '26
I know CSS gets a lot of hate, but when it comes to responsive layouts, it’s the best tool for the job
1
u/rover_G Oct 14 '26
What is XAML
1
u/PennyFromMyAnus Oct 14 '26
I fucking miss XAML/WPF man… it just clicked so hard and I love it
1
u/apt-maintenance Oct 14 '26
they call me a sub the way I'm inserting my GUI markup languages into the DOM
1
u/sermer48 Oct 14 '26
You can do a lot with winforms. We’ve switched to web apps using react now but that’s what we used before that. Once you learn the ins and outs of it, you can do basically anything.
1
u/Mobile-Positive-6742 Oct 15 '26
winforms for the win, baby!
1
u/FabioTheFox Oct 15 '26
Tbf using XML/XAML/AXAML for UI just makes sense, as much as I like Kotlin it's horrendous to create UI through code alone, it just sucks.
Avalonia despite their weird licensing changes is probably still one of the best ways to make multiplatform desktop apps to this day
1
u/DogmaticParadigm87 Oct 15 '26
C# was the onboarding. XAML is the final boss on a tricycle.
1
u/ChillyFireball Oct 15 '26
Why are so many file formats just XML with extra steps
1
u/JackNotOLantern Oct 16 '26
What's wrong with xml? Also c# has graphical tool to build ui and it automatically generate xml for it.
1
u/MXRCO007 Oct 18 '26
I came back to C# after a couple of years using C++ because I had to make an auth server and for first week I’m still just figurejng out the insanity Microsoft put in
1
u/minus_minus Oct 14 '26
XML in the Big 2-6? Blech
0
u/Wizado991 Oct 15 '26
Yeah xaml is shit ngl. I have worked with wpf, uwp, Maui and it's sub par compared to html/css/js, jetpack compose or even flutter just to name a few.