News for hackers. Stuff that matters.
Re:The Long Road Home - From Microsoft to Linux by skrebbel on Sunday November 13, 2011 @05:36AM (#3230467)
Funny - I went exactly the other way, from PHP to Ruby to C#.

The .NET environment is amazing. Its open source community is really picking up speed lately, the framework docs are top-notch, and, most importantly: C# is a great modern language with excellent editor support - a unique combination (possibly barring F#).

Java has good editor support (IntelliJ, Netbeans) but, well, it's Java. Ruby and Python are nice, but can never get the support for maintainability and refactoring that a statically typed language can. After my Ruby years, I never want to have to guess what I can do with an object passed to some method I'm maintaining anymore. And then I didn't even mention all the framework magic circling Ruby, making it even more difficult to understand what the code you're looking at does.

The ability to type "varname." and get a list of what I can do with it is so powerful. I can use a (well designed) open source library that I just NuGet'ed in, without ever even looking at its docs. Can you write PHP without alt-tabbing to the manual all the time? Can you do it with Ruby?

I'd even choose Java over Ruby for that if I had no other option; I'm no Microsoft evangelist. I'd probably do Scala if the editor support became better (which I hope it does), but C# comes pretty damn close to what I'd want to use Scala for anyway (closures, LINQ, properties, extension methods, even currying is no problem).

Re:The Long Road Home - From Microsoft to Linux by wes-exp on Sunday November 13, 2011 @01:40PM (#3231424)
I am a C# refugee, so I feel I can respond with some authority.

Yes, the enhanced auto-complete capability that static typing enables is a great feature (I should note that dynamic languages can offer completion too, just not as comprehensively). But it must be weighed against the tradeoffs. I believe many of these language features like static vs. dynamic typing are not "one is better than the other", but simply characteristics that make certain tradeoffs.

A decent comparison of static vs. dynamic typing can be found here: http://batsov.com/articles/2011/05/08/jvm-langs-scala/ (scroll down)

For all C#'s strengths, you've got to also consider the negatives. For starters, you're dependent on Windows; for the development environment and the server. I don't know if you also do server administration, but let me tell you: running Windows servers is an exercise in pain.

Second, in an age when many wonderful programming environments are available as open source, I question the wisdom of marrying yourself to something that is deeply proprietary. When you're first starting with .Net, you might not think about this. But years in, you may find that you are stuck in a system outside your control, dragging your code and livelihood along with it. As I did.

C# has many strengths and I have great respect for its architect Anders Hejlsberg. That said, I am very much glad to be free of it!

Re:The Long Road Home - From Microsoft to Linux by skrebbel on Sunday November 13, 2011 @02:52PM (#3231628)
Thanks for sharing. Genuine interest: Mono didn't work for you? How so?
Re:The Long Road Home - From Microsoft to Linux by wes-exp on Sunday November 13, 2011 @04:33PM (#3231886)
Mono didn't work for me. I think it might be okay if you targeted it specifically as your official runtime. But it is not, and I don't think ever will be a drop-in replacement for the MS stuff. I summed up my thoughts here: https://news.ycombinator.com/item?id=2777025
Re:The Long Road Home - From Microsoft to Linux by ale55andro on Monday November 14, 2011 @08:01AM (#3233790)
I'm in agreement with wes-exp, even though I still have to make the "long walk home", mono currently offers a workaround or perhaps a false reassurance that when the requirement comes up, you can still run your apps on Linux. Truth is it's lagging behind, it does not enjoy good community support (everybody in the *nix community is against it) and to top it Novell was acquired recently and the new management put a lid on mono. Miguel has started a new company but it seems their priority is standing on their feet first ( making money and being profitable). So, no. Mono is not a good alternative for .net at this point.
Re:The Long Road Home - From Microsoft to Linux by pimeys on Sunday November 13, 2011 @06:09AM (#3230498)
> The ability to type "varname." and get a list of what I can do with it is so powerful. I can use a (well designed) open source library that I just NuGet'ed in, without ever even looking at its docs. Can you write PHP without alt-tabbing to the manual all the time? Can you do it with Ruby?

I usually don't need any documentation with Ruby. I remember how the libraries I use work. But I'm that kind of guy, who first reads the source from Github and then start programming the thing by my own. I hated with Microsoft libraries, that I had to use reflector to see inside the library, when it didn't work like it should've been. Now I'll hit the fork button if the library contains a bug and I need a fast fix right now.

Re:The Long Road Home - From Microsoft to Linux by kenjackson on Sunday November 13, 2011 @10:03AM (#3230856)
Reading code seems like a crazy inefficient way to understand libraries. Maybe you're just a much better code reader than anyone I've ever met -- in which case, more power to you.
Re:The Long Road Home - From Microsoft to Linux by mgkimsal on Sunday November 13, 2011 @11:12AM (#3231017)
I see this attitude of "read the library source" most often from Ruby people, but some advocates of larger PHP frameworks advocate that approach as well, and I just don't buy it. At least, not across the board. Sure, if there's a bug, I can try to track it down, maybe submit a patch, but if something can't be bothered to be documented, I'm not sure I want to spend my time depending on that library.

I've certainly made exceptions to that - we probably all have - but treating that as the defacto way to approach using third party libraries is wholly inefficient (as you said).

One might take a better approach by saying "read and learn from the test cases". I've often found that for the libs I try that with, that have tests, they're often rather... what's the word? I can't easily figure out how to apply the library to the problem I have at hand. Sometimes it's because my problem is ill-defined, and sometimes it's because the tests only cover superficial cases, and even if the lib docs say "can do xyz", it's not tested not documented.

Such is software...

Re:The Long Road Home - From Microsoft to Linux by pimeys on Sunday November 13, 2011 @02:07PM (#3231484)
I can understand your point. But for me the short documentation has never been such a problem. There's usually some example cases how to use the library in the README.md, and that is mostly everything I need. Sometimes it is necessary to read through the code for better understanding, and I really like to be able to do that.

Without Github though, the situation would be much more annoying.

Re:The Long Road Home - From Microsoft to Linux by febits on Sunday November 13, 2011 @06:23AM (#3230512)
While developer productivity is important, I tried to avoid suggesting that one set of tools were better than an other - for reasons that I hoped would be evident. That said - not sure - but I think the IntelliSense overload in VS2010 gets in the way as often as it helps. The great thing about learning other languages and frameworks, is that you discover what works (or not) and why. In my case - it was liberating to be able to build and deploy a complete solution - for free. Linux and FOSS gave me that choice.
Re:The Long Road Home - From Microsoft to Linux by skrebbel on Sunday November 13, 2011 @10:46AM (#3230959)
Hm, I don't remembering the "for free" argument in your article :) (but might've read over)

I completely agree with your point on learning other languages and frameworks, btw - the story on your journey was an interesting read. I'm just a bit staggered on how your journey ends with you choosing what I consider to be vastly less powerful tools (e.g. vim) when you know that there's tooling out there that, well, in my opinion is just plain better.

If money is really the main argument, then, well, fair enough. Even then I'd choose Java, once again for the refactoring/maintainability support, but people have called me an idiot for less so I guess that's just me :)

Re:The Long Road Home - From Microsoft to Linux by hello_moto on Sunday November 13, 2011 @01:33PM (#3231403)
I tried a few programming languages (was with Python for quite some time, nowadays I'm learning, doing, researching more modern JavaScript techniques than ever).

At the end of the day, somehow I get drawn back to Java. Eclipse and IntelliJ are the 2 editors out of this world that it blew my mind.

Here's a use-case that I stumbled upon a few times:

1) Download a 3rd party library via Eclipse - Install m2clipse (Maven plugin)

- Open the pom.xml and add the libraries you need

- m2clipse will download the final JAR version (without the code)

2) Use the 3rd party library downloaded by m2clipse to access JavaDoc

- All you have to do is to utilize the intellisense and m2clipse will download the javadoc JAR

3) Navigate to the 3rd party library internal source code

- Hit the shortcut key to go to the actual implementation of the class

- m2clipse will download the source JAR of that library (provided the 3rd-party provider also upload the source jar to whichever Maven repository it exist)

You can't do that with NuGet. At least not yet.

Many people, to this day, have this hatred against Maven yet from time to time again I have not seen a good substitute of Maven that integrates well (albeit some slowness) with the IDE.

While C# has all the syntax goodness, this is something that I noticed, not many people are actually exploiting them. Only a tiny fraction of C# community that probably use it to the fullest. At the end of the day, C# is just like Java.

Re:The Long Road Home - From Microsoft to Linux by gvnonor on Sunday November 13, 2011 @07:27AM (#3230569)
With Smalltalk you can have your cake and eat it too! Its refactoring and IDE support is better than those of other dynamic languages and only slightly lagging behind statically typed languages(due to its relative obscurity, its ecosystem isn't as huge as Java/C#'s).
Re:The Long Road Home - From Microsoft to Linux by xradionut on Sunday November 13, 2011 @07:39AM (#3230593)
As much as I love it, Smalltalk has an image problem.
Re:The Long Road Home - From Microsoft to Linux by rincewind on Sunday November 13, 2011 @08:22AM (#3230661)
I really cannot tell if the pun was intended.
Re:The Long Road Home - From Microsoft to Linux by SWengineer on Sunday November 13, 2011 @12:51PM (#3231299)
If you want decent Scala support with IDE code completion try IntelliJ community ed with scala plugin. Eclipse is okish but Scala plugin rather slow
Re:The Long Road Home - From Microsoft to Linux by mgkimsal on Sunday November 13, 2011 @08:12AM (#3230650)
Netbeans has decent PHP support. JetBrains has a good PHP editor out now too. Zend Studio and PDT - both Eclipse-based.

Given the dynamicness of PHP, the editor support may never be as comprehensive as VisualStudio/C#, but it's better than it was a few years ago.

And if you come back to Java, give Grails a spin :)

Re:The Long Road Home - From Microsoft to Linux by skrebbel on Sunday November 13, 2011 @10:37AM (#3230942)
> Given the dynamicness of PHP, the editor support may never be as comprehensive as VisualStudio/C#,

Exactly my point.

But indeed, you're right - used Netbeans for PHP a few years ago, and it was awesome compared to the text editor I used before (but not like Visual Studio with C# by far).