Does the OS Matter in Programming?

Click For Summary

Discussion Overview

The discussion centers around the relevance of the operating system (OS) in programming across various languages, particularly Java and C++. Participants explore whether the choice of OS impacts programming practices, software support, and compatibility issues.

Discussion Character

  • Debate/contested

Main Points Raised

  • One participant questions the importance of the OS in programming, noting that different systems like Linux, macOS, and Windows seem acceptable for languages like Java and C++.
  • Another participant suggests that while simple console applications may not be heavily affected by the OS, issues such as endianness can arise when code needs to run on different platforms.
  • A different viewpoint emphasizes that the OS does matter, particularly for certain development environments and tools that are specific to Windows, such as Visual C++ and Delphi.
  • It is noted that C++ and Java are generally flexible across operating systems, provided that developers avoid using OS-specific libraries.

Areas of Agreement / Disagreement

Participants express differing opinions on the significance of the OS in programming. Some argue that it does not matter much, while others assert that it is crucial depending on the tools and libraries used.

Contextual Notes

Participants mention specific tools and environments that may influence their views, such as Visual C++ and Borland C++. There is also mention of potential confusion for beginners when using different setups from their instructors.

Who May Find This Useful

Individuals interested in programming, particularly those learning C++ or Java, as well as educators and students in computer science programs.

mattmns
Messages
1,129
Reaction score
5
Does the OS matter in programming, say for Java, or C++, or any language? The CS department here seems to use linux, but they also lend out macs, and I would be surprised if XP was not acceptable, so I am under the impression that it does not matter. However, this seems a bit strange considering software support for linux, I would think that if there were only a few changes that needed to be made then it would be easy to offer software for any OS. So what is the general consensus? Danke!
 
Computer science news on Phys.org
Linux and OSX use gcc / cc. If you want gcc on XP, then you might want to install cygwin (http://www.cygwin.com) for a unix-like experience. For simple console applications, it probably won't matter too much. One issue that did arise when I was working on code that needed to run on a pc and a mac is the little-endian / big-endian issue.

When I was learning C++ (on Windows), my instructor used Visual C++ for all of his examples. Use of Borland C++ was acceptable. However, when using Borland, I noticed that minor differences were confusing to me, as a beginner. I switched to Visual C++ and things went smoother.

In my opinion, as a beginner, it's best to use the same setup (OS, compiler, etc..) that the instructor uses... or else the setup of your friends who could help you.

My $0.02.
 
the OS certantly matters. Visual C++, Visual Basic, Delphi, and many other RAD tools generally one run under Win32, as they are compiled to *.exe's. Linux has a language in itself, which also does not run under Windows. But to your speficic question. C++ and Java are very OS flexible languages, just make sure you don't use any libraries that are native to the OS which your program is not designed to run on.
 
Thanks for the responses. I will do as you suggested and see what the professor is using and then use that setup.
 

Similar threads

Replies
35
Views
10K
  • · Replies 123 ·
5
Replies
123
Views
21K
  • · Replies 16 ·
Replies
16
Views
92K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 27 ·
Replies
27
Views
19K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 23 ·
Replies
23
Views
6K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 18 ·
Replies
18
Views
6K
  • · Replies 1 ·
Replies
1
Views
8K