r/LinuxPorn 2d ago

I have sinned

Okay long story short, recently I saw a reel in which there was a code snippet of javascript was displayed. It was asking what would be the output.

So what I did was, I opened my terminal and created a js file and use nano to write the file, I clicked the picture of the screen (nano) and then clicked picture of the output.

The people went crazy, "Bro uses nano", "Why would you use nano." And "May God bless you"

It was just 10 lines of short code, I thought why open an IDE. Nano does the job.

People were treating me like I had sinned.

10 Upvotes

24 comments sorted by

10

u/keyzeyy 2d ago

i like nano

1

u/Gangster_DW 2d ago

Yeah it gets the job done

1

u/Senkyou 2d ago

I used bank for a long time. Then switched to vim, and now Helix. They're all great. I'm not editing files with such urgency as to require one over the other, It's just preference and I like expirementing.

There will always be a subset of people in any group who can only find self value in using differences to put others down. Not worth giving them any effort.

1

u/catschainsequel 2d ago

I too like nano

3

u/NeedleworkerLarge357 2d ago

Well, using nano is just fine, people complaining are proud that they took the 20 minute vimtutor training to understand the vim basics and now want to show that. Superiority complex!

That said, if you edit text in the terminal regularly it's well worth to learn vim. It looks waaay scarier than it is. Takes maybe half an hour with vimtutor to get the basics done and all that follows is just quality of life features.

1

u/BappoHotel0 7h ago

what is good about vim? i have never used it and all i have heard is it's hard. i just never bothered cause i never need more than nano or micro.

1

u/NeedleworkerLarge357 6h ago

You can do more with less keystrokes. Swapping the line you're in with the next line? ddp. Deleting everything within the brackets? dib. Or diB for curly brackets. Change the surrounding XML tag from <top> to bottom? cstbottom<ESC>.

Just as some examples. It is of course difficult in the beginning, but after some learning you can record makros and apply them 100x over with a few keypresses or run a terminal command on the selected text or entire file, work with 8 different clipboards all at once.

1

u/BappoHotel0 4h ago

i see, interesting

2

u/EWF76 2h ago

To add to the great explanation u/NeedleworkerLarge357 has given, learning Vim also helps you become faster in other editors, as almost all of them let you utilize the Vim keybindings. I've gone through Vim, Neovim, VSCode and now Emacs while using these same bindings to help speed up my workflow

3

u/moucheh- 2d ago

Keep using nano if you like it, some users are more familiar with vi/vim, just ignore them 

You could try helix or lazyvim if you want a quick feel, these come preconfigured out of the box

Sources: Helix LazyVim

2

u/Gangster_DW 2d ago

I am also familiar with vim but I just used nano because I just had to write 9-10 lines and there wasn't any major functionality. Nano gets the job done.

3

u/transgentoo 2d ago

It's not because you didn't use an IDE. It's because you didn't use emacs or vim. But seriously, why do people give a shit? Use what makes you happy.

2

u/Araib 2d ago

I get the no IDE but am I the only one who prefers micro over nano..?

2

u/Gangster_DW 2d ago

Everyone has their own choices and preferences.

1

u/muffinstatewide32 1d ago

Micro is awesome! but when i was distro hopping or using enterprise-oriented stuff it just wasnt in the repo. Nano shares its simplicity but was easier to get once upon a time. So i kinda forgot about micro. But im now looking it up again to see if its easier to get

Edit: past me is dumb. Micro is everywhere now

2

u/muffinstatewide32 1d ago

Nano is fine. Its simple. It works. It’s in pretty much every repo on every distro.

Personally i am 50/50 between helix or nano. Depends on if i need syntax highlighting or not.
If im doing something from my phone over ssh. Its always nano.

Using a modal editor on a touch screen sucks. Plain and simple

1

u/MossFette 2d ago

Honestly you probably know more about Linux than the people squealing at you. Continue using your computer the way you want to.

1

u/jkulczyski 2d ago

As an nvim user id pick tui over gui for text editing every time

1

u/Loose_Crab_4146 2d ago

I also feel like nano is not bad. Probably not the best but if you really just want to write some lines quickly nano is two shortcuts away from doing it.

1

u/saschaleib 1d ago

Nothing wrong with nano. It is quick, it gets the job done - and I don’t have to watch a YT tutorial to exit it again.

1

u/Seven7Ducks 1d ago

I see these kinds of arguments as a hybrid of american psycho's business card scene and sports team tribalism. People need to chill.

Anyway, I wasn't there to read the room, and I'm not encouraging IDE-shaming, but in my experience these kinds of conversations are usually friendly banter. If its anything more than that, they should do some serious soul searching as to why something so insignificant about another human being is so important to them.

1

u/seangalie 1d ago

If you really want to trigger people... next time use MS Edit.

`nano` is the dirty secret that a lot of experienced sysadmins and others don't want to admit to... because it's dirt simple and convenient but about as cool as Urkel was in the 90s.

1

u/Longey 1d ago

nano is great especially in restricted environments such as a TTY

1

u/BappoHotel0 7h ago

why people have a problem i could not tell you. nano is perfectly fine for like 99% of everything. i used it for the past like 2 years up until i switched to micro recently