Thread: learn to develop C on linux

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    Quote Originally Posted by runeveryday View Post
    ,thanks for all you replies.what is the best editor for writeing C code on linux, i am only want to make my C ability perfect .for the moment, don't learn linux OS
    Well, your inability to use the OS is going to severely cramp your ability to program on it. You may find some tools (eg, an IDE) which will "replace" some of the immediate and inescapable needs for this, but then you've added a heavy layer of abstraction, learning the tool will probably take you just as long, and you will be stuck needing that tool to do things for you (which it will not save any time or effort, it will just require a different kind of effort) rather than knowing how to do them yourself.

    Vis, text editors, just choose a basic GUI editor like "gedit" or "kate" for now. You don't have any experience coding yet, so it is absurd to start looking around for what will be the best thing for you for all time -- you have no way to judge for yourself. Google "linux GUI text editor" and find one you like. They're simple to use and later on, when you understand in more concrete terms what programming involves, you can start to think about more complex tools. So I would avoid stuff like "vim" or "emacs" initially, just like I would avoid an IDE.

    Otherwise you are like the rich guy who shows up at that ski shop and says, "Sell me the best equipment, I need to learn to ski". It doesn't matter how much you spend at this point -- you will just end up with a bunch of veterans showing up trying to sell you what they use, which is very likely inappropriate and may even lead to additional difficulties. You're a beginner, be happy about it, but don't believe for a second than you can just skip the fundamentals because if someone tells you what "the best editor for writing C code" is this will help make your "C ability perfect". That means doing some work and learning, not shopping around for (even more) equipment* you can't use.

    This is not something you need to waste more than 5 minutes thinking about. If I were you, I'd just start up gedit and get coding.

    * by "even more" I refer to the fact that you said you were using linux because you heard it's a good platform to learn C on, and it is. But now you want to skip learning the basics of the OS that you already chose and installed so you can chose and install even more software -- that's an endless silly game -- you haven't bothered with what you already have, start there before you move on. Anything else is just foolishness. I'm sorry, but programming takes time, patience, and effort. Get used to it. There will be plenty of time to work on your wardrobe later.
    Last edited by MK27; 03-22-2010 at 07:54 AM.
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. installing linux for the first time
    By Micko in forum Tech Board
    Replies: 9
    Last Post: 12-06-2004, 05:15 AM
  2. dual os with linux?
    By jverkoey in forum A Brief History of Cprogramming.com
    Replies: 19
    Last Post: 09-09-2004, 10:33 PM
  3. Linux for Windows!
    By Strut in forum Linux Programming
    Replies: 2
    Last Post: 12-25-2002, 11:36 AM
  4. Linux? Windows Xp?
    By VooDoo in forum Linux Programming
    Replies: 15
    Last Post: 07-31-2002, 08:18 AM
  5. linux vs linux?
    By Dreamerv3 in forum Linux Programming
    Replies: 5
    Last Post: 01-22-2002, 09:39 AM