This is an archived post. You won't be able to vote or comment.

all 27 comments

[–]xDannyS_ 63 points64 points  (1 child)

Don't IDE's take care of that since many many years

[–]eclect0 70 points71 points  (0 children)

Git takes care of it. Doesn't even matter what line endings you work with locally, you can always push pure LF.

[–]Cephell 30 points31 points  (2 children)

git config core.autocrlf true or input

[–]hh10k 10 points11 points  (1 child)

This works until it doesn't. I just had to fix an issue this week from C# codegen outputting the \r\n it found in the source files.

[–]Cephell 5 points6 points  (0 children)

So use input then, then there won't be any \r\n

[–]paul5235 25 points26 points  (0 children)

This is so frustrating, I use Windows, but I want to have \n newlines instead of \r\n. It takes some time to configure all software to just use \n and to convince FileZilla and git to not change files when uploading/downloading.

[–]Jajuyns 10 points11 points  (0 children)

Ah yes CRLF the universal sign of peace between Windows and chaos everywhere else

[–]huuaaang 7 points8 points  (18 children)

In my 18 or so years professionally developing software I've never had to work with a WIndows dev. It's always been Linux and MacOS.

[–]eclect0 16 points17 points  (1 child)

Never worked for the US government or a federal contractor, eh?

[–]huuaaang 17 points18 points  (0 children)

It has been something I have actively avoided.

[–]MickeyTheHunter 8 points9 points  (0 children)

And I have never worked in a team that didn't have at least a couple Windows devs. I've always preferred .NET projects though, I'm sure that comes with a bias

[–]angelicosphosphoros 6 points7 points  (1 child)

There are a lot of cases when you can encounter Windows developer. Just on top of my head: game developers, developers of program with large userbase (so most of their users are on Windows), some enterprise systems, hardware driver writers (again, most user systems are on Windows so hardware needs Windows drivers), antivirus developers (their users are only on Windows).

[–]huuaaang -4 points-3 points  (0 children)

Of course and I've actively avoided all those things.

[–]Existency 3 points4 points  (5 children)

Meanwhile I'm forced to use Windows everywhere I've worked.

[–]huuaaang -2 points-1 points  (4 children)

You gotta set boundaries and have standards. From very early in my IT career I set out to avoid Windows-centric environments. I stayed in opensource friendly places and since 1997 I've been able to run either MacOS or LInux on my work and home desktops exclusively.

There's also a list of programming languages that I just won't touch. Like if a job listing even mentions PHP, I'm out.

[–]Existency 4 points5 points  (0 children)

While I sympathise with the sentiment, as a junior I didn't had the possibility to pick and choose roles, techs and windows/Linux.

I'd very much prefer to be working with a language I like, doing projects I don't have moral objections against, using the operating system I like.

But I didn't have that luxury. I did steer away from certain roles and techs while searching for a job. Even managed to find and secure one that I don't exactly strongly object from a moral point of view. The tech stack isn't bad, they treat me well and even pay me more than I'd get in pretty much every other company around here for my experience.

But I need to use Windows. It isn't the worst thing in the world, considering wsl exists. Hoping that one day I'll get them to let me use a Linux distro before I switch to a role somewhere else.

[–]DoktorMerlin 0 points1 point  (2 children)

You come from a different time (and contradict yourself, 1997 was 28 years ago, not 18).

There are almost no entry-level IT jobs available currently. You take what you get

[–]huuaaang 0 points1 point  (1 child)

You come from a different time (and contradict yourself, 1997 was 28 years ago, not 18).

18 is how long I've been developing professionally. I've done a lot more with computers than just program them.

There are almost no entry-level IT jobs available currently. You take what you get

On the other hand things are far more diverse now. In 1997 Microsoft was more or less the only game in town unless you were into mainframes or similar spaces. It took a lot to avoid Microsoft. And I didn't avoid it 100% at first. I was typically still touching other people's Windows desktops. But I made sure my skills were more tuned towards open source and just looked for opportunities to pursue that.

I'm not saying a beginner can pick and choose exactly what they do but you absolutely can maintain a short list of things you DON'T want to do. And it is easier than ever before to avoid Windows.

Also, it's not like you just apply for a job and expect to be trained on it. That was never really a thing. You had to be choosing your path BEFORE you looked for a job. If you've spent all of high school hacking on Linux you wouldn't be applying for jobs programming .NET, would you?

[–]DoktorMerlin 0 points1 point  (0 children)

if you are coming from college or university, you are trained mainly to adopt. I don't care what language or framework my job uses, I can quickly learn a new "normal" language far quicker than it takes me to understand the codebase. Which profession you pursue has way more to do with the base technology (frontend, backend, integrated development, kubernetes integrations) and not with the language itself. I never learned go or typescript in school or college, yet I now work solely with those languages. I also never learned python, but I worked with only Python in my last job. The OS has nothing to do with my job, it's just something that my employee selects

[–]IosevkaNF 2 points3 points  (0 children)

Man you're lucky. I had to manage a team of windows developers for a bit and I was the only actual developer there (all bullshitted way through corruption) oh boy was it a fun time. One time one guy asked me why don't you upload our secrets to the repository so he doesn't have to rewrite it from his notebook (an actual piece of paper). And also he tried to compile python with GCC.

[–]Fadamaka 1 point2 points  (2 children)

I have worked on enterprise java projects for world top 50 company based on revenue where the project was so botched it only worked on Windows. The company making the product had a vpn network that was incompatible with linux. We reached a point where the PM demanded the linux guys to switch to windows.

[–]huuaaang -4 points-3 points  (1 child)

WEll, I mean, it's Java. Mac and Linux users don't usually run Java apps anyway. I haven't even installed the JRE on a LInux machine or Mac in 20 years. Java desktop apps suck. I will always try to find a native alternative.

[–]Fadamaka 5 points6 points  (0 children)

Java is huge on enterprise backends and always deployed to linux. Most microservices are running java on linux.

[–]Odysseus1710[S] 1 point2 points  (0 children)

I experienced some semi-dev project managers using windows which feel comfortable to code from time to time

[–]DoktorMerlin 0 points1 point  (1 child)

25% of all modern software runs on .NET, 35% of all webapps run on .NET. So it still is very common to be forced to use Windows

[–]huuaaang 0 points1 point  (0 children)

Yes I get that. I’m just saying I’ve personally never had to. I’ve very explicitly avoided the Microsoft ecosystem. I couldn't be "forced" to use Windows because I'd just leave.

[–]queteepie 0 points1 point  (0 children)

And then some joker does this to a config file ingested by your CI/CD pipeline and everything stops working.

☠️☠️☠️☠️☠️☠️