Live data from Hacker News

GNU nano is my editor of choice

ariadne.space

11–20 of 236 posts

Re: GNU nano is my editor of choice

#12

there are far worse choices. for quick stuff, i either emacs -q or nano more or less interchangably, and in my larval stage i lived in nano (and pine!) for many years happily enough. These days, i find that my movement key memory will betray me in nano at the worst time(s), so i tend to stick with emacs -q -nw for light-and-fast stuff, but when that's annoying to obtain, i'll happily fall back and think more carefull…

  emacs --daemon
Then connect with emacsclient. You can also name the daemon which lets you have specific configurations for specific tasks. At that point, launching emacs for quick stuff is very fast.

Re: GNU nano is my editor of choice

#14
So I have a question and I'd like to understand if possible.

To me programming isn't text editing. Granted, we use text to write most code outside of say Pike but effectively most programming is working with symbols right? Like .subst is meaningless as an operation on a string but .substring(0, 1) is meaningful.

So I don't really get the advantage of such, to my mind, rudimentary text editors. At a minimum surely being given contextual information about the symbols you are working with (type, fields, methods, etc) is helpful? Perhaps there are languages or domains that are better suited? I can see that there's not much difference between an ide and editor for new languages but why do people prefer text editing and prioritize typing speed where IDEs exist? Does an editor create a sort of flow or deeper state since lack of tooling requires deeper mental context?

Re: GNU nano is my editor of choice

#15
post #5

Why is nano the favourite editor? What's the upsides and why does it stay the favourite?

It's very simple. It behaves like users would expect something like Word to behave.

Editors like Vim have a learning curve because they introduce the concept of modal editing which takes some getting used to.

Re: GNU nano is my editor of choice

#16
Quite impressive.

I actually don’t use nano though only because it’s not always there. I learned a long time to pick a narrow subset of ubiquitous tools to know really well, compose those and leave it at that. If I’m dumped in single user mode somewhere with no network, or on a system I don’t have the ability to install packages on, a usable vi implementation is always available.

Going back a couple of decades a colleague was stuck on a Solaris box because he needed pico installed and Miss root was off sick. He learned vi that day.

Incidentally I used to embarrassingly suck at vi until I completely hosed a couple of systems.

Re: GNU nano is my editor of choice

#18

So I have a question and I'd like to understand if possible. To me programming isn't text editing. Granted, we use text to write most code outside of say Pike but effectively most programming is working with symbols right? Like .subst is meaningless as an operation on a string but .substring(0, 1) is meaningful. So I don't really get the advantage of such, to my mind, rudimentary text editors. At a minimum surely bei…

It's not about the editor: it's about the combination of other tools. Simple text editors invite you to use specific tools for specific tasks that an IDE aggregates and configures for you.

An IDE is usually good enough, but for some environments, having total control of your tooling can give you big productivity boosts. And not every software depends upon lines and lines of code. Sometimes, you will write useful software that's only a couple hundred lines, but required you hundreds of hours thinking about the problem :)

Re: GNU nano is my editor of choice

#19

So I have a question and I'd like to understand if possible. To me programming isn't text editing. Granted, we use text to write most code outside of say Pike but effectively most programming is working with symbols right? Like .subst is meaningless as an operation on a string but .substring(0, 1) is meaningful. So I don't really get the advantage of such, to my mind, rudimentary text editors. At a minimum surely bei…

The advantage is you don't become dependent on an IDE. Ever seen someone who can't write anything without all the IDE aids to fill in code for them?

Re: GNU nano is my editor of choice

#20
>Hopefully this post demonstrates that nano is a quite capable editor in its own right.

This post showed how to add a slightly enhanced minibar, remove the help and add syntax highlighting. It would be more important for me how to quickly navigate text.

Post reply on HN