The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    C++

    Discussion in 'Linux Compatibility and Software' started by Thomas, Jun 3, 2008.

  1. Thomas

    Thomas McLovin

    Reputations:
    1,988
    Messages:
    5,253
    Likes Received:
    0
    Trophy Points:
    205
    Any guides on C++ on the net? And any programs available for it on linux?
     
  2. ccbr01

    ccbr01 Matlab powerhouse! NBR Reviewer

    Reputations:
    448
    Messages:
    1,700
    Likes Received:
    0
    Trophy Points:
    55
    You can use the old emacs/notepad to write the programs. Then you can use g++ to compile it. Just a easy way to get into c++ encoding.
     
  3. talin

    talin Notebook Prophet

    Reputations:
    4,694
    Messages:
    5,343
    Likes Received:
    2
    Trophy Points:
    205
    GCC for linux. :)
    Gamedev is an excellent resource for programming, and has a great community there!
    They don't just focus on game programming. ;)
     
  4. Thomas

    Thomas McLovin

    Reputations:
    1,988
    Messages:
    5,253
    Likes Received:
    0
    Trophy Points:
    205
    What about for Python, I've heard that might be better.
     
  5. pixelot

    pixelot Notebook Acolyte

    Reputations:
    3,732
    Messages:
    6,833
    Likes Received:
    0
    Trophy Points:
    205
    I've also heard that Python is very good to start on, and I've downloaded a Python program/coder/something that allows me to practice writing code, and test it out. :)
     
  6. ScifiMike12

    ScifiMike12 Drinking the good stuff

    Reputations:
    801
    Messages:
    2,529
    Likes Received:
    0
    Trophy Points:
    55
  7. Tailic

    Tailic Notebook Deity

    Reputations:
    78
    Messages:
    775
    Likes Received:
    0
    Trophy Points:
    30
    Python is a good beginners language. Linux has the compiler built in I believe.
     
  8. talin

    talin Notebook Prophet

    Reputations:
    4,694
    Messages:
    5,343
    Likes Received:
    2
    Trophy Points:
    205
    Bloodshed is only the IDE, which includes versions of MinGW (compiler), and it's for windows only.
     
  9. Ayle

    Ayle Trailblazer

    Reputations:
    877
    Messages:
    3,707
    Likes Received:
    7
    Trophy Points:
    106
    I use Anjuta but never compiled directly in it...
     
  10. ScifiMike12

    ScifiMike12 Drinking the good stuff

    Reputations:
    801
    Messages:
    2,529
    Likes Received:
    0
    Trophy Points:
    55
    D'oh. Didn't realize this was in the "Linux" section.
     
  11. Thomas

    Thomas McLovin

    Reputations:
    1,988
    Messages:
    5,253
    Likes Received:
    0
    Trophy Points:
    205
    Ya, so I can code in python a little now.
    But how do I make a zip and distribute it?
    Using Windows right now, but linux instructions are a must as well.
     
  12. Jalf

    Jalf Comrade Santa

    Reputations:
    2,883
    Messages:
    3,468
    Likes Received:
    0
    Trophy Points:
    105
    Better for what?

    No. Dev-C++ is a horrible IDE, one which hasn't been maintained for years, and even when it was maintained, it still sucked. There is at least half a dozen free IDE's for C++. Dev-C++ is by far the worst of them.

    Um, make a zip file like any other?
    What exactly is the problem?
     
  13. talin

    talin Notebook Prophet

    Reputations:
    4,694
    Messages:
    5,343
    Likes Received:
    2
    Trophy Points:
    205
    I have to agree with Jalf about Dev-C++. I used it quite a bit with Mingw, and ended up just using wordpad for awhile until I got visual c++.
    Dev-C++ is outdated, and buggy. But that is a moot point, since it's windows only anyway. ;)
     
  14. Rich.Carpenter

    Rich.Carpenter Cranky Bastage

    Reputations:
    91
    Messages:
    903
    Likes Received:
    0
    Trophy Points:
    30
    This is the way I would start out. It would allow you to get a handle on the basics of the language as well as understand what goes into the compiling of your programs. Once the core concepts make sense, then you might check out something like Anjuta or the like for a more robust IDE.
     
  15. Thomas

    Thomas McLovin

    Reputations:
    1,988
    Messages:
    5,253
    Likes Received:
    0
    Trophy Points:
    205
    I don't know how to put my program in a zip file.
    Thats the problem.
     
  16. lemur

    lemur Emperor of Lemurs

    Reputations:
    524
    Messages:
    1,024
    Likes Received:
    0
    Trophy Points:
    55
    Is python better than C++? No.

    Is C++ better than python, then? No.

    Both statements are not true (which is different than false if you accept that logic is not necessarily binary) because they do not specify in what respect one language would be better than the other. Most often that means specifying the purpose.

    I would have no problem saying that C++ is better than python for writing infrastructure code. Qt is an insance of this. It is the toolkit on which KDE is built. It is written in C++. I can't imagine wanting to have Qt written in python.

    At the same time I have no problem saying that python is better than C++ to write general purpose code like scripts designed to automate repetitive tasks or to write "glue code". I find C++ way too restrictive in those cases.

    That's a general principle: the question is rarely "is A better than B?" but "is A better than B given purpose P and constraints X, Y, Z."
     
  17. Thomas

    Thomas McLovin

    Reputations:
    1,988
    Messages:
    5,253
    Likes Received:
    0
    Trophy Points:
    205
    I've heard Python will be easier to start with.
    Know I'm wondering how to make programs, I can enter commands, but not make a zip file or executable. And I need to know how to make it a .deb file as well.
     
  18. Pitabred

    Pitabred Linux geek con rat flail!

    Reputations:
    3,300
    Messages:
    7,115
    Likes Received:
    3
    Trophy Points:
    206
    As a programmer myself, my best advice is to take a class. If you can't do that, second best is to buy a book. Seriously... buy the dead tree version from a bookstore and go through it. Any introduction to programming book should be fine. Once you learn how to program, THEN you can worry about what language you use. The conceptual part should come first. That said, you might consider Java since it doesn't teach too many bad habits to start with, and a number of good programmers that I know started on Java

    http://math.hws.edu/javanotes/

    That should get you started. Also consider looking at the free stuff at OpenCourseware (computer science is under "Engineering")
     
  19. Thomas

    Thomas McLovin

    Reputations:
    1,988
    Messages:
    5,253
    Likes Received:
    0
    Trophy Points:
    205
    Thanks, I think I'm getting the hang of Python, I've been modding the mint tools(written in python).
     
  20. Pitabred

    Pitabred Linux geek con rat flail!

    Reputations:
    3,300
    Messages:
    7,115
    Likes Received:
    3
    Trophy Points:
    206
    Good. Consider an O'Reilly book to make sure you get it conceptually. I've cleaned up after too many self-taught programmers that make horrible, horrible code because it "works", but is not really designed. As in, the difference between your treehouse in the back yard and a mansion. Learn the concepts of building a mansion, and treehouses stay together much better ;)
     
  21. talin

    talin Notebook Prophet

    Reputations:
    4,694
    Messages:
    5,343
    Likes Received:
    2
    Trophy Points:
    205
    As a hobbyist programmer for 7 or so years (C++), just remember that C++ is a masochist language. :)
     
  22. Thomas

    Thomas McLovin

    Reputations:
    1,988
    Messages:
    5,253
    Likes Received:
    0
    Trophy Points:
    205
    Cool, I've been trying ruby, and I like it, its powerful, easy, and I've modified a lot of distros programs for use in my own(hehe).
    Here's one: linky
    It's in the VM
     
  23. Rich.Carpenter

    Rich.Carpenter Cranky Bastage

    Reputations:
    91
    Messages:
    903
    Likes Received:
    0
    Trophy Points:
    30
    That's a pretty good analogy, Pita.