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.
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.
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.
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 Visual Studio 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 IDEA 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 the same hardware. In fact, Java is as much as 20% faster on Linux, than on OS X 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 its 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 the same functionality.
Ease of installing OSS
Ubuntu has an 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 its 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 a desktop application for Windows, but nowadays this is kind of a niche job market for programmers.
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.
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...
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 '14 at 1:29
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?