Why is writing a program in text files or via the terminal a better option (as I read) than using IDE(s) like Visual Studio on Windows? Do the features an IDE provides exist there (eg. showing compilation errors) or is it a manual process?
This sort of hypothetical might do better on Programmers.SE because it's likely to be pretty one-sided here. That said, I was a .NET developer for a few years and came to depend on Visual Studio. It does a lot for you and yes, I particularly like the integrated debugger... However, I think there are a few reasons people choose Linux:
Is Ubuntu better for you? Who knows. It's a very capable and very customisable system. If you give it a chance and alter your workflow to allow it to help you, you should be able to make it stick.
|show 9 more comments|
I would like to add one more important reason though; Ubuntu is great for experimenting with new libraries, languages, IDEs and compilers. Everything is one apt-get away.
So you've heard about a fancy language called Haskell:
Oh, you've heard a fancy editor for Haskell:
The same with C/C++ libraries, you just
In essence, it's not about how fast you can setup your day-to-day working environment. It's also about how extremely fast you can setup an experimental environment. I believe that's what accelerates the learning experience under Linux.
|show 9 more comments|
Here's an opinion from a primarily Microsoft platform developer. If you're not targeting the .NET ecosystem I would argue that your best option is Ubuntu. You will have a much easier time obtaining, configuring, and using tools for almost every other platform/language if you are on Ubuntu instead of Windows.
The value of Microsoft's toolchain is that it is HIGHLY integrated. From the IDE to Source Control, Project Management, Build, Deployment, Database, Cloud Infrastructure, ad nauseum. Microsoft makes it VERY easy if you're going full-bore with their platform.
As some have mentioned, deviating from the Microsoft Way can be a pain. Using .NET for your code and Oracle for your database...d'oh that's gonna be a pain.
Want to create an .NET web application and deploy it to Amazon Web Services...not very straight forward.
But if you stay within the Microsoft Ecosystem...that baby will sing like a mocking bird for you. In the hands of a competent software developer, the Microsoft Platform is like PEDs for a talented athlete. It's not going to enable an amateur programmer to create the next Facebook. But it will give an edge to a talented developer who understands how the pieces fit together.
The argument for the free (as in beer) cost of getting started with Ubuntu is out the door, there are a number of programs Microsoft offers that let you get started with their tools for free. Including Bizspark which gives your startup company 3 years of licenses (including production use licenses of their tools). And Dream spark which gives it to students for free.
That being said, if you want to explore and learn new languages and platforms, you'll find better tools to get started on Ubuntu and if you're looking for work outside of the Microsoft ecosystem, you're going to need to be familiar with Ubuntu.
I use both tools, IDEs and text-editors with command-line interface (CLI), to write programs.
What Linux offers is a useful CLI and this from the get-go. If you don't need a the CLI and you are just using an IDE there isn't much of a difference anymore, IMHO.
Text editors and CLI tools
I often do my prototyping with text-based tools. Later, when there are more files to manage, I value the refactoring tools an IDE is offering me.
|show 3 more comments|
I'll throw my answer into the ring (though I believe these all are good ones too).
The most basic answer you can get is that it's all about philosophy.
In the Microsoft world, it's a bit religious - You have the gods on Mt. Redmond who must be petitioned if you want anything implemented. Sometimes they will listen, other times your sacrifices and pleas will fall on deaf ears. Perhaps they were out hunting. Microsoft controls the entire ecosystem - they own the OS, they own the IDE, and they couple them together in ways that are probably inappropriate to talk about on a SE network. Even within the IDE pieces are tightly coupled - it may be called integrated but I think coupled is more accurate. If you would like to change things up a bit, Gates forbid that you would want to alter something in a way that either the designers of Windows or Visual Studio did not expressly allow. And then throw in technologies like IE, and IIS, Microsoft servers, and MS SQL Server, and Office... and everything is a nice big happy family. But if you should want to leave part of the family behind? shudder!
On the other hand, you have Linux, which inherits from the Unix philosophy that each piece should be responsible for its own small sphere of responsibility. It should do one thing, and do it well. And preferably, communication should happen by way of strings of text. As others have pointed out,
Not only is it easy to combine them, but it's also very easy to split them apart - if I decide that I no longer need to edit a stream, but I want to filter the results, rather than passing my text to
Now, this is the fundamental philosophy behind development in a Linux environment - so even if you go up from there, many tools provide similar sorts of interfaces. They allow you to decompose them into parts, or interface with them through the command line or ports or HTTP.
And even if that were not the case, you also have open source software. Most (if not all) software on the Linux platform is open source. So if you don't like how it's written you are completely, totally, absolutely able to change the software yourself. This is incredibly empowering. Can't break apart that IDE the way you want to? Either make the changes and submit them back upstream, or fork the project. Not sure why something behaves the way it does? Use the source, Luke! Need to be able to automate something through the command line? Hack on the project and stick your changes in. Come across a bug, or a security issue? Hey guess what - you can fix that yourself, you don't have to wait for SP3.432vb89234.startdate1eQ to come out.
You can combine the tools that you want and you need. And if there's something that is in your way, you are 100% able to get that changed. Even if you don't have the capability, you could certainly pay someone to develop that change - or even suggest it to someone else who has the know-how.
The reason this is better for programming is because when you come across friction, you can eliminate it from your workflow. Because development is hard there are a lot of things that you have to think about to be a successful programmer, and the more you have to think about the harder it is to think about other things.
Eliminating friction is key.
So if the Microsoft
But if you don't fit the Microsoft Mold(tm), patent pending, then you will run into friction. Development will be a pain. Each time you wish you could do something, but can't, that will drain precious cognitive resources. And if that's the case, then a Linux development environment is probably for you.
I'd like to provide my more general thoughts to the question:
"Why is Linux a better environment for programming?"
I think the most important reason why to develop on Linux is because you have full insight into most software internals. You are able to learn how things actually work if you are interested. That allows you to learn and adapt good or bad practices by seeing them in action. This allows more diversity for your ideas.
Why Linux is better for programming
Besides VS and Xcode, which serve their specific purposes, most popular IDEs are multiplatform. It might seem like there are gazillion IDEs for dozens of languages, but in the end most of them are based on either Eclipse, IntelliJ or NetBeans. What they have in common is that they are all Java based. Java works more efficiently on Linux, than on any other OS on same hardware. In fact Java is as much as 20% faster on Linux, than on OSX on same hardware. Many of these IDEs are ready to install with one click in Ubuntu Software Center.
GCC has very much become industry standard. Beyond any doubt it's primary platform is Linux, where it's best supported. And it's free and royalty-free.
Linux provides unique tools, not available on other platforms, like for example Valgrind (a tool for memory debugging, memory leak detection, and profiling). Linux also comes with debugging tools such as strace and ltrace, which can be used to debug even production code (i.e. not compiled with debugging symbols). Equivalent tools for Windows are either non-existent or very expensive and do not provide same functionality.
Ease of installing OSS
Ubuntu has excellent package manager. In most cases installing software is just
On the other hand in Windows you have to manually download and install packages, and if they require some other packages, you have to do that manually too. There is no system wide updating either, each software package either implements it's own annoying updater or does not update at all.
Production machines are very likely to be Linux
If you doing any kind of programming for back-end, for web, for cloud, etc. it's very likely that your target machines are Linux. There are lot less nasty surprises when you're developing on same kind of OS as your target machine.
Of course you might be developing desktop app for Windows, but nowadays this is kind of niche job market for programmers.
What tools (text editor or IDE) you use for programming is a matter of choice. Generally speaking you can say: Beginners and very small projects tend to use better text editors, like sublime text or a modified version of gedit. Just because you learn more when using plain text editors. IDEs can screw up your learning process by automating things (like Visual Studio does ;) ).
When it comes to professionals, messing with lots of tools and languages, IDEs come in handy, because they can do so much more for you, if you let them. There are many IDEs to choose from, depending on the language you want to program in. There are better ones and also less convenient ones.
My personal experience is, that an Ubuntu OS is by far faster and easier to setup for development than Windows. I presume, this is because most of the tools and programs I use are build on Linux and because I do not have to search the internet for download links to my favorite programs. It is just an 'apt-get install program1 program2 program3' away. In comparison: I need 3 working days to install and configure a fresh Windows install with everything I need for programming (company, not private, that would be faster), but it is just one day for the same task in Ubuntu.
My experience is, that programmers, who switch to Linux for programming have (most of the time) a deeper understanding of technical contexts and how basics work. Mac and Windows users tend not to know why something works this way or why it does not. I am not sure if you can actually learn something from working with Linux or if just that those williong to learn switch to Linux.
Hope my "blafasel" helps a bit...
It's not, I can argue that it's quite the opposite. Generally though, people tend to prefer tools which they're better at. The type of tools you use might benefit the ease of writing programs. So for example, I can write Java programs just fine with vim but it's really counter productive as opposed to a full fledged IDE like Eclipse or IntelliJ. Jon Skeet gave a great answer to the question Why use an IDE.
Back to your original question, the only thing Linux is better at is C programming. Everything else you can do on Linux you can also do on Windows and vice-versa (programming wise). C programming is better on Linux for historical reasons, it offers a great set of tools (which you can get on Windows BTW but it's much easier to set up Linux for it). Likewise, if you're writing C# and like .NET then Windows is a better choice for obvious reasons. Everything else is completely subjective and you'll hear pros and cons of both sides.
|show 2 more comments|
I would address the advantages/disadvantages of each OS tools rather than just VStudio vs Ubuntu IDEs:
Package management: This is a disadvantage for Windows since it doesn't have a system that allows you easily keep upgrades, installations, and dependencies sane. You must download and install each tool for whatever project you may need. Ubuntu don't have such problems thanks to its inherited APT system.
Audience: While is true that Ubuntu is popular, Windows is more so. Developing from Windows to Windows is a far more satisfactory experience for most developers than from other OS's to Windows or from Windows to other OS's. If you will develop for only Windows, your best option is probably to stick with Windows and it's tools.
Versioning Systems: This is the only thing that Windows and Ubuntu do correctly if you can live with certain quirks. Windows will ask you to install another program (and maybe use a GUI) for almost any VCS out there, the experience is good as far as the tools are correctly deployed/implemented. Ubuntu is the same.
Modularity: Here the lack of package manager of Windows will be painful. You must install and maintain updates yourself (Windows Update doesn't seems to help) for all your toolchain. Installing a Python module could be painful the first 3-4 times. Ubuntu gladly installs all your stuff (again if you use APT, if you build from sources you will be alone) and keeps it together and functional. While Cygwin and MinGW do "good" work on their own, you will meet people with mixed experiences.
Languages palette: While is true that most of the programming languages can be used in both, Ubuntu and Windows, the implementation of the tools leave too much to hope for it in both cases. Windows' Mono implementation in Ubuntu depends on a community driven project, it doesn't support all the characteristics you will find in a full Windows dev environment. The same with Windows, things that could be trivial in Ubuntu could be a major ordeal to do in Windows if the language is alien to the system. Here it comes down to what language you want to support and to who your code is directed to.
Stability: In Ubuntu, you can get state-of-art kind of tools (community driven), with all the shiny new things, in Windows too (if you use Windows tools). The problem with this is that in Windows due to the poor modularity of the system, you have to take into account any kind of program that might interfere with your stuff. Also, you should not allow the user to be exposed to vulnerabilities (this is more on both sides, but as Windows that is a large target). Ubuntu is solid rock. Is unlikely that while playing with your code you could break another part of the system irreparably (unless you use sudo/root).
Scalability: In Windows, for making your project bigger (add tools, languages, etc.) you must be extra careful that it doesn't break your already deployed ecosystem. Ubuntu doesn't has this problem.
Startup: Windows doesn't include tools for development from the start. You need to download and install all kind of stuff. Ubuntu, in contrast, comes with 3 fine text editors and 3-4 interpreter languages from the start, the things you don't have and need are just an
Note: my answer isn't to be read alone but along all the other answers. This answer complement what others said (or didn't said) for the sake of completeness.
I would argue that a Linux distribution is an IDE.
For a start, Unix was designed from the outset to be a development environment. It was written by programmers for programmers. Most Unixes, and Linux, still ship with development tools in their default configuration. And missing parts are only an
An IDE is more integrated, in the sense that IDEs are more tightly coupled than using GCC, Git and Vi (for example). Tight coupling allows things like `intellisense' to work better. But on the other hand, loose coupling has many advantages (e.g. flexibility, interchangeability, lack of lock-in).
And advances in compiler design (compilers with easily separable front-ends such as LLVM) might eventually mean better support for features such as syntax error highlighting even in loosely coupled environments.
On the matter of philosophy: Ubuntu/Linux permits the computer programmer direct access to the internals and hardware, whereas Windows is a sort of gatekeeper. This is an important philosophical issue when it comes to programming. So, philosophically speaking, this feature being an advantage will depend upon whether the user is sufficiently knowledgeable or technically aware of the importance of it.
On the matter of programming: The entire system architecture of Ubuntu/Linux is founded upon the Unix tradition of small, simple programs doing one thing, and then piping them together to do more complex things. For a programmer this architecture is incredibly powerful, and, in my view, is the reason why Unix will prevail in the long run against every other software architecture on every platform. One of the few places where Unix is not currently dominant is the desktop, but that will change over time. Distributions like Ubuntu are helping to see this evolution through.
I don't dispute, however, that there are some very good programming environments on Windows. For programming within a corporate environment, these often dominate.
Speed is the sort answer.
I find that with an graphical IDE like Visual Studio or QtCreator that I use the mouse too much when I should be using short cuts. Each time you switch context you are having to pause your brain, focus on your target and wait for the action. Whereas pressing F5 is infinitely quicker.
Now if you are using vim, Emacs or something else that doesn't have nice looking buttons you'll be focused on the key presses, you have one method and become faster because its routine.
The errors are presented in a more verbose way with a command line interface, which I prefer, and it also gives feedback during compilation. One thing I hate about Visual Studio is the default is a little icon indicating its doing a compile, then you get an error list out.
With a narrow view you'll keep to the 80 column width which helps readability, I've seen code that spans out to the 200 column width. With code fitting to 80 columns you can have 4/5 windows open at a time.
With a CLI editor you can code remotely, no need for a slow (compared to text) RDP session to your Visual Studio. You could code over a GSM link.
Visual form development kind of sucks. One advantage you might put on a GUI IDE is that you can draw your screens and its quicker. However in my experience its fine for a prototype but often you get better results with doing it manually in code. The VS2012 Code Analyser this morning just warned me about 200+ problems with code that was auto-generated by Visual Studio?!?!?
I think your real question might be, "Are there any Visual Studio alternatives that will run on Ubuntu, since it won't?"
It's workable, but you'll hate it if you're used to VS and all the features.
There is NO advantage to using a text editor. Remember that nice thing called Intellisense? Not happening (but MonoDevelop has something like it). Hope this helps.
protected by Community♦ Jan 9 at 1:29
Thank you for your interest in this question.
Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.
Would you like to answer one of these unanswered questions instead?