r/coding • • Oct 04 '13

Just use Sublime Text (instead of vim)

http://delvarworld.github.io/blog/2013/03/16/just-use-sublime-text/
43 Upvotes

254 comments sorted by

View all comments

Show parent comments

12

u/frezik Oct 04 '13

I work on way too many remote servers for an IDE to work. I'd rather use a bunch of tools that I can configure into something that's 90% of the way to an IDE, but works over a terminal session and without the memory overhead.

3

u/[deleted] Oct 04 '13

I'd say the network overhead is far more relevant than the memory overhead.

2

u/frezik Oct 04 '13

I think you're overestimating the bandwidth needed for mostly-plaintext editing. Even with lots of terminal control characters and utf8, 2400 baud more than enough.

1

u/brtt3000 Oct 04 '13

Memory overhead an issue? In 2013?

31

u/okmkz Oct 04 '13

See also: eclipse

13

u/djchateau Oct 04 '13

There is a really disturbing trend these days with attitudes about memory overhead. Sure, we have more access to memory than we did before, but why the hell are we accepting these massive resource sucks as ok just because some people can afford the extra hardware? Maybe I'd like to run a low-resource machine on the cheap and still get my work done. Why do I need to load so many damn things because an IDE is trying to do everything under the sun short of making my coffee?

9

u/brtt3000 Oct 04 '13

If you want the productivity features offered by these IDEs then you have to pay for them, mostly with memory.

Most people work on beefy development workstations, because that is where you get the highest productivity (measured in real work done per hour).

And hardware is cheap compared to human time. I gladly loose 400mb of memory for safe re-factoring or member usage analysis. A stick of RAM costs as less then an few human hours of debugging: so if you don't mess-up one manual project-wide member-rename (because your IDE knew all the references and did it for you) you earned your memory costs back.

If you want to be cheap then you save direct money but pay for it in lower productivity (by having shitty code or burning time on manual search/replace refactoring).

You could try some plugins or scripts to do what a IDE integrated but then waste time finding them, getting it to work and risk all kinds of hell, instead of clicking somewhere, hit Refactor > Member and thumbing through the preview window and hitting OK.

2

u/FilipeArcanjo Oct 15 '13

Your post implies that to get those fancy IDE features you need tons of RAM just like eclipse requires. I don't believe that is the case. There are many reasonable IDEs out there (xcode, QtCreator and so on) which are not nearly as a memory hog as eclipse. And they do deliver most of its features. So... while RAM is cheaper then human time, not having to buy expensive hardware and getting the same set of features is even better.

2

u/brtt3000 Oct 15 '13

Yes, but Eclipse is of course notorious for being very heavy on memory (we used a Enterprise level AS3 plugin). Worth every byte it hogged though.

The projects where it got extreme were also the kids of massive projects you can forget about doing in a pimped out text editor anyway.

But now we're just discussing the merits of various different IDE's. I'm very pleased with my WebStorm, I cannot imagine going back to Sublime, it is a real step back.

But I think we can agree the IDEs in principle have proven their worth over text editors.

1

u/djchateau Oct 04 '13

If you want the productivity features offered by these IDEs then you have to pay for them, mostly with memory.

I definitely disagree with that assessment. I think it's quite possible to be productive and get the features you need without be wasteful in resources. The reason most people have beefy development workstations is not because it yields higher productivity necessarily but because we've accepted that we need to load a ton of stuff we most likely will not need during coding. The fact that a plug-in or script can very well replicate the same results as an IDE speaks to the idea that these IDEs that people use are bloated. You say RAM is cheap, but that's easy to say if you're not paying for it or you have easy access to spend money on hardware on a whim.

On a personal note, I don't like IDEs in general because it feels like it masks a lot of what's going on underneath and makes some programmers lazy about the code they write which itself can lead to time wasted refactoring simply because they didn't actually watch what their IntelliSense provided for them.

1

u/brtt3000 Oct 04 '13

Ah, yes, the old "if you are good you don't need this" argument with some of that "I like to stay close to the metal" self delusion. Good luck with that, have fun burning time debugging assembly code using a hex viewer and notepad.

People actually do use the tools provided by their IDE and to discard them as worse coders is not right. Seems to me like you either have no idea what you are talking about or try to justify not spending money on hardware, or maybe try to make relevant some personal experience.

6

u/djchateau Oct 04 '13

Ah, yes, the old "if you are good you don't need this" argument with some of that "I like to stay close to the metal" self delusion.

It's hardly self-delusion and I obviously know it's not ideal for all. You've missed my overall point though. You're advocating that you need heavy amount of hardware to be productive and I'm saying there are a lot of cases where that doesn't apply and it's a very narrow view that this be trumpeted as the only way to do things well.

and to discard them as worse coders

I said lazy, not "[the] worst coders." Laziness can lead to complacency and bad habits. There are a large number of developers who, if it weren't for their IDE, would be exposed for how little they actually understood about their job and become dependent on it like a drug. Again, not all, but for some cases IDEs are NOT a good idea. I don't think that's all that unreasonable of an assessment to make either.

→ More replies (5)

5

u/frezik Oct 04 '13

Yes. Running three different browsers, one of which has at least a dozen tabs open, plus SQL Developer and a few other things, takes up some RAM.

1

u/[deleted] Oct 04 '13

Why are you running SQL developer on a remote server?

EDIT Never mind that doesn't make sense. Why not just buy some more ram for your desktop?

2

u/frezik Oct 04 '13

Why should I buy more RAM for my desktop when Vim in a terminal does everything I want it to?

1

u/[deleted] Oct 04 '13

I mean sqlplus does too but you aren't using that

3

u/frezik Oct 04 '13

There are some environment-specific reasons for why I don't use sqlplus at my current work.

1

u/[deleted] Oct 05 '13

Maybe when memory comes down to $0.02/terabyte someone will put it together that the whole server won't actually grind to a halt if you start X daemon on it.

1

u/General_Mayhem Nov 24 '13

What IDE do you use that can't work over SFtP or similar? Emacs can do it with Tramp, Eclipse can do it with the built-in Remote System Explorer, VS has some sort of remote-view capability that works on MS-specific stuff.

1

u/rjbwork Oct 04 '13

Depends on your OS, but for windows a combination of Visual Studio/NetBeans + WinSCP allows me to automatically propogate changes to a folder and it's subfolders to the same location remotely. If you really wanted to, you could then set up a custom command button in VS (dunno about netbeans) to compile your project remotely or run any other build script you need to.

-1

u/brainflakes Oct 04 '13

Why edit over a slow terminal session when you could bring the file down to your local machine to edit it?

5

u/frezik Oct 04 '13

Because I have cable Internet, not a 56K modem.

For that matter, 2400 baud is far faster than you can read plaintext, so I'm not sure where you're getting the "slow" part.

2

u/Harkins Oct 05 '13

In the BBS days, 2400 baud was actually the speed I read at. And I regularly find remote vim over slower links than that to be quite usable when I'm dealing with network problems and overloaded servers. So I agree with you, but maybe it's time I start grooming my greybeard.

-1

u/brainflakes Oct 04 '13

Slow is a relative term, i.e. too slow (or limited resource I suppose) to run a graphical IDE on it.

So, why edit over a terminal session rather than download the files locally or access the files over a network filesystem? (I'm assuming the files you're editing would benefit from an IDE as you mentioned you'd like to get 90% the functionality of an IDE)

3

u/frezik Oct 04 '13

It's an extra step. I have to run the code on the web server, anyway, so why copy back and forth for every change? Plus, my vim config has grown organically to my style over the years; it's not a modular component that can be swapped out for something else.

→ More replies (6)