r/linux_programming • u/coldfire334 • Feb 11 '21
Is it okay to use nano for C?
Hello, I am new to bash scripting and C programming. I am taking a course in school where I have to program in C and also do shell scripting. I like using nano over anything else for bash scripting because of how easy it is. Vim is just too confusing for me right now. My question is, can I just use nano for C as well? Would it give me any problems once the code starts to get large and complicated?
Thanks
5
Upvotes
10
u/javajunkie314 Feb 11 '21
Use anything you like. Flip bits on the hard drive manually if you like. The editor you use is a personal choice (or possibly an employer choice in the future).
The most important thing is to be productive in the editor you choose. That may involve changing editors (e.g., to Vim or CLion) and being less productive for a while, with the reward of being more productive in the future.
Nano is (as far as I know) a simple text editor. That's all you need for C, and really for most languages. What a more powerful editor will give you are features like syntax highlighting (automatically coloring parts of the code based on their meaning), code-completion (suggesting the next piece of code based on what you have so far), integrated complier (automatically building your code and marking errors in-line), navigation (opening related code by click or keystroke), and a lot more.
You don't need any of this to write simple C programs. There is value in doing it "the hard way" at first, so you understand what the more powerful editors are doing behind the scenes. But I will say I would not want to write a project of any considerable size without a "real" editor, my personal choice being Vim.
2
u/live_free_or_try Feb 11 '21
There’s so much to learn I wouldn’t focus on your editor for now. Using an ide as you get comfortable can be good for speed of learning. As you go on try new things but if you do too many things at once there are diminishing returns. Do what gets you excited!
2
u/feldomatic Feb 11 '21
It's perfectly fine to use nano for anything.
It's just better to use almost anything else (once you know how to use it)
Except Emacs, go ahead, fight me on that :P
0
u/jbtwaalf Feb 11 '21
I would actually not recommend that. Especially if you're just learning c, your IDE can be a great friend.
1
u/CannonFodder64 Feb 11 '21
Look into vimtutor. My understanding is it’s always included anywhere you have vim installed. It’s a great hands on way to get comfortable with the basics
1
u/[deleted] Feb 11 '21
Get familiar with Nano, but try switching to Vim or Neovim as soon as you can.
0
u/[deleted] Feb 11 '21
[deleted] — view deleted comment