Live data from Hacker News

The power of the command-line as a programming environment

pindexis.github.io

31–35 of 35 posts

Re: The power of the command-line as a programming environment

#31

OK, wonderful. What text editor do you use in this environment? vim? emacs? ed? Where do you run your command line? A command line can run in a dedicated terminal emulator, or it can run...inside of an IDE, or inside of emacs, or tmux. How do you do compile/edit cycles--vim quickfix? Just run the compiler in a separate window and manually move to each error? The post mentions composition, extensibility, and keyboard…

I can't speak for the poster, but I use vim quickfix, often populated from the shell. alias cbuf='vim - -c "cbuf!"' allows for things like `git grep -n frobnitz | cbuf`.

Re: The power of the command-line as a programming environment

#32

Earlier quoted context omitted.

Fair point. But I'd say the dependency management in maven is actually more of a hassle than it's worth. For me, I understand jars in a lib directory well enough. Dependency management can become complicated pretty fast (e.g. version resolution).

You still need version resolution for jars in a lib directory, whether Maven does it or you do it. Maven just automates the process.

I guess I never found manual dependency resolution to be that big of a problem.

Re: The power of the command-line as a programming environment

#33
post #5
post #3

I find that after I discovered tmux, I was able to use the command line full-time much more easily. Now everything I do is command-line-unix-ey, from my coding (with Emacs) to my web browser (Elinks). It's kind of a pain in the butt to learn, but I feel that it helps me stay focused on my work; there are a lot less distractions in the command-line world.

I like the idea of text-mode browsing, but I find the translation of CSS causes practical problems whether its elinks link lynx etc. For example, Hacker News nested comments are displayed as being on one level. There is a hack to fix this, but per-site hacks is not a usable way to browse the web.

>For example, Hacker News nested comments are displayed as being on one level.

Interesting. I just tried reading HN on Firefox Mobile recently, and noticed that the comments all show as on one level, not nested. But show okay in mobile Chrome.

Re: The power of the command-line as a programming environment

#34
post #8

My IDE is full screen emacs, with one emacs window running a shell for when I just want a command line. This works great on MacOSX and on Linux. It gives me integrated debugging, code navigation (with cscope-mode), code completion, git support and more. The downside is the steep learning curve, but I climbed that years ago and haven't looked back.

I have the same configuration... the only drawback is that its very difficult to do any real work on Java with emacs...

I'm guessing the main problem is the vast list of identifiers that you need to think about?

Re: The power of the command-line as a programming environment

#35

Earlier quoted context omitted.

You still need version resolution for jars in a lib directory, whether Maven does it or you do it. Maven just automates the process.

I guess I never found manual dependency resolution to be that big of a problem.

I've never found automatic dependency resolution to be that big of a problem.

But if I had, I'm sure that manual resolution wouldn't have been any easier or more maintainable.

Post reply on HN