Open Side Menu Go to the Top
Register
What's your Editor of choice? What's your Editor of choice?

11-27-2015 , 07:11 AM
Quote:
Originally Posted by :::grimReaper:::
For C/C++: vim. Nothing better than going 100% mouseless.

For Java: Eclipse. I don't want to deal with typing up a handful of long imports and package names. In fact, having to use an IDE is about 35% of the reason I avoid java!
What is the other 65% of the reason you avoid Java consist of?
What's your Editor of choice? Quote
11-27-2015 , 12:39 PM
How do imports vastly differ from includes?
What's your Editor of choice? Quote
11-27-2015 , 12:51 PM
Quote:
Originally Posted by Noodle Wazlib
How do imports vastly differ from includes?
Imports specify a library while includes specify a file?
What's your Editor of choice? Quote
11-27-2015 , 01:29 PM
yes, but I mean from an IDE usability standpoint. Why is vim okay for c++, but an IDE is necessary for java?

The names might be slightly longer, but it sure seems like you can get a lot more, easier, in a more secure manner thanks to asterisk imports
What's your Editor of choice? Quote
11-27-2015 , 03:02 PM
Java tends to have library creep so having lookup is essential.
What's your Editor of choice? Quote
11-27-2015 , 03:15 PM
Quote:
Originally Posted by Noodle Wazlib
yes, but I mean from an IDE usability standpoint. Why is vim okay for c++, but an IDE is necessary for java?

The names might be slightly longer, but it sure seems like you can get a lot more, easier, in a more secure manner thanks to asterisk imports
I think he means typing them out. Can't get much easier than cutting and pasting with a mouse well maybe that isn't true. His complaint is that a mouse slows things down too much. Not sure, to each his own on editors for code entry. Use what you feel you are the most productive with. I have used text based editors in the past. I would use them again. I am just not that motivated to learn the ins and outs of Vim as an example. That may be something I need to think about though, admittedly.
What's your Editor of choice? Quote
11-27-2015 , 07:20 PM
Quote:
Originally Posted by :::grimReaper:::
I also want to add that refactoring and catching compile time errors are much easier in Eclipse.



I'm sure you might be familiar with vim, but for anyone else reading, vim isn't an ordinary text editor like Nodepad, Notepad++ or gedit etc. It's 100% mouseless, which means it's faster. For example, if I want to delete the third word in a line, I type wwdw. Each w moves me to first character of the next word, so ww moves me the first character of the 3rd word, d prepares a delete, and the final w applies the delete to the word. Try it, it's fun. But seriously, vim is addictive and it's like playing a musical instrument. In the other text editors I mentioned, you would have to [HOLD CTRL] RIGHT RIGHT [HOLD SHIFT] RIGHT DELETE. Clearly, you applied more keystrokes, had to hold down buttons creating more stress on the fingers over the long run, and your fingers came off the home row. Anyway, I could go on how powerfully vim allows you to mangle text, e.g. switch around words/lines and navigate the document in simple keystrokes, but I think you get the point.

As far as C/C++ IDEs, I've tried QtCreator and didn't feel like I lost any value when I moved to vim. I know Visual Studio is very popular, but I prefer developing in Linux due to g++ and make. g++ is the best, up-to-date open source compiler there is, and in some of my own benchmarks even delivers comparable performance to Intel's expensive compiler. make gives total freedom over how you want to organize your project - don't quote me on this, but I believe if you want to create multiple executables using Visual Studio, you have to create subprojects. That doesn't fly with me. Also, I don't like having IDE config files in my project in my repo.

Last, I use Linux 95% of the time on my computer, so I'd hate having to reboot into a different OS every time I wanted to program, which I do a lot. Last, git, g++ and make are far superior than clunky available Windows counterparts, e.g. cygwin and git-gui.
Can't speak on Vim so much, but...

While I won't go far as to say that Emacs is up to snuff with IDEs for C# and Java, I will say that for other programming languages, Emacs is equally as good, and often better, than IDEs. I haven't seen anything from PyCharm, Ruby Mine or VS (excluding .Net) that isn't available in Emacs.

With that said, I hate using VS. The C# mode in Emacs is far superior for editing files, IMO.
What's your Editor of choice? Quote
11-27-2015 , 09:17 PM
Quote:
Originally Posted by adios
What is the other 65% of the reason you avoid Java consist of?
C++ allows more freedom:
1) free floating functions. If 50% source can be written in functions, I don't like Java forcing me to write classes and create objects everywhere.
2) Pass either by value or reference, e.g.
Code:
void f(int& x, int& y) // modify x and y
is impossible to do in java without creating a class.
3) Operator overloading
4) friend keyword

I haven't done extensive speed benchmarks between Java and C++, however, there's good reason to believe C++ should be faster than Java for several reasons:
1) C++ allows stack allocation of objects
2) C++ runs directly on hardware allowing for cache hits
3) C++ doesn't have a garbage collector, rather memory handled by RAII, e.g. smart pointers.
4) Template specialization to optimize special cases
5) Compile-time evaluations in some cases
6) Data structures aren't immediately initialized unless you say so
7) No bounds checking

Last edited by :::grimReaper:::; 11-27-2015 at 09:22 PM.
What's your Editor of choice? Quote
11-27-2015 , 09:18 PM
Quote:
Originally Posted by Noodle Wazlib
How do imports vastly differ from includes?
For example:

Code:
import java.util.ArrayList;
vs.
Code:
#include <vector>
or

Code:
import [edu/org].[organization].[project name].[package].[sub package...].MyClass;
vs.
Code:
#include "my_class.h"
At least the projects I've worked on, Java source tends to be organized in hierarchical packages, which isn't a bad thing, however, it creates long imports and I rather have an IDE manage this task for me.
What's your Editor of choice? Quote
11-27-2015 , 09:18 PM
Quote:
Originally Posted by adios
I think he means typing them out. Can't get much easier than cutting and pasting with a mouse well maybe that isn't true. His complaint is that a mouse slows things down too much. Not sure, to each his own on editors for code entry. Use what you feel you are the most productive with. I have used text based editors in the past. I would use them again. I am just not that motivated to learn the ins and outs of Vim as an example. That may be something I need to think about though, admittedly.
Yes, the mouse does destroy momentum, and whatever you'd do with a mouse is easier in vim. But also, mouseless is a lifestyle. All of my commonly used programs are opened via aliases I call from the terminal, and even browsing chrom(ium) is 50% mouseless using the vimium extension and keyboardr as a search engine.

Learning vim isn't as intimidating as it may seem. It took me about 1-2 weeks of frustration, muscle memory took care of the rest.
What's your Editor of choice? Quote
11-27-2015 , 09:19 PM
Quote:
Originally Posted by daveT
Can't speak on Vim so much, but...

While I won't go far as to say that Emacs is up to snuff with IDEs for C# and Java, I will say that for other programming languages, Emacs is equally as good, and often better, than IDEs. I haven't seen anything from PyCharm, Ruby Mine or VS (excluding .Net) that isn't available in Emacs.

With that said, I hate using VS. The C# mode in Emacs is far superior for editing files, IMO.
Interesting. Haven't tried emacs, though I've worked on one C# project in VS and like Java, I would prefer VS over vim for a C# program (though it's a none issue because I hardly ever do anything in C#).
What's your Editor of choice? Quote
11-28-2015 , 11:30 PM
Quote:
Originally Posted by :::grimReaper:::
C++ allows more freedom:
1) free floating functions. If 50% source can be written in functions, I don't like Java forcing me to write classes and create objects everywhere.
2) Pass either by value or reference, e.g.
Code:
void f(int& x, int& y) // modify x and y
is impossible to do in java without creating a class.
3) Operator overloading
4) friend keyword

I haven't done extensive speed benchmarks between Java and C++, however, there's good reason to believe C++ should be faster than Java for several reasons:
1) C++ allows stack allocation of objects
2) C++ runs directly on hardware allowing for cache hits
3) C++ doesn't have a garbage collector, rather memory handled by RAII, e.g. smart pointers.
4) Template specialization to optimize special cases
5) Compile-time evaluations in some cases
6) Data structures aren't immediately initialized unless you say so
7) No bounds checking
Good post, interesting.
What's your Editor of choice? Quote
11-30-2015 , 08:23 AM
Quote:
Originally Posted by Noodle Wazlib
How do imports vastly differ from includes?
In Objective-C the import basically eliminates the need for a header guard.

http://stackoverflow.com/questions/4...in-objective-c
What's your Editor of choice? Quote
11-30-2015 , 03:02 PM
Quote:
Originally Posted by Johnny Douglas
In Objective-C the import basically eliminates the need for a header guard.

http://stackoverflow.com/questions/4...in-objective-c
C++.

#pragma once
What's your Editor of choice? Quote
12-01-2015 , 12:30 AM
i opened it and immediately had a panic attack

Last edited by Loki; 12-01-2015 at 12:30 AM. Reason: but at least I figured out how to close it, which is more than I can say for the time I used vim
What's your Editor of choice? Quote
12-01-2015 , 01:10 AM
Quote:
Originally Posted by Noodle Wazlib
i opened it and immediately had a panic attack
vim or the thread lol?
What's your Editor of choice? Quote
12-01-2015 , 06:09 AM
I've been using vim for the last 10 years. Mostly cause I can't figure out how to exit.
What's your Editor of choice? Quote
12-01-2015 , 12:56 PM
Quote:
Originally Posted by :::grimReaper:::
vim or the thread lol?
Both, now you mention it
What's your Editor of choice? Quote
12-01-2015 , 01:37 PM
Quote:
Originally Posted by Wolfram
I've been using vim for the last 10 years. Mostly cause I can't figure out how to exit.
Just added to our 'slack' loading messages.
What's your Editor of choice? Quote
12-01-2015 , 08:35 PM
kill -9 vim

Works every time.
What's your Editor of choice? Quote
12-01-2015 , 09:53 PM
VS for 20 years. I debug too sometimes.
What's your Editor of choice? Quote
12-02-2015 , 01:07 AM
Quote:
Originally Posted by :::grimReaper:::
That's so unfair.

It is nice little reference manual. I know just enough vi to get by, but I'm too lazy to really learn it.
What's your Editor of choice? Quote
12-21-2015 , 02:20 PM
IntelliJ idea, Eclipse if not and then Editpad pro for anything that just needs a quick hackup
What's your Editor of choice? Quote
12-22-2015 , 05:11 AM
PyCharm or some other Intellij IDE depending on the language. Sublime for the quick stuff.
What's your Editor of choice? Quote

      
m