Page 1 of 4 123 ... LastLast
Results 1 to 10 of 35

Thread: Best Coding Language for programming Linux apps

  1. #1
    Join Date
    Jan 2012
    Beans
    9

    Best Coding Language for programming Linux apps

    I'm in the process of teaching myself C# using a For Dummies book. As far as linux is concerned, am I on the right track? Is there a simpler language I should learn first? I'm completely green, so recommendations, tips, software, any and all advice is helpful!

    I want to be able to write my own terminal-based software, if that helps you in your response.

  2. #2
    Join Date
    Jun 2007
    Location
    Porirua, New Zealand
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Best Coding Language for programming Linux apps

    Thread moved to Programming Talk.
    Forum DOs and DON'Ts
    Never assume that information you find using a search engine is up-to-date.

  3. #3
    Join Date
    May 2010
    Beans
    21

    Re: Best Coding Language for programming Linux apps

    It completely depends on what you want to do. I've never had a reason to learn C#, all I know about it is that it was made by Microsoft.

    C++ is great if you want speed. I often use it with curses to make Dwarf Fortress like games (that is, they only use ascii art in the terminal. This is also how you would make something like vi). You can do just about anything you want with C/C++. Literally anything if you do some assembly and intermediate language stuff to what the compiler spits out. It's appropriate for 2D interfaces with libraries like SDL, or 3D using something like Ogre.

    Python is great if you want an easy language, or if you want to make 3D games using Blender. It's a great language both for learning about programming and for making software. If you want to automate system stuff, do complicated operations on lots of text files, etc., you should learn bash scripting.
    Last edited by howefield; February 6th, 2012 at 01:27 AM. Reason: removed the rubbish.

  4. #4
    Join Date
    May 2007
    Location
    Leeds, UK
    Beans
    1,664
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: Best Coding Language for programming Linux apps

    The most common programming languages for Ubuntu and GNU/Linux generally are C and Python. Both are good general purpose languages for terminal-based software. C lends itself better to low-level "system" programming. Python is a higher-level object-oriented language and coding can be easier and more productive.

    I'd suggest you try both of these two and also learn some basic Bash scripting, which often comes in handy.

  5. #5
    Join Date
    Jan 2012
    Beans
    9

    Re: Best Coding Language for programming Linux apps

    Much appreciated! Your insight is quite helpful, all of you.

  6. #6
    Join Date
    Jun 2007
    Location
    Canada
    Beans
    368
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Best Coding Language for programming Linux apps

    I'll also mention that C++ gets some pretty heavy use as well. It's a little bit more flexible than C IMO (mainly it lets you program with classes, which can be a huge time-saver for certain types of program), but it also offers you that same low-level access that C has.

    C# does get used for some Linux programs. Mono, the open-source version of Microsoft's .NET framework, is reasonably stable, and gets used in programs like Gnome-Do and Banshee. So if you want to stick with C# you can. It's nowhere near as common in the Linux world as Python, C, or C++, but it's out there.

    If you're very comfortable with one language (and its libraries) then you might choose to use that language for most tasks, regardless of what language the rest of the world might consider "best-suited" for the task.

    If you're writing GUI application then C++, Python, or C# might be the best bets. If it's some low-level kernel module, C is probably the way to go.

    Ultimately the choice of "what's the best language" depends more on you, the programmer, and what the program you're writing is.
    GCS/O d+(-@) s: a-->? C(++) UL P+ L+++@ E@
    W++$ N++ !o K++ w(++) !O M(-) !V PS+(++)
    PE-() Y+ PGP++ t++(+++@)* 5++ X++@ R+++@
    tv+ b++(+++) DI++ D+ G+ e++>++++ h- r y?

  7. #7
    Join Date
    Sep 2011
    Location
    UK
    Beans
    76
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Best Coding Language for programming Linux apps

    If you're only interested in console apps, then I'd recommend starting with C.

    If you want to do any GUI apps, then C++ may be a better choice, but you can always learn C++ after you've learnt C as the basics are the same.

    C# is typically used on Microsoft systems, but again has its roots in C so if you learn C, then you should be able to pick up C# easily. On the other hand, if you already know C# you may find that C seems a bit lacking in certain features.

  8. #8
    Join Date
    Jan 2012
    Beans
    18

    Re: Best Coding Language for programming Linux apps

    Codeblocks is also a great IDE for C++ programming related projects and easy to setup. It's also compatible on both Linux and Windows so your programs will be portable. You'll want to download and make sure you have a installed g++ or gcc, the GNU versions. Everything else can be done in BASH, which is fairly simple and efficient.

  9. #9
    Join Date
    Oct 2006
    Location
    /dev/null
    Beans
    1,574
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Best Coding Language for programming Linux apps

    I'm a big fan of C#, it's definitely my language of choice. The MonoDevelop IDE gives you what you need to develop full GUI apps with C# like Tomboy or Banshee - or games like Spacechem
    Understanding is a three-edged sword: Your side, their side, and the truth

  10. #10
    Join Date
    Dec 2007
    Location
    Birmingham, UK
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Best Coding Language for programming Linux apps

    I also personally prefer C#, however that's my preference coming from Windows using .NET and having a large knowledge of different library's that are available having done the research already

Page 1 of 4 123 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •