D
D
develr572020-07-28 13:55:43
linux
develr57, 2020-07-28 13:55:43

OS choice for Docker development: Windows or Linux?

Hello
I am new to web development. The OS that I have used "all my life" is Windows, I started with win98. Windows completely suits me as a user and, so far, a novice web developer. I have been using OpenServer for a long time. It seems to me a thing that is very good and not only for study. Everyone has their own opinion on this. And this is my opinion of a beginner, most likely not entirely correct. I heard a lot that if you develop under Windows, then when you transfer the project to production, all sorts of problems will begin, because there will be Linux. In general, Windows is evil, and Linux is an earthly miracle, especially for a web developer.

There are people (as I think seasoned developed)who help me with the direction in mastering the web, I am very grateful to them for this and I don’t want to cross the line after which they will send me f*ck. I already gave them a lot of stupid questions, so I better ask these, possibly stupid questions here. They persistently advised me to start using Linux, namely, to develop on Linux. OpenServer is considered something of a nursery toy. Moreover, they themselvesLinuxoids-Makbukfily, Windu is considered a piece of buggy shit. I myself, having tried several different Linux distributions, consider Linux to be far from ideal. This is my personal opinion, I do not impose it on anyone. After Windows, so convenient and native, even if not ideal, Linux is like another planet. Figuratively speaking, how to open all doors (even an unlocked refrigerator, for example) using a montage (terminal) and "such and such a mother" (sudo su) . The montage woman's argument is ironclad, you can't argue with that. The point is how and where to apply it correctly. For me personally, switching to Linux is a pain and red eyes. Although it will be a very valuable experience.
Also, the same people, strongly advised to abandon OpenServer and use Docker, as this will save me a lot of problems in the future. In addition, it is grown-up and bearded.

At the moment I'm studying Laravel and, in theory, I should have started developing a training online store a long time ago. But their words are strongly "ingrained", and I think it might be worth changing the toolkit. Now I'm thinking how best to do it, but I don't know all the nuances:
1. To hell, for now Linux. I will continue to study on Windows:
1.1. So far, docker, to continue learning Laravel on OpenServer? Well, what about the future? You still have to change tools. Tell me, aksakals-web-developers, which of you use OpenServer? Something seems to me that no one uses it in the mature phase of a developer's life.
1.2. Switch to Docker and work with docker under Windows? It seems like for the docker there is no difference under which OS to work. And even working from under Windows, there should not be any problems with production on Linux. Am I thinking right?
2. Seriously start working on Linux, red-eye and hold back the urge to vomit. And then, through pain and suffering, eventually accept the holy Linux? And use the same docker on Linux, stuffing bumps during development. I will work with Linux in a virtual machine, I don’t want to install a second system yet.

What would be the best way to do it? I would like to master the lara as quickly as possible now and can already start earning money, the financial situation is such, no.

In addition, I often see in the requirements in vacancies that experience is needed or welcomed: Linux, Docker. If you inadvertently offended the feelings of believers in Linux - forgive the green one. In my defense, I will say: I will definitely master Linux, but I would like to somehow later and not on the main, single machine ....

Sorry for the "multiletters". Maybe someone will remember their similar throwing in their "green" time. Maybe someone has experience developing on docker in both operating systems and he will give really good advice.

Answer the question

In order to leave comments, you need to log in

7 answer(s)
I
Ilya, 2020-07-28
@develr57

linux on the working computer crap, IMHO.
Use a virtual or wsl (but it's slow for me)

S
Saboteur, 2020-07-28
@saboteur_kiev

Development is carried out not so much in the operating system as in your favorite IDE / editor.
But to launch a site (backend), in principle, it is better in the same environment in which it will spin in production.
It is absolutely easy to install virtualbox with Linux, and deploy the site into it. Or buy hosting and upload it there (I prefer localhost, because it's safer, faster, easier).
People who hate windows just don't know how to use it. All major popular operating systems are not just popular, and are full of their own merits.
No matter how much I talked with the haters, almost all the arguments are more about how people are used to working with a computer in a certain OS, and they don’t want to accept that features in another OS work differently, not only technically, but also ideologically.

I
iddqda, 2020-07-28
@iddqda

Yes, I don’t care what to screw up now. At
my work, I allocated a server with ubuntu for development (headless, i.e. without X-s)
I rolled code-server (vs-code) and gogs (aka github on prem)
there and now I’m quietly launching vscode in a browser from under Windows, poppy or the same ubuntu on my main working computer.
By the way, I was surprised to find that the poppy almost completely replaces Linux for my tasks.
So then I'm basically a networker and the CLI is my native environment. But I also lightly do progers.
I automate network tasks. Not only scripts, there are also chatbots and web applications with a sprawling backend and on dockers. True, not PHP. Python yes js basically.
But purely in Windows, when I tried to cheat - I couldn’t set up the working environment
There is nothing there by default. Everything has to be installed separately from different not particularly trusted sources

V
Valentine, 2020-08-06
@ProFfeSsoRr

Linux is advised to you (well, if you discard all sorts of likes / dislikes, but only objectively) because your product will eventually run on Linux. Those. so that you, as a developer, are closer to the infrastructure. And most likely you, as a developer, will need to understand what to do on a Linux server in order to see your logs, etc. etc. Those. You need to know Linux at a basic level, and for this, the easiest way is to install it yourself and use it.
About docker: docker for Windows and Linux is different, if you write for Linux in the end, you run docker in Windows, which runs in a virtual machine with Linux. Those. in fact, yes - you work from under Windows in Linux in some form.
There is also such a moment - Microsoft in win10 dragged a lot of everything from Linux, starting from the fact that they dragged Linux themselves, ending with the fact that the new terminal is written cool. Those. now the difference between "sit on Windows" and "sit on Linux" is decreasing. The same visual studio code is available on both platforms, many tools are browser-based in fact, and therefore work everywhere. Those. Now it's easier to move from Windows to Linux, you don't have to learn new tools like IDE, but it's easier to stay on Windows now. So try to get comfortable with docker in Windows, and on a virtual machine in Linux, set up everything similar and compare the work process.

Y
Yerlan Ibraev, 2020-07-29
@mad_nazgul

I myself prefer to develop under Linux. Because applications that I develop are spinning under Linux. It's easier to set up a debugging environment to catch errors.
Less "everything works for me".
And so. If for study, then where it is convenient for you personally.
If for work, then work in the same environment as the whole team.

D
Dimka Filippov, 2020-08-06
@dilnix

My version is Linux with Docker, and all the development is there. But there are many employees and friends who are on Windows and develop with me, or something similar using Docker.
As for me, yes, we should already forget about the good old OpenServer. It's still a nursery.
Switching to Linux or not is just a matter of taste. You just need to understand that 90% of the web revolves on it, and in development you will definitely have to deal with it. But a basic understanding is enough, without the constant use of "at home", to cope with challenges.

Z
ZoomLS, 2020-08-06
@ZoomLS

If there is no development under Windows, then of course GNU / Linux. Otherwise, you will often have to solve Windows problems (especially with Docker), and not development.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question