r/learnprogramming • u/[deleted] • Jan 14 '20
If you are wondering, yes, you should learn Linux
While its possible to learn to develop and write code for work or personal use on Windows or Mac with relative ease, there are a lot of advantages that you will gain by learning Linux well.
The biggest reason being that it a FREE OS that has a lot of features. Here are other reasons to learn it
On AWS, the biggest cloud provider. Therefore, if you plan to enter the work force, it is very likely that you will be sshing into a Linux server to do something.
Hardware support has come a very long way in Linux. Nvidia and AMD both have Linux drivers for example. Its highly likely that you will have to zero setup to make a popular distribution like Ubuntu to work on your computer. If you have an older laptop, you can give it new life with a free OS.
You will find that Linux has the fewest restrictions or roadblocks in letting you do more "power user" things. While that has a downside of also giving you ability to fuck things up (which is why system backups with TimeVault or similar are important), the upsides of not worrying about something working because you don't have permission or some config change that is not present is very handy. This will matter more and more as you get into more advanced projects.
Because of the above, most of the big open source libraries are written on Linux with Linux in mind, and later ported to Windows or OSX. Its just easier to make things work on Linux when you have direct introspection of what your program is doing and how its interfacing with the operating system, and the ability to change and configure things.
Free and Open Source (FOSS) software alternatives exist for most of the popular software that you use. Generally, they may be lacking features compared to commercial alternatives, but for the majority of use cases, these are not an issue or available through extensions or configuration. If you have experience in setting stuff up and configuring this software, you will be able to have the same functionality except for free.
Linux UI is very configurable, and different distributions come with their own UI, and you can mix and match. Elementary OS, specifically the Pantheon desktop, is very Mac like, for example. There is also i3wm which is a tiling windows manager that makes great use of a keyboard and smaller screens on laptops.
Some other benefits
Gaming on Linux is becoming more and more prominent through Proton, which is a Valve project to provide windows layer emulation, and open source Lutris, and both are getting better. There are a few games that are have native ports to Linux.
Dual booting is a thing of the past. Virtual Machine software is very good these days. If you need to run Windows apps that you can't get equivalents for on Linux, VMWare Player can provide very good performance, especially if those apps aren't graphic heavy.
If you have a desktop with decent hardware, you can run a Windows or a Mac VM with GPU passthrough, which gives the VM direct access to a graphics card. There are some complexities involved in setting this up (namely, the VM and the host have to have its own set of hardware like monitor mouse and keyboard), but with software solutions or hardware like USB switch, you can make this all work, and then have all 3 dev environments on one computer, with very good performance. Big thing to consider if you are thinking of developing Mac Apps without having to buy a Mac.
So yea, learn Linux. Plenty of guides out there, my general suggestion is to start with learning the file system layout and what each directory contains, learn terminal commands for various things, and then if you want to get into tweaking
EDIT: Another one I forgot to add is privacy. You can make a linux system basically be silent and not transmit anything to the internet. Windows and Mac make this impossible, as services integral to OS will send stuff out over the internet.
64
Jan 14 '20
My only problem is Microsoft Office. The moment I can run Excel and Word on a Linux computer easily, it's the moment I ditch Windows forever.
No, LibreOffice and Excel Online are not the same, I already tried.
24
u/99_percent_a_dog Jan 14 '20
If you're willing to go back to Office 2013, that's supposed to run well under Wine. I've not used it. Worth a try if you have a license lying around.
5
1
10
Jan 15 '20
Why ditch Windows? You've got more choices in how you use Linux now than ever. Why not use Windows AND Linux. WSL is getting pretty good and both VMWare and Oracle have virtualization software that make it easy to run Linux full blown on top of Windows.
4
u/MEGACODZILLA Jan 15 '20
Im currently learning to program using Linux through an Oracle VM and it feels like the best of both worlds. I get the dev environment and experience of linux CLI while keeping my preferred Windows GUI. I guess you could VM the other way around but I've only seen that with my due hard linux friends.
1
Jan 15 '20
WSL is getting pretty good and both VMWare and Oracle have virtualization software that make it easy to run Linux full blown on top of Windows.
Or the other way around; virtual windows inside of Linux.
0
Jan 15 '20
[deleted]
2
Jan 15 '20
That’s and option but not a great one yet. I think we’re talking about virtual box or VMware in this case.
2
u/ficacador Jan 15 '20
Try SoftMaker Office, or it's free version, FreeOffice. It's a direct copy of Microsoft's Office, GUI layout, file types and everything. The free version offers everything most people need, the payed version can be purchased by subscription or one time purchase. It's not open source, but is available natively to Linux.
I have FreeOffice on both Manjaro and Windows (instead of MS Office), so far so good.
9
1
→ More replies (5)0
u/Rikmastering Jan 15 '20
This and gaming are THE ONLY excuse for people who have a minimum interest in programming to not change to Linux IMO.
4
u/mierz94 Jan 15 '20
Or how about just not wanting to?
I really don’t understand this obsession with using Linux just for the sake of it. I use Linux on my work laptop but there is no way I’m switching at home just because of some weird idea of what programmers should do.
1
u/Rikmastering Jan 15 '20
Well, you could not want to, but it is the same as not wanting to improve. When using Linux, you are always learning new things, and most of them you could apply to your code. I'm not meaning specifics about any programming skill, but more general things.
39
u/robotsonroids Jan 15 '20
IT professional here. You are welcome to use linux as a desktop, that's totally cool. I personally stick with mac, as they just work, have a wealth of support in the dev community, and support all the standard programming libraries via brew. My aws linux instances are all the same, based on purpose, and are murdered everytime theres an update. I never need to hit their CLI. All their logs are uploaded to logstash or grafana.
You should definitely learn how linux works, but you don't need a linux workstation. I haven't touched a linux gui in over a decade.
21
u/sickhippie Jan 15 '20 edited Jan 15 '20
Software engineer here. Been using Linux as a daily driver for a couple years now, but recently (about 5-6 months so far) have had to work in OSX because of build constraints.
I personally stick with mac, as they just work, have a wealth of support in the dev community
Yeah, OSX doesn't 'just work' a lot of the time for some developers. It's kind of obnoxious with how much it tries to hide and abstract away from the end user. If you've used it for a long time it's probably easier for you, and that's fine, but I've been working in OSX for the last 6 months and every day I hate it a little bit more.
YMMV is what I'm saying. It very much depends on what you're doing whether OSX "just works" or "just gets in the way".
I'm also curious what world you live in where Linux doesn't have a wealth of support in the dev community.
support all the standard programming libraries via brew.
Brew is fantastic if you're staying current on your libraries. If you're not or if you need a specific older version (for replicating a bug or whatever), check out SDKMan. Getting older versions with brew is kind of a mess, and it's far too common in programming for the required environment version to be non-current. So far I haven't run into any conflicts with the two side-by-side - brew handles the new stuff, SDKMan handles the "I need non-oracle java 8 with JavaFX built in" type stuff.
Yeah I wish it wasn't that way too, but it's the reality most developers face daily.
7
u/denialerror Jan 15 '20
Brew is fantastic if you're staying current on your libraries. If you're not or if you need a specific older version (for replicating a bug or whatever), check out SDKMan.
Not sure what problems you have run into but you can specify a version number when you install a package with homebrew.
3
u/sickhippie Jan 15 '20
You can, but that doesn't matter if the version you need is old enough that it's dropped off. I don't remember what specifically I needed (this was months ago during a modernization phase), but IIRC brew's versions started 2 versions after the one I needed.
This is the SO question that helped me wade my way through the mess. Short version: find the formula file in github, find the previous revision of that file with the version you want,
brew install http://path/to/github/repo/that-commit-id/Formula/package-name.rb. This is roughly how you get previous versions in MacPorts too, only there you have to manually copy the old file into your local installation and runportas normal.As it says in that SO, there were ways to deal with this previously -
brew versions,brew tap homebrew/versions, andbrew tap homebrew/boneyardwere all ways to search through previously published versions, but they're all defunct now.Like I said, brew is fantastic if you're current. Too many developers don't have that luxury. There might be an easy way to get an old version of a library in that state, but I certainly couldn't find it, and with as much info is in that SO question I'd be amazed no one's pointed it out. It was a pretty common complaint with coworkers as well. I heard "well you used to be able to do that but they took that out a few years ago" more than a few times.
3
u/denialerror Jan 15 '20
Thanks for the detailed response. This isn't an issue I've come across so that's all useful information for when I inevitably run into it in the future!
0
Jan 15 '20
[deleted]
→ More replies (1)6
u/slumdogbi Jan 15 '20
So many wrong statements that I feel tired just to correct the things you just said. “No right click” Jesus...
→ More replies (17)→ More replies (11)4
u/ashirviskas Jan 15 '20
I personally stick with mac, as they just work
That is actually a good joke.
4
Jan 15 '20
How do you define learning linux? Is learning bash/zsh sufficient? I have a Mac and use zsh. I would say I'm proficient in it.
1
Jan 15 '20
Mac is Unix/BSD. While a lot of semantics are similar, BSD has lagged way behind Linux in updating tools. For example BSD doesn't have the "ip" tool which is the one stop shop for editing network that comes with most linux distros.
1
Jan 16 '20
I'm not asking if BSD is better or worse. I'm just asking if being proficient in Bash/Zsh cover most of 'knowing Linux'.
I'm pretty sure my next computer will be Linux based though.
1
Jan 16 '20
>I'm just asking if being proficient in Bash/Zsh cover most of 'knowing Linux'.
It will make you proficient in the terminal, but there is other things to linux than knowing the terminal. For example, systemd is the service manager in Linux that doesn't exist in BSD. Networking tools are also slightly different in BSD and Linux.
11
u/disappointer Jan 14 '20
Many of these points and the skills learned therein transfer to macOS, since they're both Unix derivatives. Similarly, most of the points above about FOSS software and libraries apply to macOS, as well, often just needing a recompile for anything that's not available through a package manager.
→ More replies (11)3
u/lengau Jan 14 '20
Does macOS have modern versions of the Unix tools, or are they still hobbling along with ancient copies of BSD tools they never updated?
2
u/denialerror Jan 15 '20
You are only stuck with old versions of you are too lazy to install the new ones, which is very simple to do.
0
Jan 14 '20
[deleted]
1
u/lengau Jan 14 '20
They don't like the GPL tools, but they also seem to do very little in the way of providing decently modern non-GPL'd tools either. The last time I used a Mac their BSD utilities as well as their copies of Python and Perl were woefully (as in, multiple years) out of date. I ended up having to install Homebrew (or similar - this was a while back) just to get modern versions of the same utilities.
5
u/KingJulien Jan 15 '20
You just install homebrew and then you’re good. It’s not an issue.
You end up developing in a virtual env anyway
6
u/OldNeb Jan 15 '20
The bugs and poor user experience will teach you exactly what you need to NOT do with your own software.
-8
Jan 15 '20
"The bugs and poor user experience"
Mac Os and Windows have both of those
4
u/slumdogbi Jan 15 '20
I tried to move out from Mac to Ubuntu then Manjaro then Elementary OS. You can’t even compare those with macOS , it’s like comparing a kids made table with a craftsman
3
Jan 15 '20
what if i told you that you can have the best of 2 worlds? A main windows os where u spend the most time and a linux virtual machine for all the other features
1
u/OldNeb Jan 16 '20
Not going to win hearts and minds, but a few notes.
MacOS and Linux both lack standardized installers and uninstallers. MacOS doesn't need installers unless it does. Hold on to that package you downloaded, because that's where the uninstaller is kept. The recent debacle where the OS upgrade alongside the iOS upgrade to 13 wiped people's cloud data doesn't hurt my argument.
Linux UI design reflects a lack of nuance and understanding, and a reluctance to create a standardized, unified system that COULD replace the command line. Believe it or not, a lot of people prefer not to use the command line. There are many arguments for that, including the argument that it is easier to mess up a command line and harder to troubleshoot a command line.
MacOS is hard to hack, and when something changes, what is happening under the hood is hidden. Linux requires package updates and compiling. With Windows I can just double click on anything that has been written in the last decade and it will work.
My unfortunate experience is that Apple geniuses tend to just want to reformat your device/laptop and "forget" about the certain information that isn't recoverable from the process. As a support person I find this practice abhorrent. It's been a while, though, and newer systems are probably better at separating and carrying over data when a reformat happens. Not a fan of going straight to the nuclear option when it comes to fixing a computer, though. The labor involved in setting a system up can be pretty massive while a knowledgeable person might find a single line of code that fixes everything.
I've found that the MacOS community rarely knows enough to go under the hood to fix anything. There are a few "experts" who are worshipped like primitive gods. They come up with a fix and everyone just copies it verbatim. This can lead to problems. I'd refer you to the great hard drive constantly parking and unparking plague of '15ish.
2
u/KiwasiGames Jan 15 '20
But which Linux?
1
2
u/denialerror Jan 15 '20
That's one reasons for not learning it in my opinion. People new to programming need as few distractions as possible. Deciding on and configuring a new OS is an unnecessary step.
2
3
Jan 15 '20
OP has much to learn it seems!
You can do 99% of tasks a developer might need, especially web dev, on a Mac.
It's one of the reasons they're so popular ;-)
0
Jan 15 '20
They are popular exactly for the same reason Dell was popular - companies get service and support plans with Apple, which is pretty much the only alternative to Windows, and it happens to be more secure because its Unix based, although this is probably not even the case anymore since browsers replaced a lot of apps.
I have a work issued Mac. I can do everything on it. Linux is still better.
7
Jan 14 '20
Wonder why macs are still popular? Because ‘compared to windows’ they just work. Same with windows - compared to Linux, it just works. Ain’t got no time to be messing around with command line stuff just to connect to the WiFi!
8
u/5Beans6 Jan 14 '20
From what I understand you can pretty much do all normal things with the gui just like windows. It's when you get into advanced stuff that you end up using the terminal. And this is also true with windows in many cases too because the people who know what they're doing would rather type a command thay does exactly what they want it to do instead of searching through menus
9
u/AdvantFTW Jan 15 '20
Visual Studio is the best IDE for C# and C++ and C# is a great language. Hard to leave those behind.
6
u/5Beans6 Jan 15 '20
Oh I was just stating things I've heard. I'm a windows user and don't really see myself switching anytime soon. That being said I'm still learning Linux because it's so common
→ More replies (5)1
u/drbuttjob Jan 15 '20
I really like Visual Studio Code and G++ when working on Linux. VSCode has a nice debugging environment and has a similar feel to visual studio. It's more of a "batteries not included" vibe, though
4
u/cheezballs Jan 15 '20
Yea but from a programming standpoint, and to nearly every point in OPs post, you won't be using a GUI for doing dev on Linux. Generally, in the enterprise industry at least, you're gonna dev on windows or Mac and deploy to Linux via some CI/CD process. If we're talking web dev at least. If youre at an indy shop you might get your own Linux machine to develop on but almost every enterprise shop is gonna want their desktop staff to support a single OS and set of hardware. Usually windows.
6
u/drbuttjob Jan 15 '20
Have you ever used Ubuntu? You don't need to touch the command line if you don't want to. Everything you'd need day to day has a GUI. Sure, you can use the terminal to do things, but by no means do you have to.
0
Jan 15 '20
[deleted]
1
u/drbuttjob Jan 15 '20
That's true. I ran into that exact issue when I installed Ubuntu on an old-ish mac of mine. I ended up saying screw it and just downloaded the newest version onto my flash drive and reinstalled.
Although you may have to sometimes, it's highly unlikely that you will need to for the majority of tasks. And when you do, you should probably be comfortable enough with the CLI to not worry about using it anyway.
-1
u/tim0901 Jan 15 '20
Yep, as much as things have changed since 1997, at the end of the day ‘Linux is only free if your time has no value’ (Jamie Zawinski) still holds true imo. I’ll gladly spend the money if I don’t have to deal with that hassle.
6
u/codytheking Jan 15 '20
Programming is way more of a hassle on Windows compared to Mac and Linux, and it's not even close.
3
Jan 15 '20
Eh, I disagree. I've used Linux for nearly a decade. It's what got me interested in IT in the first place. If you're not a gamer or video editor, Linux will work just fine for you. When was the last time you used it?
-9
u/masteryod Jan 15 '20 edited Jan 15 '20
And you dare to call yourself a programmer with that attitude?
There's nothing wrong with commandline. You might be biased against it because CMD in Windows is a retarded joke of a shell and MacOS bubdles 15 years old version of Bash (oh oh I heard they switched recently to ZSH, your beloved Apple with a $999 monitor stand will still have that ugly comandline!).
As long as you don't have Broadcom wireless card from 10 years ago you're good to go with WiFi on Linux without a hassle. A lot has changed since 1999. And yes, we do have GUI Desktop, many of them to choose from actually.
You know nothing about "just works" in IT if you think MacOS or Windows just works. You're like a child blinded by banalities. Yes your game and Photoshop "just works" but that's about it and it's not Linux' fault and it's the least fun thing you can do with a computer. Especially as a developer.
7
u/tim0901 Jan 15 '20
Just because someone doesn’t want to use a command line doesn’t mean they’re not a programmer. Fuck off with your elitism.
→ More replies (1)7
u/bradleynelson102 Jan 15 '20
It just means that they are severely crippled. Most programmers need to use the command line. And just because there are GUI tools dose not mean that you would not learn the command line.
And extreme example would be if a programmer decided to not use a keyboard because they can just use a mouse all the time. Sure you can but you shouldn't
1
u/Alikont Jan 15 '20
I avoid using CMD if there is a GUI alternative. Basically the only cases when I use command line interfaces are when it's either done for further automation or there is no better interface.
-4
Jan 15 '20
Gross simplification.
You no longer need to mess with the command line to do even basic things. All popular distros have full featured guis.
Windows and MacOS don't "just work". Modern Macs have plenty hardware issues, issues with usb hubs if you want to connect external displays to overheating and having to replace the whole computer if your hard drive or ram fails because they are soldered on. Windows has things that talk over the internet, annoying update scheduling, which sometimes overwrites hardware drivers with windows provided ones causing things to not work. In development, OSX is BSD and Windows is Windows, so open source libraries frequently don't work out of the box.
If anything, once you know Linux, it just works.
27
u/Lassii- Jan 15 '20 edited Jan 15 '20
Instead of learning "Linux", learn Linux filesystem-structure (where everything is), how to move around the filesystem and how to do basic file operations. Learn the useful basic tools like Git, Docker, Bash, SSH & later depending on what you want to do with programming, services & tools related to your interest so you for example know how to configure a Docker-based nginx webserver or how to install & configure a SQL or NoSQL database.
You don't have to master all of them but being able to say "yea, I've tried that" or "yea, I've heard about that" when it comes to widely used tools, will make you more interesting potential hire than someone who just goes "Huh, what?" and only knows how to write code.
EDIT: And even if you're just programming for fun right now and not looking to start a career, knowing basic Unix tools will make it a lot easier for you to do many things, especially if web-stuff is what you want to do.
→ More replies (3)2
u/abdulgruman Jan 15 '20
Learn the useful basic tools like Git, Docker, Bash, SSH
One of these things is not like the others.
10
9
u/bayernownz1995 Jan 15 '20
There's a big difference between knowing basic bash/unix skills vs. using linux as your desktop OS
The former is definitely worth it, the latter probably isn't unless you're doing OS/embedded work or if you want to for fun
I work on infrastructure software at a major tech company and not once have I wanted to use linux as my main OS. You can get the benefit of #1 and #4 using Mac OS (I actually had far more issues installing libraries when I tried to use linux than on Mac). And the reality is that a ton of the FOSS alternatives are just not as good. Even if they have the same functionality, UX is almost always worse.
Bottom line: If you don't like linux, don't use it.
25
u/ka-splam Jan 15 '20 edited Jan 15 '20
These are unconvincing reasons. 1 isn't a coherent sentence - Windows is also on AWS; 2 is a plea that it's not terrible (it is, everything is); 4 is a non-reason if stuff is ported to other operating systems anyway; 5 is literally the "free if your time is worthless" insult as if that was a good thing, and 6 is "nobody values the work of professional UX designers".
3 is the only slightly compelling one, but it forewarns that if you're unlucky, every other-person's linux server you work on will be completely different and non-standard because they can. This is also how you end up with several different rewrites of how to configure networking over the past decade, which even though networking is one of Linux's strengths, still struggle to handle FQDNs and DNS well.
There is one elephant in the room reason companies use Linux:
the price tag is $0.*
Spin up a test environment, $0. Scale out to a zillion servers, license cost $0. More processors? More RAM? $0. DR environment? $0. It's the main reason you (reader) should learn it: VM stack on your own hardware? $0. Linux on your old hardware? $0. Linux toy router raspberry pi thing? $0. Rented VM on the internet, $0 licensing.
Other half-decent reasons:
Generally doesn't advertising or spyware (did Ubuntu once send keystrokes and searches to the internet and put ads in the menu? /r/oopsdidntmeanto oh they now advertise in the SSH logon messages, well that's just the modern world I guess, but most Linux distros don't).
You see the writing on the wall for a computer being a thing you control, and don't want your life migrated into Microsoft's cloud, and don't want to or can't pay for Apple.
Text UIs are responsive like you wouldn't believe if all you've used is Electron apps.
Swiss army knife networking tools come in handy all the time in a pinch. SSH proxying, tunnelling and X-forwarding particularly, piping through netcat.
Security in the sense of low level bit/byte/exploit work happens with tools bundled together into distros like Kali Linux, and that's interesting.
LiveCDs - run from any bootable media without installing.
Really small distributions available, good for recovery tools for broken systems.
"Minimal" installers which bootstrap from internet package repos.
Locally controllable repos.
More scope for building it yourself at the scale of what Digital Ocean or Dropbox or BackBlaze do; they wouldn't build on Windows. (Potentially might build on BSD). That kind of cluster storage building is getting away from /r/learnprogramming territory as well, more sysadmin.
More scope for what Google do and make kernel extensions for auditing things like memory errors over massive clusters.
You dislike Windows/macOS direction intensely, enough to suffer the pains of switching.
You want that 1970s computer feeling back again
You don't want macOS professional audio tools, Windows' software compatibility, but you're desperate to use a piece of hardware you found in a skip.
You have a strong FOSS ideology (but make no mistake, AWS, Google, Microsoft, aren't embracing Linux so they can give back and open things up. Closed proprietary systems built on FOSS Linux are the new way).
Ability to dig in and understand (heading away from 'dev' and into 'sysadmin'), but you can do that a lot on BSD / Windows as well; Mark Russinovich didn't become well known for treating Windows as an impenetrable black box.
You want a desktop with a floating transparent window showing your current CPU use (and think you can't get that on mac or Windows). Visual Studio debugging and profiling is world class, if not industry leading. Not that Linux can't do great things here.
You resentfully accept that the world has given up on program automation (AppleScript / COM) and platform specific powers, and is moving toward silo'd cloud apps, and think if you're going to be dragged down to the level of Linux anyway in the industry's fevered dream of "cross platform", you may as well get there under your own power.
7
Jan 15 '20
Personally I’m technology neutral. I don’t care as long as it delivers. Linux, Windows... makes no difference to me. Can I develop with ease? And deliver on time? That’s all that matters.
I could make a very strong case that Linux isn’t user friendly and this gets in the way of trying to get things done. So messing around with settings and configs and bash just to get developing is just hurdles for the sake of hurdles, especially in your early career.
Learn linux when you need it, don’t complicate your workflow with overly complex subsystems to quench the creeping fear of your imposterism.
2
Jan 15 '20
well said, i work on Windows for the most part as is more user friendly and im used to it.Only when i have to work with docker or have to build a third-party library (hate them makefile) i fire up my Ubuntu virtulbox.
2
u/pancakeQueue Jan 14 '20
Duel booting is good if you partition a nfs partition on a drive that both Windows and Linux can see. That way getting files between them is a breeze.
1
Jan 15 '20
I have a samba share set up on the linux host, which makes getting the files from Windows VM easy.
30
Jan 14 '20
Absolutely love the enthusiasm but try be a little less forceful - every system has its benefits and consequences. The art of it is understanding what suits your need at the time.
1
u/99_percent_a_dog Jan 14 '20
I'd say that's why the title is accurate! Yes, you should learn Linux! You should learn a bunch of other OSes, too, at least enough to be able to get around in them. Let the Windows and OSX advocates do their own advocating :)
34
Jan 15 '20 edited Jan 15 '20
Completely disagree with op, especially in this sub.
If you're learning to program just learn to program, don't give even two damns about what aws, bash, shell, ssh are.
I've been working as a software developer (self taught) from more than an year, and I can count few times where any knowledge of Linux, bash, shell that I needed wasn't something I could get from google, or rarely, some other colleague.
People learning to code: learn well the ins and outs of what you're doing. You learning about scopes? Focus on that, this will be your everyday "problems". Learning about closures? Another everyday problem. Learning how to operate on lists? Focus on that.
You don't _need_ to know 99 % of the things you hear or people think are important.
I'm a FE dev and I tell every employer that markdown and css are not my thing and do not interest me much and cool, there's actually people who studied design, colors, css and go to their conferences, I'm not expecting them to compose decoders, manage state, security, implementing business logic or profile performance and understand what the hell is webpack doing. Why would I have to need to do their job as well?
Obviously I know css and html, but they are very low on my priorities, even as a FE dev, so imagine how low on my priorities can be learning shell and bash. That's not stuff I use all time, I know how to use git and move some files, launch a program, how to tail a log or something, or how to run a docker image, but that's mostly tutorial stuff or things I could google and no I didn't need to learn.
Just focus on one goal, if it is learning Linux and OSs then cool, otherwise who cares, focus on your arrays or understanding callbacks or algos or data structures or whatever.
26
Jan 15 '20
If you're a front end developer, "CSS is not my thing" is one of the most damning things you can say. It shows a great lack of experience and unwillingness to grow. It's like a systems dev saying "I don't work with structs", or an embedded dev saying "I don't really do analog input".
If you're new to a thing, absolutely focus on what you have trouble with. But keep your curiosity alive. Learn new things. Going "I won't learn x" signals that you are stuck at your current level and not worth a long-term investment from your employer.
0
Jan 15 '20 edited Jan 15 '20
I don't see the issue.
There are designers and people who study and work css all day and go to design and css conferences.
In companies where I work(ed) they take care of markup and styling, how complex is that?
I'm very glad I tell every potential employer what I dislike and what I want to avoid so me and my potential employer get the best match. I don't end up in companies where I will have to take care of UX/UI and presentation as well as business logic and plenty of things and they don't end up with an employee doing tasks he dislikes and doesn't care about.
My experience with this approach has been excellent so far.
> Going "I won't learn x" signals that you are stuck at your current level and not worth a long-term investment from your employer.
I am willing to learn new things and skills, but things and skills I like and I find most relevant to my work.
In the last 6 months I learned TypeScript extremely well and I'm now proficient in functional programming and can lead my colleagues into learning any algebra from magmas to monads.
I do have a will to learn, but I want to learn things that relate directly my job, writing clean and performant and well functioning front end applications (I do back end actually too).
But I cannot learn everything nor be proficient in everything. If I had to invest considerable amount of times in learning css, ui, markup, beyond the basics I would not be that proficient in TypeScript and FP at all which would be a much bigger issue in my work than knowing *these other things* that there are other people who take care of.
> It shows a great lack of experience
Well..that's your opinion? I don't see how not wanting to do design is a lack of experience for the jobs I do. The employers I look for do not want nor care if I know these things, but they very care about the quality of my feature implementations, presentation is done by people who work on presentation.
E.g. In my previous company (one of the biggest real estate apps in Europe), I couldn't even do CSS or HTML even if I wanted to because we used HTML components written by designers and SSR in PHP. At runtime our own React-like library takes control over the behaviour and state of these components. There wasn't even a chance for me to touch markup or styling. Now I work in consultancy and I only take clients that pay for a separate designer.
0
Jan 15 '20
[deleted]
5
1
u/MEGACODZILLA Jan 15 '20
It appears you replied to the wrong comment but I certainly agree with your point.
4
Jan 15 '20
Obviously I know css and html, but they are very low on my priorities, even as a FE dev
You don't happen to be a family member of some mega investor of the company or the owner's family, right? Because I can't imagine anyone hiring me if I were to tell them that "I do front end development for a living but html and css are not my thing". Maybe I'm missing something here and you mean you are a JavaScript developer.
4
u/99_percent_a_dog Jan 14 '20
Worth mentioning in the gaming section that you can install Steam and use the same account as you were using on Windows. By default it shows you native Linux games and Windows games that are known to work well via Wine (which Steam installs automatically). No need to rebuy games you already have in Steam.
I would recommend Nvidia for Linux, purely for the drivers (the binary ones, not nouveau). AMD drivers are not good.
3
u/SyntheticData Jan 14 '20
Just started Linux for the first time with Mint. I downloaded the recommended Nvidia driver but it crashed my GPU and the boot up killed my keyboard and mouse input. Did a fresh install and thought about setting up a PPA for the driver (first time ever) - thoughts?
3
u/99_percent_a_dog Jan 14 '20
What was the name of the Mint recommended driver and what's the GPU? I don't use Mint and don't know how PPAs work so can't give good advice on that part.
Losing keyboard and mouse could mean a problem with your Xorg config. That can break your input devices, and GPU drivers are heavily involved with Xorg. Check your Xorg logs, along with dmesg and probably "journalctl -xe".
My understanding is that nouveau is fairly stable, but very slow. The nvidia binary driver sometimes glitches out for me with my current hardware (a 2070), but it's really fast, and I don't think I've had an nvidia driver in Windows that doesn't glitch out sometimes, or straight up crash, so it's not worse ;) I'm willing to tolerate this since I play games and play around with tensorflow. If you want rock solid GPU drivers in Linux, get an intel GPU - but the 3D performance will suck.
1
u/SyntheticData Jan 14 '20
It's recommending version 435.21-0ubuntu0.18.04.2
I wiped the HDD with the fresh install so my Xorg logs won't show the event. Thanks for the input, going to keep looking into the best option for the driver.
2
u/99_percent_a_dog Jan 14 '20
That's the binary driver. Check if anyone else reports problems with nvidia 435 + your GPU. You could also try installing an older version, Ubuntu should give you a few choices. Xorg logs will probably be the most useful.
→ More replies (1)1
1
u/Treed101519 Jan 15 '20
You say learn linux, but whenever I look into linux I am greeted with many different options. So, define how one just learns linux?
→ More replies (1)
1
u/chaotic_thought Jan 15 '20
Dual booting is a thing of the past.
This part is inaccurate. Most computers come with Windows pre-installed.
Option A: Run Windows as your native OS and run Linux in a VM.
Option B: Run Linux as your native OS and run Windows in a VM?
Option B is technically possible but if you try it you will see that Windows will not work in a proper way because it must be activated. Of course you can get around this by just not activating Windows or getting a cracked version, but both of these things are legally dubious.
1
Jan 15 '20
You can export the key, and activate the windows in a VM.
1
u/chaotic_thought Jan 15 '20
Apparently you can only do this once, and only on non-OEM Windows copies. The Windows that comes with computers (i.e. 99% of Windows licenses) are OEM licenses so presumably cannot be transferred this way, at least not legally.
https://www.groovypost.com/howto/transfer-windows-10-license-new-pc/
If you have Windows Pro then apparently you can transfer that one an unlimited number of times. I think this is the version businesses usually buy. But 99% of home users do not have that version and so are probably not going to be able to use this transfer approach.
1
Jan 15 '20
I had a course about Linux in college and was worthless. Can someone suggest some good online courses or tutorials? Beginner level would be great.
2
1
u/sternone_2 Jan 15 '20
Immutable infrastructure, we don't ssh into boxes anymore.
Besides, learning linux, how hard is this, learning a few commands to do things?
TL:DR it doesn't really matter anymore, the os war is over.
1
1
u/sack0nuts Jan 15 '20
How long would it take to get off the ground? Could I do this by putting in a couple hours on the weekends? My concern is the amount of time it would take me to learn, and get a machine up and running so I could do my work and gaming stuff. Part of this is just plain laziness, I'll admit. But part of it is a legit concern - I've got all my PhD stuff keeping really very busy. While I know it would be badass in a lot of ways to get off the ground linux-wise, I feel like it would take me several weeks just to get some of my routine stuff up and running. I feel like gaming stuff would take much longer.
1
Jan 15 '20 edited Jan 15 '20
I would try it out with a VM first, or install it on a laptop and start using that laptop for non work tasks, like browsing web. Install is pretty easy, especially with Ubuntu, and there is no config - you can use it out of the box. The biggest roadblock will come with solving problems like a piece of new software not working - if you have the time to google stuff and figure it out, you will probably end up learning it well in like half a year, faster if you are good at procedural thinking.
The key points to learn are,
filesystem structure
terminal semantics (like environment variables, PATH, bashrc file)
common terminal commands
networking commands
process management
service management (will most likely be systemd)
package manager
basics of bash scripting
1
1
u/poencho Jan 15 '20
I'd love to learn more about Linux. However I need some proper goals. What are fun hobby projects you can do that are great for learning? Just messing around without a goal I'll lose interest fast.
1
Jan 15 '20
Honestly, the way I learned it is when I built a new computer, and didn't have a windows license. I just switched to Ubuntu, and started using it, googling problems along the way, like how to compile stuff in the terminal or run programs under wine. For most uses cases that don't involve programing, you probably will never touch the terminal, and its just like any other OS.
You can play around with tweaking the GUI to the point of installing a complete one (since its just another program that runs on top of linux, and not an integral part of OS unlike for Mac or Windows).
If you set up the TimeShift backup, you can pretty much do a lot to fuck up your system, with no fear of permanent loss because you can just restore it from a backup.
1
u/poencho Jan 19 '20
Allright man, thanks. I did once install ubunte and yeah I barely used the command line save for installing programs. However I just did a career switch to IT and it's kinda intimidating how well my senior team members work with only cli. I feel like some is just lost on me since I'm so used to windows UI.
3
Jan 15 '20
I use Linux because it's free , been using it for long , all the coding stuff I do is possible on linux. Think people should use what suits their needs best.
3
Jan 15 '20 edited Jan 15 '20
I chose Linux as my main desktop environment after another UI change between Windows versions. I have no doubt that Windows is totally OK for its new userbase. But if you're old enough and started from Win95, you know that every change of the proprietary software you'd got used to puts you in the 'evolve or die' position. Not that I'm against progress, but it just robs you of control and devalues your skills. You cannot just get cozy in your very own and well known environment which does not betray you every several years. CLI way of thinking is unusual for the GUI-minded people, but once you've grasped it, it's forever yours. Shell, Vi, Git will be the same in ten, fifteen, twenty years. And even for GUI in UNIX world it is you who decide what and when to change, not some companies product managers. As for me I happily live in superstable MATE environment in Void Linux distribution which never fails. Of course, everyone can stumble upon software quirks sometime, but with community driven software you have live people to address and once you solved a problem, this solution serves you well and forever. So I don't know how does it look from a professional or 'my old mom' point of view, but as a power user you can get really much fun and benefit from using free software. It is just truly yours, not like this SaaS scheme, when a country of users can lose access to Photoshop tonight.
3
Jan 15 '20
Also once you use yay on archlinux all other package managers seem shitty in comparison.
I can't even imagine trying to maintain a dev environment on Windows.
3
Jan 21 '20
Recently switched over to Linus Mint OS to prolong my desktop, and it has been a great decision. Everything is faster, it still does what I need it to, and I have more control over the system.
Yes, you can screw it up in interesting ways. My first attempt resulted in a completely crashed system (amateur tip: remove any storage or media drives before installing Linux), but all is working well. I'm trying to learn some computer science fundamentals and thought I would try and learn Linux at the same time.
2
u/chandula567 Jan 15 '20
Does anyone have an opinion on WSL? Wouldn’t that be a “best of both worlds” scenario? Sadly I haven’t had the time to try it out myself so would be cool to hear your thoughts.
2
u/LEDNEWB Jan 15 '20
I mean the biggest benefit was the terminal, everything else on the list was arguable. But windows has a new terminal that allows both linux and windows commands.
1
u/DeezNuts1AltAccount Jan 15 '20
I am doing a dual boot rn with win 10 and Ubuntu. I will say Ubuntu did require a setup because I had to configure my WiFi chip. It took a while but Ubuntu isn’t a zero setup thing.
1
u/Suulace Jan 15 '20
Kubuntu Linux is my daily OS on my laptop, but I do keep a Windows partition on my gaming computer. All my other tasks (programming, office work, photo/video/audio editing) I'm able to use on Linux.
1
1
1
u/henrichyusef Jan 15 '20 edited Jan 15 '20
I dual booted my computer with Linux (ubuntu) and win10, the first time on ubuntu, watching those tutorial I got so excited that I personalised it completely (seriously it was almost unrecognizable :p) it's really good and I love it, and the terminal makes things easier... But I switched back to win10 cuz of all the creative cloud programs and also gaming, so in the end I was spenting all my time on win10 and having ubuntu was a waste of space. So I just have win10 now and if I ever need to use Linux for some reason I'll emulate :/
1
u/plasticbills Jan 15 '20
learn how to be comfortable in the terminal and unix filesystem. you dont need to switch your many os to learn anything
1
1
Jan 15 '20
I agree with almost everything except for the “power user” one.
SysAdmin here. (I can hear you all hissing at me already).
When you reach the corporate world, there are compliance requirements which require a limit of access, which includes to the local workstation. There’s also the possibility that a bug in your project will drop the whole workstation if you’re able to run it in a privileged mode.
As you get more advanced in your programming you should be restricting your access to services and files which aren’t available above user access. If not, you’ll find coding for corporate compliance particularly difficult.
1
u/Under_the_Milky_Way Jan 15 '20
Been in IT for about 25 years now and that's been the same advice for a long time now.
The joke back then was: I'd love to learn it but I prefer to have a social life...
1
u/uilspieel Jan 15 '20
You are raising the bar too high. But yes, a thorough grounding in Linux (bash) prepares you well for the study of programming. And then it would be advisable to start with C,
1
u/slowfly1st Jan 15 '20
IMO those are not main reasons why you should learn linux because you are learning to code or you are a coder.
Mine would be (disclaimer: this is my opinion, and it's true for me and the work I do)
Coding with a linux os is more efficient. More out-of-the-box solutions, apt-get (you don't need a browser to install a browser :P), and my personal favorite: much faster file system (our >1 Mio LoC app builds up to 10 times faster on linux compared to windows). It's not as bad as it has been ("back in the day", for "tail -f" you had to download an additional software, nowadays there's a command in the powershell, but I think to truncate a file to 0 size is still not possible from the prompt).
Most of the time, binaries will run on a linux system. You get rid of some possible error sources. This is equivalent to your first point: Troubleshooting "windows problems" will only help you be more efficient on your dev machine, but not on your other systems. And not only does your software most likely run on linux, but infrastructure around it, as well as the services you have to run to develop software, thinks like CI/CD, code review tools, VCS, artifactories, and so on. Often those tools are managed by the team itself, or some developers in the organization - and at least basic knowledge about the OS is a necessity.
Linux is helpful for your career (I personally got into 'fun projects', just because of linux knowledge)
Many programming languages and libraries / frameworks are built for linux and more convenient to use on linux.
BUT: Everything comes with a price. The learning curve is quite steep (but there's also a pro to this one: you will learn more about how the OS works), it's easy to destroy the system (happens to the best of us), and yes, some problems you won't have with windows.
1
Jan 15 '20
When I started my current job, it was all Windows. Suddenly, we needed a Tomcat server for a SpringBoot application, then ... BOOM, Linux box. I am one of two people on the team who knows what to do on Linux. While I am not system admin level, I can definitely hold my own. I also installed the Windows Subsystem for Linux on my workstation, and LOVE it. I am constantly bewildering my coworkers with my command line voodoo.
1
u/ninja-dragon Jan 15 '20
Linux is overrated. Majority of professional development happens on Windows. Checkout the stack overflow survey.
Linux may have come a long way in terms of hardware support, it's still not worth the hassle. In my uni I spent almost 3 years dealing with the nuances of having a Linux laptop before just surrendering to Mac.
The productivity boost was immense.
I still have a Linux workstation because I have a few system projects which are based out of POSIX and hence it's easier to build and test in Linux. Other than that, I am 100% working on my windows based surface book.
However that being said, it's always good to be familiar around POSIX, but having Linux as your main OS in a laptop is just a pain in ass. Windows subsystem/ VM or a cloud server is more than good enough.
In fact I will wager that the best way to familiarise yourself is to just go ahead and host a web app on an Ubuntu cloud server.
1
u/AllTheFuckingSame Jan 15 '20
As a software developer of 30 years and a Linux user of 24 years I'm stunned that developers deploy to systems that they don't understand.
Not only is Linux perfect for developers (you can make it behave however you want) but it's simply part of your technology stack (unless it isn't of course).
I get that not all developers want to build up their own computing environment. That's cool of course. But the gains are huge and all people are talking about is that they don't want to babysit it.
1
u/vest133hg Jan 15 '20
I'd just like to interject for a moment. What you're referring to as Linux, is in fact, GNU/Linux, or as I've recently taken to calling it, GNU plus Linux. Linux is not an operating system unto itself, but rather another free component of a fully functioning GNU system made useful by the GNU corelibs, shell utilities and vital system components comprising a full OS as defined by POSIX.
Many computer users run a modified version of the GNU system every day, without realizing it. Through a peculiar turn of events, the version of GNU which is widely used today is often called "Linux", and many of its users are not aware that it is basically the GNU system, developed by the GNU Project.
There really is a Linux, and these people are using it, but it is just a part of the system they use. Linux is the kernel: the program in the system that allocates the machine's resources to the other programs that you run. The kernel is an essential part of an operating system, but useless by itself; it can only function in the context of a complete operating system. Linux is normally used in combination with the GNU operating system: the whole system is basically GNU with Linux added, or GNU/Linux. All the so-called "Linux" distributions are really distributions of GNU/Linux.
1
u/camilo16 Jan 15 '20
You are wrong a kernel is already an operating system. Moreso, you can run a Linux distro, say arch, without GNU programs in it. You are straight up wrong.
1
1
u/sarevok9 Jan 15 '20
Holy shit this thread is full of disinformation.
AWS has options for windows boxes ( cite: https://aws.amazon.com/windows/?analyst-reports-windows.sort-by=item.additionalFields.datePublished&analyst-reports-windows.sort-order=desc )
Hardware support is still generally superior (though admittedly at times less plug-n-play than unix) on Windows. There are still many devices / software packages that run exclusively on Windows (See: the stupid AmbirScan business card scanners that are used in an office that I support.)
Windows has VERY few restrictions in power user things. I can open a command prompt as an administrator by hitting start on my keyboard, typing "cmd" right clicking and run as administrator. I can also disable UAT and not even get prompted for that decision. Once in the shell, I will run as an admin (sudo). Tools like Cmder (https://cmder.net/), Cygwin, or powershell with Windows Linux Subsystem (https://docs.microsoft.com/en-us/windows/wsl/install-win10 ) all give you an equal level of control.
I can't think of a ton of open source LIBRARIES that are linux specific, I can think of a bunch of linux-first APPLICATIONS / Scripts, but generally speaking outside of stuff with hard-coded pathing (which you shouldn't do anyways as it's bad form), you can find an equivalent path on windows.
FOSS doesn't cover many business cases unless the business started on linux. Hell, I can't even open a .msg file in outlook on Mac when it was generated in outlook on windows, much less use an open source email viewer and expect a complete / buttoned up workflow. Hell I can't even use outlook alternatives ON WINDOWS because shit like Mailbird doesn't have 2FA for O365. I could spend ~50 hours building out a custom workflow for my email, or I could just bite the bullet and use Office and not have to fuck about.
No opposition to this point.
Some other benefits:
Once you learn crontab; it's much better / easier to interact with than Task Scheduler.
Far fewer viruses / malware target the *nix ecosystem.
Generally speaking it forces you to better understand how your computer works.
Downsides:
Directory tree is a bit more confusing.
There's very few warnings on what is bullshit / required by the system.
You can (easily) make changes that can neither be reverted or rolled back.
Multiple flavors of the shell exist and there's not a great way to familiarize yourself with when you need to do configuration of a program in the shell vs in a UI.
Also in accordance with the above -- many programs assume that you are not going to use the "out of the box" configuration, and are willing to spend time reading docs / configuring the package to work the way you want it to.
As a final note: I've been using *Nix systems since RHL 6 in early 2001 and am very familiar with the ecosystem and limitations and don't make this post to discourage anyone from trying linux -- you should. But please don't take the stuff posted here as gospel or you're likely to be sorely let down.
0
u/DNEAVES Jan 15 '20
Also, I'd like to add:
If someone is on Windows and doesnt want to make the jump to Linux right now, at least get comfortable with Windows Subsystem for Linux (WSL). There are WSLs for Ubuntu, Debian, Kali, and OpenSUSE.
It's essentially running a Linux terminal (like Bash if you opt for the Ubuntu WSL) so one can get accustomed to terminal syntax and usage
1
Jan 15 '20
You miss out on a lot of GUI configuration.
1
u/DNEAVES Jan 15 '20
I agree. However it's great for getting some of the terminal usage under one's belt
-2
-6
-1
0
0
0
Jan 15 '20
Yes!!! Embedded Linux systems are everywhere... for those who would like to know more (free course)
https://www.youtube.com/playlist?list=PLMB3ddm5Yvh1H_e4IqXyFH25efrNYEDnP
0
u/ManlyKittyCat Jan 15 '20
If you are wondering, yes, we should eradicate Linux from the world. It’s like cancer, no one likes it but it just won’t go away.
214
u/Vidyogamasta Jan 14 '20
Most of these are "Linux doesn't suck as much as you think it does," not "this is why Linux is great." Like you point out, virtualization is a thing: what would compel me to have a Linux machine that VM's mac/windows OS, rather than the other way around?