Thread: Is it harder to code for Linux or Windows?

  1. #1
    left crog... back when? incognito's Avatar
    Join Date
    Oct 2001
    Posts
    1,427

    Is it harder to code for Linux or Windows?

    You experience programmers please tell this newbie .
    There are some real morons in this world please do not become one of them, do not become a victim of moronitis. PROGRAMMING IS THE FUTURE...THE FUTURE IS NOW!!!!!!!!!

    "...The only real game I thank in the world is baseball..." --Babe Ruth

    "Life is beautiful"-Don Corleone right before he died.

    "The expert on anything was once a beginner" -Baseball poster I own.


    Left cprog on 1-3-2005. Don't know when I am coming back. Thanks to those who helped me over the years.

  2. #2
    Evil Member
    Join Date
    Jan 2002
    Posts
    638
    Well, that depends on what you mean by harder.

    First of all, the language is the language, regardless of platforms.

    The differences are the headers/libs and the available development environments. A windows platforms gives you access to MFC and VC++, which, in the opinion of some people, make coding easiar. The caveat is that your code will have "We are Microsoft. Resistance is Futile. You will be Assimilated" stamped all over it in binary. A linux platform, on the other hand, gives you less fancy tools (but what kind of wimp would use a GUI to code anyway? REAL programmers use the command line) but a little more direct access to various things to which one might want access, as well as freeing you from the potential security vulnerabilities introduced by Windows' "convenience" features. cough spyware /cough.

    So in short, if all you have ever done is vc++ on Windows, than linux will be a bit of a change, but if you are looking for a new area into which to expand, linux is not substantially harder to work in.

  3. #3
    Registered User CompiledMonkey's Avatar
    Join Date
    Feb 2002
    Location
    Richmond, VA
    Posts
    438
    It's easy for both in Java.

  4. #4
    Fingerstyle Guitarist taylorguitarman's Avatar
    Join Date
    Aug 2001
    Posts
    564
    Windows has better IDEs hands down, but I like writing programs for Linux better. The whole win32 (WinMain) reasoning eludes me (other than no other platforms use it). It is more effort to code in Linux but I think you have more control (goes hand in hand I guess). And once you get the hang of it it's really trivial.
    Help the revolution, code cross-platform.
    If a tree falls in the forest, and no one is around to see it, do the other trees make fun of it?

  5. #5
    Evil Member
    Join Date
    Jan 2002
    Posts
    638
    Well, even with a platform independant language like Java, there are still traps.

    rant

    There is a reason that the major languages are maintained by the nonprofit ANSI, and not a private corporation. People that see that fight between microsoft and netscape are not even seeing the tip of the iceberg. The real fights are microsoft vs opensource and the big one, microsoft vs standardization.

    /rant

  6. #6
    Registered User CompiledMonkey's Avatar
    Join Date
    Feb 2002
    Location
    Richmond, VA
    Posts
    438
    ...and .NET vs J2EE.

  7. #7
    geek SilentStrike's Avatar
    Join Date
    Aug 2001
    Location
    NJ
    Posts
    1,141
    It probably depends on what you want to do. Linux lacks the windows specific stuff (DirectX, MFC, etc), while many of the popular libraries in Linux (OpenGL, SDL, Qt) are availible on Windows as well. There are some non-Windows libraries for Linux (stuff related directly to KDE or Gnome, desktop enviroments for Unix, so it doesn't really make sense to port them to windows). But most of the popular Linux libraries that are not intrinsically tied to the OS are ported to many platforms anyway.

    I develop primarly on Linux (Kdevelop is a nice IDE, http://www.kdevelop.org ). While I prefer the ease of use of the Visual C++ IDE, I prefer g++ over MS's compiler.

    Surely, when you are coding something that applies only to one OS (say, making something to replace regedit on windows, or a graphical system resource monitor in Linux) then it makes sense to make the code run only on the intended platform. However, things like most games (anything that doesn't require using say, vendor specific OpenGL extensions that something Direct3D does natively, like per pixel shading) really should be made portable. Why force your users to use the same platform you do? If you like Microsoft's development tools (I admit they are very good), fine, use their tools with portable libraries, so as to make getting the code working on ther platforms a breeze rather than a nightmare. Don't force your users to use a specific platform when it's not necceary.

    Anyway, end ramble. Use open libraries with whatever tools when not coding apps that have a neccesary link to a specific platform. Portability and open standards are good things, if you don't believe that.. C or C++ probably shouldn't be your programming langauge of choice.
    Last edited by SilentStrike; 03-28-2002 at 12:45 AM.
    Prove you can code in C++ or C# at TopCoder, referrer rrenaud
    Read my livejournal

  8. #8
    junior member mix0matt's Avatar
    Join Date
    Aug 2001
    Posts
    144
    Learn wxWindows and you really don't have to worry about coding for either...

    www.wxwindows.org

  9. #9
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    >>REAL programmers use the command line

    PAID programmers do what the customer wants.
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  10. #10
    Registered User dirkduck's Avatar
    Join Date
    Aug 2001
    Posts
    428
    In my experience, Linux has been a bit harder, but then again, I havn't done too much programming for it. I'd say its harder for me, because I started with programming in windows, and thats what im accustomed to.

  11. #11
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429
    programming is programming... i don't think it's easier or harder in either. The only difference is how nice the IDE is. And I'd say, like someone else said that Windows probably has the slight upper hand in that, but I've seen a few good ones for linux.

  12. #12
    left crog... back when? incognito's Avatar
    Join Date
    Oct 2001
    Posts
    1,427
    Ok I have another question if Linux is supposed to be free, then why do I see Linux being sold all over the net? Also is the creator of Linux still alive? Is he rich?
    There are some real morons in this world please do not become one of them, do not become a victim of moronitis. PROGRAMMING IS THE FUTURE...THE FUTURE IS NOW!!!!!!!!!

    "...The only real game I thank in the world is baseball..." --Babe Ruth

    "Life is beautiful"-Don Corleone right before he died.

    "The expert on anything was once a beginner" -Baseball poster I own.


    Left cprog on 1-3-2005. Don't know when I am coming back. Thanks to those who helped me over the years.

  13. #13
    geek SilentStrike's Avatar
    Join Date
    Aug 2001
    Location
    NJ
    Posts
    1,141
    Linux is free by the Free Software Foundations definition of free.

    http://www.gnu.org/philosophy/free-sw.html

    It's allowed to be sold for money. You can legally download ISOs from all of the major distrobutions. My university even hosts quite a few of them, http://ftp.rutgers.edu .

    It's free enough to be allowed to be sold.

    Linus Torvalds, the creator of Linux, is well off financially ( he works for Transmeta), but probably worth like 5 order's of magnitude less than Bill Gates.
    Prove you can code in C++ or C# at TopCoder, referrer rrenaud
    Read my livejournal

  14. #14
    left crog... back when? incognito's Avatar
    Join Date
    Oct 2001
    Posts
    1,427
    I have Red Hat Linux, but apparently my modem is not supported by it or I don't know how to get online with it....that's why I am not using Linux, I would like to use both Linux and Windows but until I get a new modem or learn how to get online with it I guess I can't
    There are some real morons in this world please do not become one of them, do not become a victim of moronitis. PROGRAMMING IS THE FUTURE...THE FUTURE IS NOW!!!!!!!!!

    "...The only real game I thank in the world is baseball..." --Babe Ruth

    "Life is beautiful"-Don Corleone right before he died.

    "The expert on anything was once a beginner" -Baseball poster I own.


    Left cprog on 1-3-2005. Don't know when I am coming back. Thanks to those who helped me over the years.

  15. #15
    Registered User
    Join Date
    Mar 2002
    Posts
    2
    Originally posted by elchulo2002
    I have Red Hat Linux, but apparently my modem is not supported by it or I don't know how to get online with it....that's why I am not using Linux, I would like to use both Linux and Windows but until I get a new modem or learn how to get online with it I guess I can't
    if your modem plugs into the pci bus then you are going to have problems. you could either go out and get a modem that plugs into the isa bus instead, or look up something on the internet called "linmodems"; it may help you configure linux to work with your pci-based modem card.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Moving Lapack++ dependent code to windows
    By confuted in forum C++ Programming
    Replies: 1
    Last Post: 10-16-2007, 10:47 AM
  2. Replies: 1
    Last Post: 10-18-2005, 10:20 AM
  3. windows console code probs
    By henroid815 in forum C++ Programming
    Replies: 1
    Last Post: 05-04-2003, 05:53 PM
  4. Replies: 1
    Last Post: 01-10-2003, 10:08 PM
  5. << !! Posting Code? Read this First !! >>
    By biosx in forum C++ Programming
    Replies: 1
    Last Post: 03-20-2002, 12:51 PM