The Long Road Home - From Microsoft to Linux
58bits.com
58bits.com
I started with PHP in 1996. While the community was not as large as it is today, it felt... a bit more alive. People were discovering this 'underground' tech, and to use PHP on a project was slightly rebellious, when you were supposed to be using Perl or ASP or maybe even ColdFusion or Java.
But the community changes as more people who are using the tech get involved. More people end up using the tech not by choice, but by mandate. Current infrastructure is LAMP, so new hires have to use LAMP, etc. PHP is no longer a rebellious underground choice - it's a/the standard.
Similarly, I was doing VB stuff in 1993. Rather revolutionary in many ways, and it felt like a whole new world. People were jumping ship from other platforms to be more productive in VB. I don't think it was ever 'underground' like PHP was, but certainly an active, vibrant community of people who wanted to be using that tech.
Fast forward to the mid 2000s - Rails becomes the new hotness, and people jump all over MVC. The people who are joining these communities in the beginning are there by choice. Lots of progress and rapid iterations are possible because of the passion and focus. A couple years from now, loads of people will be doing maintenance Rails projects, and the community of Rails people will be less active and less passionate about things than they are today. Many of the 'best and brightest' are moving on to node.js and other new hotness.
The cynic in me will point out that the newer members of the community coming in later will be stuck maintaining "first drafts" of attempts at Rails projects, that won't have benefitted from updates. I say this as someone who was shown a Rails 1.1 project in 2010 that had been started 3 years earlier, but never upgraded. I'm sure that's not the only one.
But... this is also the nature of tech communities. People come and go, but the people 'going' are often 'going' to the new-fangled stuff, and leaving behind a mixed-bag that the maintenance generation has to deal with. This skews the 2nd generation's view of the tech (not always, but some). I know people who left PHP for Rails, complaining about all the stuff PHP couldn't do. But they also left behind piles of poorly written PHP - there's nothing in PHP forcing you to write bad code, they just didn't have the discipline which something like Rails seems to force.
Long story long... the .NET community seems at a cross-roads, and the MS corporate involvement in the tech decisions isn't a spanner-in-the-works that most other tech communities have to contend with. Other tech - PHP/Perl/Python/Ruby/etc - tend to live and die outside the directives of one particular company. But the 'top down' community comment was spot on - it's hard to 'force' community on a group, and I suspect the reason most of the .NET users don't behave like other communities the OP compared to is that most of those .NET users don't want to be there. Not saying they hate .NET, but they just don't have the passion for tech that motivates the visible community members in other tribes.
Can't really say the same thing when it comes to .NET or Java.
If we go back to the early 1996-2003, when the web was still "young", there are plenty Perl/CGI or PHP open source project to explore the capability of the web. Having said that, if you look at the tools the era produced, are mostly Forum, Blog, CMS for niche market (games, anime, manga, etc). People were having fun.
If we go back even further during the 1980-1995 during the UNIX, Linux era, people were writing command-line tools to explore the OS and writing X11 desktop app for fun.
Move forward to today's open source project: SugarCRM, Drupal (semi-serious), osCommerce, Magento, Maven, Ant, Cassandra. They're less fun. They tend to be more serious and "Ready for Business".
Sometime I wish I was old enough to be in the 1980-1990 era. Unfortunately I was not even in an egg-shaped form yet.
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).
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!
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.
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...
Without Github though, the situation would be much more annoying.
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 :)
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.
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 :)
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).
On the other hand, the article brought back a lot of thoughts on projects gone right and wrong. Very insightful and informative. In the end though, I have learned one thing that was reinforced by this article: if it ain't fun, it ain't worth it.
Let's face it: that which inspires us is fun. And when we are inspired, even the largest problems are overcome, but when we lack that inspiration and the fun that comes with it, it's not only drag, but little problems become impossible to solve.
From asp.net 1.0 to 2.0 required a rewrite to take advantage of 2.0 featureset. From linq2sql to EF where linq2sql was dropped in favor of EF and we still have no proper assurance. winforms 1.0 to 2.0 then wpf. Moving to wpf as you may guess requires a major rewrite. Then the rumors that wpf is dead. SL is the next best thing. Now they say SL is dead but your skillset will carry over to building metro style apps.
Perhaps he can avoid all this frustration now!
I think junior devs feel like everytime something new comes out they have to rewrite everything to use it. After you've been around the block for a while you realize that you can pick and choose technologies and maintainance plans. Once you realize that, you suddenly see a lot of this is just hot air.
Consider having a product developed in silverlight. Now MS is saying they are backing html5 but fear not, you can still rewrite it for metro because sadly IE10 on metro will not support plugins. This is their own plugin on their own operating system. Not supported! Which is not the same thing because SL atleast worked on the mac cross platform. Your metro app wont. So, html5? even still your developing a metro app so forget cross platform or perhaps you can reuse a lot of the code base but some effort is still required and we're really hoping for the best. In the end we are rewriting again.
Maybe I just can't understand something, but even sitting on linux for last 6 years and seeing all the great technologies I find C# really great and clean language.
Now, years later, I love every day being in the business. I'm learning new stuff every day, like Arch Linux, Vim, Git, EventMachine, Xmonad, the list goes on... It might not be the same for everybody, but open source world was a cure for me to start loving my profession. I'm really thankful for that.