r/programming • • Feb 22 '15

Java Makes Programmers Want To Do Absolutely Anything Else With Their Time

http://www.forbes.com/sites/quora/2015/02/21/java-makes-programmers-want-to-do-absolutely-anything-else-with-their-time/
35 Upvotes

636 comments sorted by

View all comments

Show parent comments

23

u/btchombre Feb 22 '15

C# is awesome.. So long as you are only dealing with windows machines. Hopefully open sourcing the .NET core will make that better in the future

0

u/[deleted] Feb 22 '15

[deleted]

5

u/btchombre Feb 22 '15

Yes, there are a bajillion stipulations with using C# on anything but windows, which makes it not awesome for non-windows devices. Fact is, that .NET is not a good option if you want cross platform compatibility at the moment, but I'm really hoping that will change because C# is by far favorite language.

1

u/tetroxid Feb 22 '15

I use various Linux distros as my main OS on all of my computers. Have for years. If I want to install a program, and I notice it's written using mono/CS, I'll throw it out the window immediately. Why? Because mono is several hundred megabytes. All the libraries for all the other languages (C, C++, Java, Python, Perl) combined are roughly this size. Fuck that microsoft style bloat. No wonder Windows is ~60GB installed.

3

u/btchombre Feb 22 '15

No wonder Windows is ~60GB installed.

Windows 8.1 minimum hardware requirements are 16 GB. Windows itself is less than 10 GB installed. Sometimes additional third party drivers are installed for convenience which take up a lot of additional space, but this is not required.

3

u/tetroxid Feb 22 '15

20GB for 64bit. No sane person would use a 32bit OS in 2015. And those 20GB will be almost full, making Windows complain about low disk space, and making it behave weirdly. There won't be enough space for system restore points for updates, breaking them. And so on and so forth. Most Linux distros are a few gigabytes installed, including applications that Windows lacks in the default install.

I'm not some idiot Linux diehard fan trying to bash Windows. From a technical perspective, this is simply ridiculous. Even if Microsoft included compatibility libraries for 32bit (as does my 64bit Debian installation by the way), and then several versions of each of those on top of all that, it shouldn't get bigger than 10GB. I just don't get it. Microsoft has some of the very best engineers and architects in the world, and they mostly write good code, as we have seen from the leaks of NT and of the open sourcing of .NET.

3

u/gschizas Feb 22 '15

The answer is simple:

  1. What you see is NOT what you get (a whole folder in Windows, WinSxS is mostly made out of smoke and mirrors).

  2. Consider having to include ALL versions of each library in Linux. That's effectively what Windows does. The reason: Backward compatibility. Yes, it sucks, but not being able to run that one program that an external consultant built for your company and no-one dares touch it code, this sucks way more than 20 GB of disk (which cost like 1$ or 10$ for SSD)

2

u/tetroxid Feb 22 '15
  1. I know what hardlinks are. I don't measure the size of a Windows installation by what explorer.exe tells me, but by the size of a VM. A RHEL 7 VM template is a few gigabytes in size, a Windows 2012 VM template is a few dozen gigabytes in size. Creating a new RHEL VM is done in seconds, and Puppet has installed, configured, integrated and started its services by the time the windows VM has finished cloning and is starting to boot.

  2. Windows is missing package management. These applications that depend on specific versions of specific libraries should inform Windows about them. Windows would then be able to build a tree of needed libraries and install those.

Actually, I think the one feature that Windows is missing is package management. Imagine a repository server (like WSUS, but for software and libraries) that the windows instances could pull their components from as needed.

1

u/[deleted] Feb 22 '15

In my experience, useful windows systems occupy twice the disk space of useful Linux or OS X systems.

0

u/[deleted] Feb 22 '15

[removed] — view removed comment

0

u/tetroxid Feb 22 '15

Why do all other languages mentioned work without taking up such a huge amount of disk space, while offering similar functionality, if it is not for bad design and/or implementation? Just because we have more powerful machines now, does that mean that we can throw good engineering and efficiency out the window?

It doesn't matter too much if my SSD occupies a bit more space, but when you're running thousands of machines on shared storage it starts to matter quite a bit.

0

u/[deleted] Feb 22 '15

[removed] — view removed comment

1

u/tetroxid Feb 22 '15

I care about technology, good design, and good engineering. This is what guides my decisions, not mere money.

0

u/[deleted] Feb 22 '15

[removed] — view removed comment

0

u/tetroxid Feb 22 '15

And externalising the cost of implementing a space-efficient framework to the customer in the form of bloat is a good engineering decision by the developers of mono?