Results 1 to 10 of 10

Thread: Ubuntu programming - which should i choose?

  1. #1
    Join Date
    Aug 2013
    Beans
    100

    Ubuntu programming - which should i choose?

    I want to start developing applications and games for Ubuntu, but I hit a bit of a roadblock because I don't know if I should use c++ or python. I understand both languages work in Ubuntu (please correct me if I'm wrong) and I've taken a look at both languages. But I don't know which one to use, I'm not smart enough to learn both at the same time so I was thinking python as it is easier to learn, but I wanted professional option because I don't want to make a mistake before I even start. If anyone can help me out I'd appreciate it a lot

  2. #2
    Join Date
    Jul 2013
    Location
    Alternia
    Beans
    140
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Ubuntu programming - which should i choose?

    Take a look here:
    http://developer.ubuntu.com/get-started/
    Canonical gives good resources for developing apps on their platforms, both Mobile and Deskop. Also since Ubunu is moving in the convergence direction, the lessons learned here means easier app intergration in the future with 14.04 and 14.10.
    Last edited by SweetAurora; August 24th, 2013 at 07:37 PM. Reason: typo
    You are such a sweetheart b-b-baby!

  3. #3
    Join Date
    Aug 2013
    Beans
    100

    Re: Ubuntu programming - which should i choose?

    Quote Originally Posted by SweetAurora View Post
    Take a look here:
    http://developer.ubuntu.com/get-started/
    Canonical gives good resources for developing apps on their platforms, both Mobile and Deskop. Also since Ubunu is moving in the convergence direction, the lessons learned here means easier app intergration in the future with 14.04 and 14.10.
    I just installed that sdk and noticed it says its for phone apps?

  4. #4
    Join Date
    May 2009
    Location
    relative
    Beans
    365
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Ubuntu programming - which should i choose?

    Yes, looks like that one is for phone apps. You have to decide what you want to achieve, games for all platforms, games for PC. First of all, are you sure that you want to focus on developing games?

    I personally prefer python over c++, I'm doing full time Java but enjoying python every time I utilize it for a home project. It's a "modern" language and I think you'll have fun learning it.
    Last edited by akoskm; August 25th, 2013 at 08:52 AM.

  5. #5
    Join Date
    Aug 2013
    Beans
    100

    Re: Ubuntu programming - which should i choose?

    Quote Originally Posted by akoskm View Post
    Yes, looks like that one is for phone apps. You have to decide what you want to achieve, games for all platforms, games for PC. First of all, are you sure that you want to focus on developing games?

    I personally prefer python over c++, I'm doing full time Java but enjoying python every time I utilize it for a home project. It's a "modern" language and I think you'll have fun learning it.
    Yes I want to develop games for the Ubuntu operating system on PC. That is the goal I wish the achieve. However I won't only focus on games, that's just my main focus.

  6. #6
    hakermania's Avatar
    hakermania is offline Τώρα ξέρεις τι γράφω εδώ!
    Join Date
    Aug 2009
    Location
    Greece
    Beans
    1,705
    Distro
    Ubuntu Development Release

    Re: Ubuntu programming - which should i choose?

    Quote Originally Posted by josh17 View Post
    Yes I want to develop games for the Ubuntu operating system on PC. That is the goal I wish the achieve. However I won't only focus on games, that's just my main focus.
    As you are inexperienced right now I don't think that you should start developing games immediately.

    I started learning programming through C, which is considered a rather difficult language. If I knew, I would rather have started with Python as well.

    Python is a very good language for beginners. I've also worked with the pygame module and it keeps things simple in game development.

    Also, as it is a script language, it can be developed very quickly because you don't need to wait for compilations to finish.

    But, my personal opinion as for python, is that it isn't a very quick language. It is good for simple programs but for something bigger I think that you should use some other language.

    For example, take a look at the software-center:

    Code:
    file /usr/share/software-center/software-center
    It is written in python, and I find it to be very unresponsive and slow.

    Summing up, Python is a good language to start and you may as well build programs and simple 2D games using pygame (I've built a cat run & jump game for college), but you should try something more efficient (and difficult) if you are planning to build a big program with lots of options etc.

    Also, as you will focus on gaming, I'd recommend waiting for the Unity3D game engine to come to Linux. It is nice
    Last edited by hakermania; August 25th, 2013 at 11:37 AM.

  7. #7
    Join Date
    Aug 2013
    Beans
    100

    Re: Ubuntu programming - which should i choose?

    I already took a look at python a while back and I feel like I'm ready to move on. The thing is I don't know which one would be more efficient on Linux. And I do plan on building bigger games (most voxel based, inspired by mine craft and cube world and the such) so if I understand your response correctly, I should use c++ if I want to build games like that and if I feel im up for it?

  8. #8
    hakermania's Avatar
    hakermania is offline Τώρα ξέρεις τι γράφω εδώ!
    Join Date
    Aug 2009
    Location
    Greece
    Beans
    1,705
    Distro
    Ubuntu Development Release

    Re: Ubuntu programming - which should i choose?

    Quote Originally Posted by josh17 View Post
    I already took a look at python a while back and I feel like I'm ready to move on. The thing is I don't know which one would be more efficient on Linux. And I do plan on building bigger games (most voxel based, inspired by mine craft and cube world and the such) so if I understand your response correctly, I should use c++ if I want to build games like that and if I feel im up for it?
    No, I wouldn't recommend C++ for games.

    As for the libraries that exist right now, I would recommend the following:

    1: For GUI programs:

    C -> If you want native look, using GTK libraries
    C++ -> if you want something quick, powerful and cross platform, which lacks the native look most of the times, using Qt libs
    Python -> It has bindings for GTK for the native look, but I wouldn't recommend for large projects

    2: For command line programs I would recommend all of Python/C/C++/Bash, and it mainly depends on where you are planning to use the program. If it is for your use, Python or Bash would fit best.

    3: For games:

    Python -> using pygame
    Blender -> using the build-in game engine system
    Unity3d -> You have to wait for it to come for linux and it is quite expensive, but it is very nice. You can program with UnityScript (Javascript's brother), C# or Boo.
    Also, take a look at this: http://ubuntuforums.org/archive/index.php/t-974144.html

    Please don't take the above for granted. They are just my personal opinion.

  9. #9
    Join Date
    Aug 2013
    Beans
    100

    Re: Ubuntu programming - which should i choose?

    Quote Originally Posted by hakermania View Post
    No, I wouldn't recommend C++ for games.

    As for the libraries that exist right now, I would recommend the following:

    1: For GUI programs:

    C -> If you want native look, using GTK libraries
    C++ -> if you want something quick, powerful and cross platform, which lacks the native look most of the times, using Qt libs
    Python -> It has bindings for GTK for the native look, but I wouldn't recommend for large projects

    2: For command line programs I would recommend all of Python/C/C++/Bash, and it mainly depends on where you are planning to use the program. If it is for your use, Python or Bash would fit best.

    3: For games:

    Python -> using pygame
    Blender -> using the build-in game engine system
    Unity3d -> You have to wait for it to come for linux and it is quite expensive, but it is very nice. You can program with UnityScript (Javascript's brother), C# or Boo.
    Also, take a look at this: http://ubuntuforums.org/archive/index.php/t-974144.html

    Please don't take the above for granted. They are just my personal opinion.
    I was thinking about using blender, I just have no idea how.

  10. #10
    Join Date
    May 2007
    Location
    Europe
    Beans
    295
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: Ubuntu programming - which should i choose?

    Hi Josh, the guide provided above by hakermania is a very sensible one, stick with it. But I feel you may be putting the cart ahead of the horses; Python can be useful introducing a beginner to OO programming. There are nice tutorials out there that I'd advise you to follow before diving further into the sort of programming you aim at.

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
  •