r/AskProgramming • u/nimrag_is_coming • Sep 23 '26
Other Why do people think Windows is hard to write code on?
I see this sentiment everywhere and it always confuses me, because I have never found this the case. I have never had a smoother experience writing C++ and C# than on Windows with Visual Studio, and any other languages are just as easily built using VSCode or any JetBrains IDEs (and many others!!). You can even install and run Vim natively if you wanted.
Some of the common complaints all seem to fall into a few categories:
Trying to use Unix methodology
I see things like people complaining that they can't access syscalls on windows - but you're not supposed to, you're supposed to use the Win32 API to indirectly call them. You don't gain anything from having access to the raw syscalls (which aren't even stable on windows).
Lack of package management
This one is partially true, but I have a few things to say.
Windows DOES have a package manager, several in fact, such as Chocolately.
Package management is not that great on Linux either. How often do projects break because of incompatible packages, or things that aren't available on every package manager, or all sorts of other problems?
Cant run my Linux software
tl;dr Use WSL
A lot of software has a windows build, and those that don't can most often just be run through WSL (or MSYS2). And a lot has a windows alternative that does the exact same thing.
Anyway, I just wanted to see people's thoughts on why they do/don't program on Windows, and what their biggest problems with it are.
25
u/lppedd Sep 23 '26
I think it's mostly a "uniformity" problem. If your company relies on Windows everywhere, it does not make sense to use a Linux distribution.
However, if your company manages Linux assets (e.g., VMs), having your work done on Linux makes the whole experience better as you don't have to context-switch.
13
u/JustBadPlaya Sep 23 '26
Which barely anyone uses, so you can't rely on it for end users, and afaik you can't really rely on it for development either?
To an extent that's the point - having to go through win32 APIs or NTDLL or whatever is just an extra layer of complications all around for some software. It's not always relevant, most apps don't need it, but for desktop stuff IME Linux stuff tends to be both more chaotic and better defined on average than the combination of win32 and COM and registry and whatever else it has going on now. The fact that you need to link to wincrt to access stdin is kinda silly idk
I'm not really a C++ dev, I tend to use languages with great crossplatform stories (Rust, C#, TypeScript, occasionally Go). But also there are some things to note:
17
u/Schtick_ Sep 23 '26
I mean having used .net majority of career I can tell you that:
- 1) .net will just perform better on linux
- 2) if you’re using codex/claude it just defaults to linux commands so you’re constantly running the linux command failing then writing the windows equivalent
3) codex and Claude themselves run much better on linux than windows.
4) you do a lot of python stuff file manipulation etc again much more performative in linux
5) lastly visual studio, it’s like the most bloated flakey mess of an ide. I don’t know why anyone would use it unless they are forced to anytime I have had to use it I end up with 3-4 different versions running concurrently cos things can’t be upgraded they discontinued things
It’s just a mess I would not wish up anyone.
The day you try the alternative is the day you never go back.
19
u/torsten_dev Sep 23 '26
No, god no. You're supposed to stay as far away from the ugly monstrosity as you can. Win32 is an affront to Brian Kernighan, Dennis Ritchie and God.
1
u/ZedGama3 Sep 28 '26
I tried learning C# in 2015 and the main issue I constantly ran into was that every tutorial I could find, even one I bought, relied heavily on wizards and when I wanted to do something that wasn't exactly in that mold, things would break, the errors made no sense, the wizards refused to run (or would make things worse), and no one could seem to tell me how to fix it.
For context, I was trying to migrate from Perl scripts I had written to provide API endpoints. So we're not talking anything crazy.
I've since learned Golang and have been incredibly happy. I don't need to learn 14+ libraries and chain countless odd tools. Everything I need is in the standard library.
While I'm pretty sure you could do the same on C#, none of the tutorials I found offered that kind of solution and official documentation from Microsoft eluded me, assuming it existed at all. Maybe I needed an MSDN subscription?
1
u/kansetsupanikku Sep 28 '26
Why do people think sharing their AI outputs as Reddit posts is useful to anyone? We can write prompts too, thanks. Even adjust them to individual needs
1
u/Common-Chair718 Sep 29 '26
If you’re gonna use WSL, then why not just switch to a linux distro?
1
u/XandalorZ Sep 29 '26
Backslashes for path separators is absolutely deranged behavior, which is the biggest problem for me.
3
u/Tiny_Ad_7720 Sep 23 '26
We have a mix of Windows, MacOS and Ubuntu and use JetBrains IDEs or VS code.
Personally I prefer the syntax of powershell over bash but with LLMs I just get it to spit out both versions.
4
u/FrontRaspberry5060 Sep 23 '26
Because powershell and it’s not unix system. Powershell is powerful but it ended up being an anti pattern and most servers use Linux
Docker runs better not on WSL
5
u/nedovolnoe_sopenie Sep 23 '26
the masses are not ready for WSL
they will hate you because you are telling the truth
2
u/disposepriority Sep 23 '26
I don't think anyone thinks its harder?
Like you can use vim on windows, you can use intellij products on linux.
Personally I run IntellIJ produts on windows and embed either a git bash or wsl2 terminal in it, as I prefer the linux cli experience than the windows one (shocker).
I agree that package management is not great on either platform, but that's just the usual problem.
It's a matter of preference, not difficulty.
Though I'll say that on average, the knowledge floor of setting your dev environment up on linux is higher than on windows.
2
u/Classic-Rate-5104 Sep 23 '26
Even many WIN32 API functions have a much more complex argument list than the Linux system calls. Also there are a number of different levels of protection and access rights in Windows, which makes it sometimes hard to find out why you're not allowed to do something. The way of thinking is completely different. Sometimes programs aren't allowed to do things, except when started from command line (which seems to be like "you aren't allowed to be here, except when you came through some specific route).
Chocolatey is just an external collection of programs, not managed by windows, so it's not guaranteed to be consistent. Linux package management is done by the distribution maintainer and will in general only be broken when you get programs from other sources (which, in Windows, seems to be normal behavior)
2
u/Serializedrequests Sep 23 '26
I need Linux GUI software. This is still buggy as shit on WSLg and I'm tired of pretending it's not.
2
u/DestroyedLolo Sep 23 '26
I stopped develops with windows a long time ago, but my main complaints back then were:
For your own projets, a package has nothing to do with that : up to you to ensure you're code is still compatible with what you're installing.
Frankly speaking, the biggest weakness of modern operating systems is their complete disregard for upward compatibility.
Even Linux, despite being much better than Windows, routinely breaks compatibility when shared library ABIs change. Seeing an application require relinking simply because libfoo.so.1 became libfoo.so.2 still feels wrong to me.
AmigaOS got it right decades ago by enforcing strict compatibility rules on shared libraries. Developers were expected to extend APIs without breaking existing software, and the result was remarkable: applications could keep running across OS upgrades without modification.
Nowadays, breaking compatibility has become normal practice. We've accepted rebuilds, migrations, and regressions as unavoidable facts of life, whereas they should be considered failures of platform design.
I'm working in WSL 99% of the time because windows is a corporate requirement, not a personal choice.
The appeal of Linux is not limited to the command line. What matters to me is the consistency of the entire user experience: the desktop environment, the tooling, the configuration model, and the general feeling that the system behaves coherently. Windows has never provided that level of consistency.
In fact, I find it actively counterproductive. It consumes more resources, takes longer to accomplish simple tasks, and seems to introduce regressions with almost every major update, and, last but not least, automation is only science-fiction !! As a developer and system architect, predictability is a key requirement, and windows has too often failed to provide it.
The result is simple: WSL has become my primary working environment, while windows merely serves as a compatibility layer for the few tools that I cannot avoid using.
1
u/SwatDoge Sep 23 '26
The only benefit i could find between linux and windows programming wise, is that its easier to use multiple ssh keys for git on linux. (On windows you have to use a keyring)
I think a lot of people don't know that winget exists or that you don't need to use putty for ssh anymore. A lot of stigmas in software stem from problems that have been solved for decades
1
u/davidwhitney Sep 23 '26
I'd honestly go one step further and given most people are shipping to Linux containers and VMs, the Linux experience on wsl2 is closer to the target environment than when you're using MacOs.
I switched to a Mac for the nice hardware (M5 Max init), but I'm very hopeful that the new RTX Spark machines will give me a high performing Windows portable workstation.
The one place where Windows really does loose out unless you're using ReFS and the DevDrive is file system performance. Defender, plus all the security groups really tanks IO bound stuff vs other platforms. You can make it good, but it's night and day for ecosystems that do a boatload of small file IO like Node.
1
u/MissinqLink Sep 23 '26
Most places I’ve worked give you a subpar windows machine loaded with corporate spyware that slows it down to a crawl. Insisting on a Mac OS the only real way to get a decent experience.
1
u/tyler1128 Sep 23 '26
I learned to code on windows, in C++, and know Win32 to this day at a fairly deep level despite not touching it in many years at this point.
You can code, fine on windows, especially if you are targetting just windows and using .NET. It's just no where as pleasant an environment to work on at especially the system coding level than basically any other platform. You're also basically going to need to learn how to use linux to deal with containers and deployments these days professionally.
Over 6 computers, on a rolling release "bleeding edge" distro, almost none. Just like windows, projects either ship with specific binaries or you have multiple system copies of the same library with different versions often named like libthing.so.6.1. The package manager if competent at all knows what packages depend on these and can prune unused versions.
1
u/thats_a_nice_toast Sep 23 '26
Windows isn't hard to write code on, but it's extremely annoying to write code for.
Many things that require the WinAPI or registry on Windows are trivial on Linux using file descriptors or commands. The command line tools on Windows are garbage and often don't even exist for specific things so you're forced to open a dozen system dialogs to configure something.
1
u/YMK1234 Sep 23 '26
I'd argue most ppl who argue OS A is hard to develop on are simply not used to the idiosyncrasies of OS A but rather to those of OS B or C. If you come from Windows to Linux it sucks, and the same applies the other way round. And if you'd go to another Non-Unix, Non-Windows OS you'd have the same issues.
1
u/DDDDarky Sep 23 '26
Really? Windows is pretty well known for having some of the best dev tools and is the most used os by programmers of all kinds, while there are certainly points it can be criticized for (just like anything ever), I've never heard anyone complain it would be hard to write code on.
1
u/DGC_David Sep 28 '26
The problem is, sometimes Windows doesn't let me do what I'm trying to do without 15 million clicks and 30 hard faults. That's regardless of programming too, the Windows Setting App is piss-shit, UWP and MAUI also piss-shit.
1
u/kutac56 Sep 28 '26
That's only true for certain types of programming. I do low level stuff with c mainly and for that stuff Linux is just better, because of the Unix environment. Only need man pages and documentation
1
u/[deleted] Sep 28 '26
I'm a .net developer and I can say the performance of everything, including the compiler, is much much faster in Linux by a wide margin. Aside from the fact that the whole desktop is much faster in every possible way. As I got used to that every time I have to do something in Windows everything seems horribly slow. WSL is fine for people that like using Windows but it adds memory overhead and it's not particularly fast either
1
u/Lunchboxsushi Sep 28 '26
Microsoft puts ads into it's OS and you have little control over what you can disable without going into the magic windows registry.
IDK I used windows for 20 years, been on Linux as daily for the last 6 years and it's been better for me as I can customize it to exactly how I want.
terminal first experience is generally better IMO. Honestly in 2026 I believe majority of the workflow can be equivalent when it comes to tooling. Game Dev & Gaming unfortunately is still the best on Windows from what I understand though. Until that bridge is built (and there's been a ton of progress) I don't see me using it for games yet.
My main gripe was system resources, just to run a terminal and browser it required 8GB of ram for a smooth experience on windows 11 - now with parallel local agents and price of RAM I'm using linux arch + sway so my memory footprint is as comfortably small as I can make it. IDK if I could do that with windows without having to spend my life fighting it.
1
u/claythearc Sep 28 '26
I run all my IDEs and stuff inside WSL but tbh my main annoyance with windows is file paths and the terminal.
It would be fine if I used it more I’m sure but 20 years of random bash tricks means the incentive to learn ps / cmd equivalents is pretty low.
1
u/high_throughput Sep 29 '26
These are two different things.
One thing, what you're doing, is having a Windows-only full on Visual Studio project. This is smooth as butter. Developer tooling is the one thing Microsoft does better than anyone else. 10/10.
The other thing is what people are complaining about: dealing with Windows for anything that is NOT a Windows-only full on Visual Studio project. Setting up builds, CI, etc. All other OS are fine with your filenames and build commands, but Windows is always being a special case pain in the ass about everything.
1
u/Popular-Toe3698 Sep 29 '26
I’m developing (and already shipping) a desktop environment for both Windows and Linux. Yes, there are a lot of things that Windows makes annoying hard. But for regular desktop apps it’s not that hard. And no, you don’t have to interface with Win32 in most applications.
1
u/Softmax420 Sep 29 '26
If you want to recursively search files, it’s quicker to do it through wsl running in powershell than it is to just use powershell.
The “just use wsl” is the reason windows has a bad reputation. I know why I’d need the SL, why do I need the W? For copilot integration with notepad and 5gb ram usage on idle? I think I’ll just use Linux instead and skip the bloat/spyware and save my money.
There’s nothing windows is better at except c# development for windows apps or games. I’m not saying windows is bad for development of other things, it’s just the worst out of the 3 options.
1
u/Even_Gap_2253 Sep 29 '26
Mainly because most people deploy on Linux, it is just easier and more ergonomic to work directly on UNIX-like platforms
WSL is horrible as soon as you need proper IDE support. Many don’t support it, and you need messy bridging to work with GUI tools. For example Android emulator.
Whereas macOS/Linux just works.
1
u/AdreKiseque Sep 30 '26
You're acting like people say Windows is hard to write code for, which I've never heard. What people do say is Windows is hard to write code on, which... is kinda true? A lot of tools are made with Unix stuff in mind and it's definitely more work to get a C compiler installed on Windows compared to on Linux where you probably just already have it. But you can still install LLVM with Clang in a single line from the terminal, and this applies to most languages you'd want to work in, so.
1
u/GameskoTV Sep 30 '26
Because windows do not have package manager, so every sdk you need download via browser, yeah there is winget/ but there is not much projects
1
u/junvar0 Sep 30 '26
I've tried on multiple occasions. WSL or any of the many workarounds to get a linux like environment are just not as good as the original. They're slower, clunkier, have annoying things to memorize, etc. It's totally doable, but just less efficient.
1
u/glowFernOasis Sep 23 '26
Historically, rails was a nightmare to set up on windows. I hear they've fixed a lot of those issues, but at this point, habits have been established. I started on a MacBook, and everywhere I've worked it's been standard to use MacBooks, with a few oddballs using Linux. Windows is for the salespeople and less technical employees at the company. Deviating from established norms could have technical and social impacts. There's no motivation to go against the grain.
1
u/Weak-Doughnut5502 Sep 23 '26
I think a lot of it is inertia.
Windows has had a bad reputation for a lot longer than chocolatey and WSL have been around. People who have been programming on Linux and OSX for 20 years don't often set up a new dev environment in windows, so they likely just remember how much it sucked to use windows 25 years ago.
1
u/faze_fazebook Sep 23 '26
The big thing in today's day and age is the whole world of containers which frankly sucks to use on windows. Yes, you can get stuff done through WSL but depending on the workload performance can absolutely tank (stuff like mounting a volume or lots of small disk reads and writes).
I for example had a integration test which involved lots of reading and writing data from a postgres database hosted in a docker container. The whole test took 3x as long when hosting the database through wsl and docker then the native windows version. And stuff like compiling a large typescript project also runs like shit through wsl.
Also for anything that works with lots of small files (like npm install that pulls in 10k small js files) windows shits the bed.
1
u/Dissentient Sep 23 '26
Writing code on windows and deploying to linux servers is far more common than using desktop linux on a physical machine for anyone who gets paid to write code.
In general, most software tooling is cross-platform enough that OS where you write code doesn't generally matter.
And there are no good desktop operating systems so you're picking your poison anyway. Linux is fine as a server OS, but it's an awful desktop one.
1
u/Adorable-Strangerx Sep 23 '26
First of all, if you are happy with Windows use it. I am not trying to convert anyone, just sharing my experiencs/biases
Or Winget, but it is quite recent thing (2020). Choco is a bit older (2011). The issue is package names:
winget install --id Hashicorp.Terraform --exactvsapt install terraform. I don't understand why I need to care about "Hashicorp."prefix. In Linux package manager you can mostly guess the package name or query package manager to find which package provides files you need.Well it is. You have dependency hell but every lib doesn't have to ship its own dependencies built in.
Literally never.
Do you have example? Usually software is available on all popular (rpm/DND;apt) package managers.
Not sure which other problems you are talking about.
Yes, but then you have half things in WSL half in windows and you have now issue of synchronization between them or mounting resources or whatever.
It's none of the above, to be honest, you can live without package manager the other things are more annoying:.
In Linux it is either /etc or in your user directory in some dot directory/file. In windows sometimes it is in registry, sometimes in user home directory, sometimes in some AppLocal/AppRoaming/App data/programdata. Every time when I need to change some parama I end up googling where is the config file.
2. Paths.
Almost all things use / as a separator. Except for windows paths which goes with . Translating them back and forth is pain.
3. Line endings. So much fun getting files with CRLF from Windows users who can't co figure their git.
4. Tools. Many of them were designed with Linux in mind. Windows came as afterthought. For example docker/podman. On Linux you install it and it just works. On windows it needs to spin WSL anyway and you end up with some weird Docker/Podman desktop. The plot twist is that docker desktop is not free for commercial use.
5. Shell. UI is great untill you want to do something not quite standard. Let's say "How do I find all files containing foo in directory bar with exclusion of directories .baz ?"
Linux:
grep -RIl --exclude-dir='.baz' 'foo' bar/Windows:
Get-ChildItem bar -Recurse -File | Where-Object { $_.FullName -notmatch '[\\/]\.baz[\\/]' } | Select-String 'foo' -List | Select-Object -ExpandProperty PathSlightly more typing.
0
u/[deleted] Sep 23 '26
[deleted] — view deleted comment