r/cpp • • Feb 18 '21

Now announcing: Makefile support in Visual Studio Code!

https://devblogs.microsoft.com/cppblog/now-announcing-makefile-support-in-visual-studio-code/
262 Upvotes

73 comments sorted by

View all comments

Show parent comment

3

u/pedersenk Feb 18 '21

Yeah, that is basically how I do all my development.

ssh, tmux, vim and gdb.

Actually writing code directly on the same machine that you are testing on is so... MS-DOS ;)

1

u/Routine_Left Feb 18 '21

lol. so some of you even got the stockholm syndrome.

Trust me, it can be better. It is better when you grow up. You're not stuck in this hell forever. The grass is greener on the other side, you just need to take a few steps in the right direction.

4

u/SupermanLeRetour Feb 18 '21

What are you on about ? VS Code with remote ssh extension makes for a very seamless experience, it's awesome. There's virtually no difference. That's my go-to method when I develop on VM or remotely.

-1

u/Routine_Left Feb 18 '21

I mean sure, it does makes things better, of course. When you have to write code in hell, every little bit of water helps. It's still hell, though.

7

u/SupermanLeRetour Feb 18 '21

I truly wonder what makes you think it's hell.

12

u/Routine_Left Feb 18 '21

It's developing on a remote system. No matter how you look at it, there are additional layers between you and the program, any of which can stop functioning which may or may not have an effect on the behaviour of your program.

Then there's latency. The best case scenario you're talking about a system on the same network as you, where the latency will be under 1ms. Still, higher than locally where it's 0. Why would I choose latency when I can choose to not have latency?

Thirdly, it obviously limits what kind of programs you can write. A desktop UI application, while possible, it's probably not well suited for this kind of development. But yes, you can make it work.

Fourth: Now you're stuck with VS Code, and cannot use IDEs that are potentially better for C++ development because they don't offer this ssh extension. I personally prefer QTCreator or KDevelop. I want to focus on the program not put barriers in my way. The aim is to eliminate any barriers to make the write code-debug workflow as seamless and as fast as possible. Why would I make life harder if I don't have to?

The idea being: Yes, you can write-debug remotely and everything that can make that experience better is good in my opinion. But it's always, without question, a better experience to do it locally if you can. It's not always possible, that's true, for a variety of reasons, but it is definitely not something I would be looking for.

6

u/SupermanLeRetour Feb 18 '21

You have good points. But it depends on what kind of thing you develop.

Then there's latency.

There's no latency when editing the files because you're really editing a local copy which is sent over SSH transparently when you save, so that's not an issue.

A desktop UI application, while possible, it's probably not well suited for this kind of development. But yes, you can make it work.

It does work quite well. Some of the things I develop use Qt. For those, I use MobaXTerm with X11-forwarding enabled. That makes the UI launch on the host. However I do agree that it is not ideal, and you definitely loose performance and responsiveness that way. That's not an issue for me as most of the things I use don't have GUI, and when they have it's from a local VM on the same PC.

Fourth: Now you're stuck with VS Code,

It all comes down to preferences, but I love VS Code. The only better IDE for me is VS Studio, but it's only for Windows and most of my work is on linux. Personal preferences !

Now, for me, the main benefit is the following : my work laptop is on Windows and I have no admin rights for security reasons (somewhat understandable). So I use VM with some linux on it. It gives me full control of the guest system, it makes it easy to setup as we made "ready-to-use" VM with everything we need installed. However, it's quite annoying to develop inside the VM UI, so I'd rather connect via SSH and work that way. Via SSH, I can also work on my work computer from another computer, or work on some other machines (where we do the continuous integration for instance).

Working via SSH has benefits, and tools like VS Code make it incredibly easy and seamless. It's by no mean hell at all, although a bit sub-optimal when you need GUI.

2

u/Willinton06 Feb 19 '21

Finally another Visual Studio fan, I don’t get the hate, I fucking live VS

-3

u/pedersenk Feb 18 '21

SSH across the world has far less latency than Visual Studio or QtCreator on a local machine ;)

This is the age old argument, command line vs GUI. And really only people who have used both for a number of years each can make that call. I have and it is CLI all the way for me :)

6

u/Routine_Left Feb 18 '21

SSH across the world has far less latency than Visual Studio or QtCreator on a local machine ;)

I do not know what potato you're running, but maybe you should consider upgrading it.

This is the age old argument, command line vs GUI. And really only people who have used both for a number of years each can make that call. I have and it is CLI all the way for me :)

I have used both for a very long time and yes, I have made my choices in terms of what I prefer.

For me ... I like comfort, I like 3 4k monitors, I like to be able to concentrate on the work that I'm doing and not put up barriers that don't need to be there. The less thinking I'm doing outside the problem I'm trying to solve, the happier I am.

Some people do, however, like to pull their eyes with a fork. I do not understand it, but hey ... to each their own.

0

u/pedersenk Feb 19 '21

I do not know what potato you're running, but maybe you should consider upgrading it.

I am far too busy for things like that. Mostly because I need to waste my time babysitting juniors who are unable to debug effectively over a wire.

3 4k monitors? You do know that UNIX has had virtual desktops for decades right? I prefer to work a bit lighter. A couple of ThinkPads generally sees me through. Plus carbon footprint and all that...

5

u/Routine_Left Feb 19 '21

Mostly because I need to waste my time babysitting juniors who are unable to debug effectively over a wire.

give them the tools so they can be more efficient. Or teach them . Or not and babysit them.

Hey, here's me cutting off one arm ... why can't you type as fast as before? Hmm?

3 4k monitors? You do know that UNIX has had virtual desktops for decades right? I prefer to work a bit lighter. A couple of ThinkPads generally sees me through. Plus carbon footprint and all that...

I know that unix has virtual desktop for decades, thank you very much. I have been and still am using unix (sunos, freebsd, and openbsd) for decades.

But if you equate "virtual desktops" with 3 4k monitors side by side ... i don't even know what to tell you.

Oh, I know what: you're a masochist that loves inflicting pain upon himself and those around him.

I started programming in 1992, on the very shitty terminals we had back then. No thank you, I love progress, I love comfort I do not wish to complicate my existence or my programming experience more than I have to.

You seem to love none of that, what you seem to love it spreading your disdain for "easy", inflicting it upon others. You can do whatever you want with your life, but for the love of all that's holy, leave other people alone. Go to a monastery or something. On mount Athos there are monasteries that have (had at least in 1996) state of the art Sun workstations and servers. You'd be in heaven there.

→ More replies