Does the OS Matter in Programming?

AI Thread Summary
The operating system (OS) can influence programming, particularly in languages like Java and C++. While these languages are generally OS flexible, certain factors can complicate cross-platform development. For example, using libraries that are specific to a particular OS can lead to compatibility issues. The choice of OS may also affect the development environment; for instance, Linux and macOS utilize gcc/cc compilers, while Windows often relies on Visual C++ or Borland C++. Beginners are advised to use the same OS and compiler as their instructors to avoid confusion and ensure smoother learning experiences. Overall, while the OS may not be critical for simple console applications, it does play a significant role in more complex programming tasks.
mattmns
Messages
1,121
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.
 
Thread 'ChatGPT Examples, Good and Bad'
I've been experimenting with ChatGPT. Some results are good, some very very bad. I think examples can help expose the properties of this AI. Maybe you can post some of your favorite examples and tell us what they reveal about the properties of this AI. (I had problems with copy/paste of text and formatting, so I'm posting my examples as screen shots. That is a promising start. :smile: But then I provided values V=1, R1=1, R2=2, R3=3 and asked for the value of I. At first, it said...
Sorry if 'Profile Badge' is not the correct term. I have an MS 365 subscription and I've noticed on my Word documents the small circle with my initials in it is sometimes different in colour document to document (it's the circle at the top right of the doc, that, when you hover over it it tells you you're signed in; if you click on it you get a bit more info). Last night I had four docs with a red circle, one with blue. When I closed the blue and opened it again it was red. Today I have 3...

Similar threads

Back
Top