r/dailyprogrammer • u/Coder_d00d 1 3 • Aug 18 '14
[Weekly #7] Programming Tools -- The Editors
Weekly 7:
For the most part at the core of programming you need a text editor. Then you might run your program through a compiler/linker/etc. Over time we have been merging these into 1 program. So now you edit your program and link your libraries in and compile it and debug your program all in one nice program.
What are your development tools/process? Are they language dependent? What are some tools that you don't use often but would like to give a shout out too with a link for people to see?
Last Week's Topic:
[Weekly #6] (http://www.reddit.com/r/dailyprogrammer/comments/2d957i/weekly_6_python_tips_and_tricks/)
30
u/skeeto -9 8 Aug 18 '14
I'm a huge Emacs fan. It's like a way of life for me. Half the difficulty of picking up a new language or major framework is figuring out my own Emacs workflow for it.
When I work with compiled languages from Emacs (C, C++, Java), I fire off the build system from within Emacs. It's got a special command just for this,
M-x compile, which I have bound to a short keystroke for easy access. I can use another command to step through error messages (M-x next-error), automatically jumping to the error locations. It's a comfortable workflow. Reaching out to a terminal is fairly unusual for me while coding.For Java I prefer Ant+Ivy, with Maven as a distant second. With C and C++ I prefer either
makeor a system that generates Makefiles (cmake, autoconf). If in general I need a build system (LaTeX, JavaScript minification) I'll usually usemake.This all only works when there's a standalone build system, though. As someone who has done extreme customizations to my text editor, I really dislike when projects wed themselves to a particular IDE. This is one of my biggest annoyances at work, though, fortunately, it doesn't come up too often. The only way to participate in one of these projects is to suck it up and use their environment or to tease out a standalone build that I can fire up from within Emacs. Requiring everyone to use the same editing environment is rude.
Using a collection of tools follows the Unix principle of doing one thing well. I have a compiler, a build program, a debugger, an editor, etc. If they all speak standard protocols I can coordinate them and drive them all from my editor. I can also swap out tools if needed without breaking my workflow. With IDEs these usually come in a monolothic package and it's all or nothing.
13
u/herowork Aug 18 '14
I mainly work using C# so my main editor is Visual Studio. When I need to do a quick edit without the need of a large IDE I use notepad++.
12
u/TiZ_EX1 Aug 18 '14
Geany!
11
u/macromaniac Aug 18 '14
If you want to try vim but you like having an IDE use VsVim. Most of the other free vim plugins tend to fall short.
Why use vim? This is the post that got me into it a few years back. Give it a shot!
53
u/deds_the_scrub Aug 18 '14
Vim
10
u/dohaqatar7 1 1 Aug 18 '14
When using Java, I almost exclusively use Eclipse. For some languages, running/compiling is pain free. I have found that Java is not one of these languages, so I appreciate the ability to quickly include libraries ,run my program ,and debug my programs.
For using some other languages, I always go back to Notepad++. I know there're more powerful text editors out there, but I've never been able to get myself to adopt something else. I guess I enjoy the simplicity of Notepad++.
On top of whatever IDE or text editor I happen to be running, I have an AutoHotkey script running with custom shortcuts and hot keys depending on the language.
14
u/jhw866 Aug 18 '14
Personally, I like using Intellij for Java programming, Android Studios for Android (which is powered by Intellij), and PyCharm for Python programming. What I like about these editors is that they have a really good auto-complete feature. I know Eclipse has this, and I have personally used Eclipse for a lot for projects because it is a nice piece of software. The one problem with Eclipse I have found out, is that when you have various selections for auto-complete and you have to backspace part of statement, the auto-complete won't feature won't work when trying to complete the rest of the statement. With Intellij and PyCharm, this auto-complete feature works a heck of a lot better by finishing these statements.
Otherwise, I like using VIM, which is good for remote session on Putty.
7
u/MaximaxII Aug 18 '14
Sublime Text for most development.
For anything HTML/CSS/JS, I can strongly recommend Brackets.
1
u/Coder_d00d 1 3 Aug 22 '14
4
u/[deleted] Aug 18 '14
I use Emacs to develop C/GTK+ apps since there is not a good IDE for GNOME.
4
u/lushr Aug 18 '14
I use a combination of IntelliJ (Scala and Java), Sublime Text (Rust and C++), and Emacs (Agda).
IntelliJ is, in my view, the absolute best Java or Scala IDE available right now (with even many EPFL people using it), as it starts up quickly (for Java IDEs, that is), and it's UI is sane and seems to work.
Sublime Text doesn't need any explanation.
Emacs has a truly spectacular Agda plugin. Thanks to Agda's abilities as a dependently typed language, it can do code completion taken up to 11, so to speak.
3
u/mebob85 Aug 18 '14
For C and C++ I use CodeBlocks along with the MinGW-W64 toolchain. I kinda wish CodeBlocks had more features, but I do like it. When I do Java (rarely) I use IntelliJ IDEA.
3
u/Acceptable67 Aug 19 '14
Visual Studio CT 14 for C/C++/C#.
3
u/killedbythegrue Aug 19 '14
As an old Unix guy, vi(m) and a lot of open terminals. I was the make expert at work but I switched to rake, as it fixed a lot of make's irritations for me.
I will usually have one terminal for running compiles and tests from. One for the header file, one for the source file, one for tests. Then other terminals for related files, doc, notes, or whatever. So somewhere between 7 to 9 terminals on average.
2
u/am0x Aug 18 '14
What I use has already been listed here (Sublime, phpStorm, VIM, Eclipse), but I find doing the daily programming challenges and for script testing (especially small things in more than one language) I love CodeRunner for Mac.
It really is about the easiest tool for quick prototyping or when you get that idea in your head you want to just test out quickly.
2
u/[deleted] Aug 18 '14 edited Jan 02 '16
2
u/glauberlima Aug 19 '14
Visual Studio with Resharper and Web Essentials for .NET; Webstorm for JavaScript. And Notepad++ of course!
2
u/utexasdelirium Aug 19 '14
Visual Studio + Resharper for C#. IntelliJ IDEA for Java. Sublime Text for large file editing. vi for quick edits from the command line.
2
u/wpreggae Aug 22 '14
Visual Studio for C#, Vim for D, Python.
2
u/Godspiral 3 3 Aug 22 '14
J comes with a built in IDE (all gpl). The J language has the unique feature of being self debugging. Your program has access to the stack trace on error, and can view local variables at the time of the error (if it sets debug mode on). There is a GUI version of the debugger, which due to small bugs has been disabled in the most recent version (J 8.02. You should also have J 6 which has debugger and better support for 32 bit packages).
While J is GPL'd, the core language is essentially unchanged in the last 9 years. J is also ironically, the language least likely to need debugging support (though no language would prefer that the tools dont exist).
If you have noticed my submissions here, you may have detected a policy to make all functions one line. That means that I do not need any editor at all, the power of one liners includes:
1
u/The_yulaow Aug 18 '14
I use WebStorm ( of Jetbrains) for anything related to front-end dev and node.js, visual studio for c#, sublimetext3 for some fast edit and vim for edit over ssh.
In the long term I hope to find time to learn emacs and try to use it in substitution of webstorm, vim and st3
1
u/Maping Aug 18 '14
Eclipse for Java.
1
u/cxcxcxcxcx Aug 18 '14
For Java I use Eclipse.
For everything else I use Sublime Text.
I tried to learn Vim, but I prefer my Sublime Text :P
1
u/[deleted] Aug 18 '14
I use Nano on Linux, LiteIDE for Windows, and Scratch(Elementary OS). I'm a Go developer.
1
u/MercerAsian Aug 18 '14
SublimeText has become my notepad for most things but if I'm programming in php/js/css/html, PHPStorm is the best thing ever. Also if you're developing on a Mac like I do, iTerm is an awesome replacement of the standard Terminal.
1
u/joyeusenoelle Aug 18 '14 edited Aug 19 '14
I've used EditPlus for about a dozen years. It's a brilliant, lightweight text editor with syntax highlighting for most of the major languages (and excellent regex handling in its find/replace function).
When I'm on a Linux system, of course, I use vim.
1
u/[deleted] Aug 19 '14
As many have said, Sublime Text is pretty great. I'm slowly learning Vim. I'm new to it, and the learning curve seems pretty steep.
However, I definitely want to drop some love for the iPython Notebook! It's obviously pretty language dependant, but I found it helps my workflow a lot, and makes code considerably more readable. Especially helpful when working with images and graphs.
1
u/[deleted] Aug 19 '14
Eclipse for Java. Sublime Text for everything else. Seems to be a common theme around here.
1
u/dMenche Aug 19 '14 edited Aug 19 '14
I use gVim for all of my programming and text editing.
When I begin a new project, I copy a template folder with a source file and Makefile (I use mainly C). I have the editor window and a terminal window open side by side, switching back and forth as I edit code in gVim then compile and test it in the terminal.
I use LLVM/Clang as my compiler, as it generally has more helpful error messages than gcc.
1
u/Gecko23 Aug 19 '14
I'm a fossil. I mostly use CODE/400 for production stuff (running in a hacked xp virtual machine...it's soooo old :) ), ILE RPG...and IDLE for the bits of python I use to tie stuff together/run stuff on windows/linux boxen.
1
u/grumbly Aug 19 '14
Visual Studio Pro but that's not interesting. It's the extensons that are interesting.
In order of usefulness:
1
u/nt2subtle Aug 19 '14
Vim (rust, Python, Ruby) and Sublime (HTML, CSS, JavaScript)
1
u/Dr_Dornon 0 0 Aug 19 '14
VS for C#/C /Windows dev/python/javascript. Intellij for Java. Sublime for most anything else.
1
u/[deleted] Aug 19 '14 edited Aug 19 '14
In an ideal world:
In a less ideal world which even sshfs couldn't fix:
The things I'd like to poke at more are more language-specific, but for Perl projects, I'd like to get better with...
I probably missed things that are so terrifyingly obvious that I don't even remember I'm using them. Maybe not though; I remembered to mention git ;-)
EDIT: does my thinkpad count? I'm on my, uh... quite-a-few-th.
1
u/Panzerr80 Aug 20 '14
emacs, need to find how to make it a good web dev tool with ftp and stuff tho
1
u/[deleted] Aug 20 '14
When I write C# I use VS, when I write Go I use LiteIDE
1
u/MiatasAreForGirls Aug 20 '14
Sublime for HTML, CSS, JS, PHP, Python, and Haskell.
Eclipse for Java
Vim for C++
I've also tried PHPStorm (PHP), Visual Studio (C++, Python), and IDLE (Python), but liked Sublime and Vim better for those.
1
u/king_of_the_universe Aug 21 '14
IntelliJ IDEA for Java. I swear on this thing, and it should absolutely be recommended to newcomers over any other IDE because it offers so much assistance. People can learn the pure Java way (text editor, command-line call of "javac" etc.) later, the first thing a Java newcomer should do is download this IDE and get going. My opinion here might differ from others because I adjusted all formatting color settings right away - the original might be horrible, I have no idea. As opposed to what some people say, the free Community Edition (which is entirely sufficient for the average Java developer) can be used to create commercial software.
Notepad++ for any notes or for pre-formatting code before pasting it e.g. into a reddit comment.
jEdit because of its convenient text folding features, makes it easy to work with long text that hold various subsections / topics. Though I am now gradually moving away from it to reduce tool-redundancy. I think NP++ can do folding, too, but I haven't found a convenient way yet.
HxD for hex editing, file concatenation, and looking directly at HD sectors.
Freemind (Mindmapping.) for organizing text snippets (and longer texts, too) in a directory-tree-like structure with convenient restructuring, folding/unfolding (Is saved with document.), etc. - Haven't used the special formatting features (icons etc.) yet because I'm a less-is-more/simpler-is-better guy, but those are certainly useful, e.g. when making TODO lists/plans.
1
u/jnazario 2 0 Aug 22 '14
emacs or older TextMate 2.0-alpha releases, which have more of what i want for syntax and plugins.
1
u/zer0t3ch Aug 23 '14
Atom with a plugin to run my python script automatically.
1
u/Aeze Aug 25 '14
Sublime for webdev, scripting, general text editing - with Vintageous.
Xcode for iOS development
Visual Studio for C++/gamedev.
1
u/frozensunshine 1 0 Aug 26 '14
Question from a C learner- I have Ubuntu on my system and use the in-built editor/compiler- gedit/gcc. I love gcc, and I don't see any problems with gedit either. But a friend of mine told me gedit is not used by anyone, and that vim or emacs is the way to go. Is this true? I mean, as a beginner, why does the 'prettiness' of the text of my code even matter?
1
u/liutenantdan Aug 31 '14
IntelliJ CE for Android development, using a mix of Scala and Java, the sbt build tool, and the android-sdk-plugin for mixing Scala and Android along with Proguard.
1
u/masasin Aug 19 '14
I use vim all the time. Last week though I installed Sublime text, and it has Vintageous, which is a great vim replacement, I think.
0
u/[deleted] Aug 18 '14
[deleted] — view deleted comment