Slashdot Mirror


Microsoft Releases ASP.NET MVC Under the Apache License

mikejuk writes "Microsoft has announced that they are being even more open with their new approach to ASP.NET MVC. It is making ASP.NET MVC, Web API, and Razor open source under an Apache 2 license. The code is hosted on CodePlex using the new Git support ... You can compile and test out the latest version, but if you do have anything to contribute you have to submit it for Microsoft's approval." To get code upstream Microsoft has to approve (pretty typical), but the git branch is supposedly tracking the latest internal release candidate branch (a bit better than Google does with Android, even). Things seem to have changed quite a bit since the days of Shared Source (tm).

23 of 177 comments (clear)

  1. anyone see the flying pigs outside? by alen · · Score: 5, Funny

    i just looked and saw one fly past the empire state building

    1. Re:anyone see the flying pigs outside? by Robert+Zenz · · Score: 5, Funny

      I haven't seen any flying pigs, but a guy with red skin, horns and one hoof came to our door the other day, asking if we could lend him some blankets, his home just started to get chilly.

    2. Re:anyone see the flying pigs outside? by Nadaka · · Score: 4, Insightful

      Let me guess, you do all your code in vi?

      Or perhaps you write code by shaking a magnet over your hard drive in just the right way?

      Visual Studio is a good IDE regardless of your experience level. It is comparable to eclipse. Each has areas where it is a bit better than the other, but few major deficiencies.

    3. Re:anyone see the flying pigs outside? by luis_a_espinal · · Score: 3, Insightful

      I have to admit Visual Studios is a Decent IDE.

      Yes, it is...for beginners.

      Someone seems to have a fond for tooting his own game console l33t hax0r horn. That is one of the most meaningless, most juvenile posts I've seen in a while. What the hell does that mean anyways?

  2. Now if they'd do the same thing with MFC and AT... by Short+Circuit · · Score: 2

    ...my job would be easier. I have the source code. I hit the bugs. Sometimes it's even obvious how to fix them...

  3. ASP.NET MVC is OK, but C# is awesome by sideslash · · Score: 4, Insightful

    I guess Microsoft's MVC stuff is OK, and Razor in particular is comparable to the best of other frameworks out there, but their C# language is the primary glue that enables the awesomeness. C# is the top of the line within the Java-ripoff genre of languages, and I would like to see Microsoft take steps to help it be used more widely. I realize OSS purists will probably never be on board, and I understand why; but it's definitely not based on the quality of the technology.

  4. Visual Studio is decent, nothing more by bbbaldie · · Score: 2

    I've seen too many "developers" created with VS wizards, who didn't even know what language they were programming in (VB or C#? I don't know!). The apps they build technically work, but are slow, ungainly, and if something breaks, who knows how to fix it? That was SOP at the family-owned Fortune 500 I previously worked at. The open source programmers were forced out, now their whole development staff are dragging and dropping their way to app mediocrity. However, i can see real developers benefiting from this, especially if they can get their asp.net apps to run without IIS, the Windows GUI, and the rest of the usual MS overhead. On Linux and Apache, C# just might scream.

    1. Re:Visual Studio is decent, nothing more by terjeber · · Score: 5, Insightful

      I have seen the same (and worse) with people developing on JBoss and Java. What's your point? That some developers are bad? Honestly, working day-to-day in VS2010, NetBeans and Eclipse, VS is by a good margin the better IDE. C# is what Java could have become had its development not been handed over to Yet Another Committee With a Decision Making Disorder (TM). In many ways, C# is moving closer to good stuff like Ruby and Rails (and Sinatra). Look at what the Play! Framework guys did with version 2.0. Not implement it in C# obviously, but look at their rendering engine. Highly Razor inspired.

      Prior to v 6, IIS was junk. At 6 it was OK. IIS v7 is actually very good.

      On the other hand, if someone ever asks me again to maintain a Web Forms (often known as ASP.NET) project, I will decline the kind invitation. If they insist I will leave the company. Web Forms is (IMnsHO) an abomination. As is JSP. Same with the horror that is JBoss Seam.

    2. Re:Visual Studio is decent, nothing more by terjeber · · Score: 5, Insightful

      Ever have to chase down an issue running PHP with IIS?

      No, I have not, but I am not inclined to run PHP on IIS either. To be honest, I am about as likely to use PHP on any platform as I am to use Visual Basic 6 to do real work. PHP is Yet Another Abomination That Should Be Banned :-)

      I have friends who swear by Notepad++, for some reason I have never grown to like it. I think it is the simplicity of code + F5 + debug. VS2010 has a very, very capable debugger. I have not seen its like in any environment, but I have heard people say there are better debuggers for Smalltalk. I have so far not had to opportunity to work with Smalltalk.

      My list of preferred web application development environments in order of preference:

      1. Ruby with Sinatra (or Rails)
      2. Play! Framework using Scala
      3. ASP.NET MVC 4 and C# with the async CTP
      4. Play Framework and Java

      Things I have worked with that comes in the Abomination category - in no particular order.

      • ASP.NET Web Forms - programming language irrelevant
      • Anything with JBoss in it
      • Almost anything with J2EE in it
      • PHP or anything with BASIC in it (just felt like lumping them together, no special reason)
      • Most PERL stuff, but not all of it. PERL can be good and it can be bad. Depends on the task. Most PERL stuff can be done better in Ruby though.
    3. Re:Visual Studio is decent, nothing more by Literaphile · · Score: 3, Interesting

      Let me get this straight - you don't like PHP but you code with Ruby? You and I definitely disagree on the definition of "abomination".

    4. Re:Visual Studio is decent, nothing more by msobkow · · Score: 2

      I'd have to disagree on your point about JEE. The problem with JEE is only that, like C++, it's powerful and flexible enough to be easily abused. Which isn't surprising, since it's an integration of core concepts and technologies from such a wide variety of transaction processing tools and environments first, and a web service provider second.

      i.e. JEE was designed to replace software stacks like Encina and Tuxedo, including the integration of various messaging protocols. Although it supports web development, that was NOT the focus of the effort when it was created -- integrating the existing enterprise systems with one software stack was.

      And when you're tying together that many pieces of technology in a manner flexible enough to be useful, that means you're keeping things flexible enough for incompetent or uneducated programmers to seriously screw things up.

      But that doesn't make the tool itself bad -- it just helps highlight who qualifies as "competent" and who qualifies as "firing material."

      --
      I do not fail; I succeed at finding out what does not work.
  5. but this makes sense. by rickb928 · · Score: 2

    IANAP, but if:
    Windows 8 is focusing on HTML5 and JavaScript.
    Microsoft still wants to sell .NET tools...

    then open sourcing. NET makes sense. give away the handle, sell the blades.

    --
    deleting the extra space after periods so i can stay relevant, yeah.
    1. Re:but this makes sense. by shutdown+-p+now · · Score: 2

      Windows 8 is focusing on HTML5 and JavaScript.

      Win8 Metro apps can be written in any of: C++, C#/VB, JS (out of the box, third parties can add support to their own languages as well). Of those, I personally find C# to be the most convenient, simply because most Metro APIs are async only (to force developers to never block the UI thread with some expensive call), and C# has nice syntactic sugar for this in form of async/await, whereas in both C++ and JS you have to manually chain callbacks with x.then(y).

  6. Is Microsoft still evil? by gman003 · · Score: 5, Interesting

    All evidence points to Microsoft no longer being "evil". At worst, maybe jerks, but not evil:

    Internet Explorer is following standards about as well as everyone else
    Windows is no longer a horrible, bug-ridden mess - the main complaints are "it's too similar to the last one, no need to upgrade" and "they're changing the interface too much AND I DON'T LIKE IT"
    The 360 is fairly open, by console standards, even with "official" homebrew via XNA (you need to buy a license, but it's not a $100,000 developer's license)
    They've been submitting a lot of code to open-source, using *actual* open-source licenses
    Their stuff works well withttp://developers.slashdot.org/story/12/03/28/142228/microsoft-releases-aspnet-mvc-under-the-apache-license#h virtualization under Linux, and their VM will run Linux (face it, the Old MS would have made it near-impossible to run Windows within Linux)

    Now, they're still far from my favorite company, but I for one am willing to reclassify them from "lawful evil" to "lawful neutral".

    1. Re:Is Microsoft still evil? by jbernardo · · Score: 2

      No. I call Microsoft evil for the way the use NDAs when they are extorting money from companies using open source (I never wrote open source projects) with crap patents; it is evil in that it allows them to hide the merits (or more accurately, the lack of) and to avoid that the open source projects involved use alternatives that don't violate Microsoft's patents. If you don't know of Microsoft doing patent trolling with dubious patents, check the Motorola or Nook suits. They are suing for the use of open source projects, and using NDAs to try to hide the ridiculous patents that these projects might be infringing.

    2. Re:Is Microsoft still evil? by bws111 · · Score: 2

      Sun's dramatic turnaround? You mean the turnaround from being a thriving business to one that no longer exists? Somehow I don't think Microsoft is looking to make such a dramatic turnaround.

      IBM is not some open source 'angel' either. Sure, they have made some great contributions to open source projects. However, they wisely view open source as just another tool in their toolbox. They support open source as long as it benefits them. They do not belong to some open source religion. Sure, they support Linux. Why not? It allows them to sell some zSeries boxes they otherwise would not sell. They can use Linux in POS terminals, etc. However, they also support (with far more investment) AIX, z/OS, z/VM, DB2, Tivoli products etc. None of them are (or are ever likely to be) open source.

      It seems to me Microsoft has chosen the IBM 'open source when it benefits us' approach over the Sun 'kill the company with open source' approach. Wisely, I think.

  7. re Approval Required jibe by Richard_at_work · · Score: 3, Insightful

    To get code upstream Microsoft has to approve (pretty typical)

    So, tell me, which flag ship open source projects main branch can you just merge your code into without approval? The Linux kernel? Apache? X? MySQL? Firefox?

    Thats a fucking pathetic jibe "Unknown Lamer", not something an editor should be making.

    1. Re:re Approval Required jibe by jyx · · Score: 2

      To get code upstream Microsoft has to approve (pretty typical)

      So, tell me, which flag ship open source projects main branch can you just merge your code into without approval? The Linux kernel? Apache? X? MySQL? Firefox?Thats a fucking pathetic jibe "Unknown Lamer", not something an editor should be making.

      I read (pretty typical) as (this is standard practice for most big projects like this). It took your mini rant for me to consider that it could be derogatory.

      I'm all against editorials in my summaries, but I think your freaking out about the wrong thing here.

      (Unless of course it was meant in the way you have interpreted - in which case, yes, by all means fuck that guy right in the ear!)

  8. New Approach by Martz · · Score: 5, Interesting

    Microsoft now seem to have a really good grasp on how to deal with free software. They know they need to get developers and administrators to incorporate or use their products in part, rather than use the defacto standard free software, and that means they need to be interoperable and compatible.

    A conference I attended for CakePHP in Manchester 2011 was sponsored by Microsoft, they provided a 3 course meal and contributed towards the bar tab for attendees.

    They know the way to a geeks heart - food and beer - and they also know that they need to get free software communities to build support for Microsoft platforms as well as the free platforms. For example the CakePHP community, Microsoft went to great efforts to ensure that the MSSQL database abstraction class was improved by the core developers to better support the MS platform. Now I can at least choose between MySQL and MSSQL, and there's a chance I'd buy and license it for a particular application.

    This attitude from Microsoft isn't new, but I don't really see them being able to execute the "extinguish" part of their normal plan on GPL/BSD/MIT licensed software. Instead I can see them at grassroots level trying to make their platform relevant and make sure people can hook into it, but they get left on the sidelines.

  9. Re:Two Groups by craigtp · · Score: 4, Interesting

    It's not just developers and managers as groups. Remember, that these days Microsoft is a huge organisation and is full of many different divisions. There's Windows, Office, XBox, Windows Phone etc. amongst many others.

    The guys that are responsible for this move are the "Web Dev Div", who are a sub-group within the "Developer Division".

    It contains many people, including guys like Scott Guthrie, Scott Hanselman, Phil Haack (who recently left to join GitHub) etc., who have always done things that don't seem very Microsoft-like, like releasing ASP.NET MVC as an open-source product - albeit one that didn't accept outside contributions - back in 2009 along with such moves as bundling things like the open source jQuery library with Visual Studio and openly committing improvements back to the core project without trying the usual embrace, extend, extinguish tactics.

    Within certain parts of Microsoft, they can, have done, and are continuing to do some very interesting, worthwhile and generally community-friendly (and not-so-evil) work.

  10. Re:Now if they'd do the same thing with MFC and AT by Short+Circuit · · Score: 4, Informative

    And most people who work with it would like for it to die. Which Microsoft has actually been working at facilitating in various ways, between the whole .NET ecosystem and now the ability to write Metro apps in C++ against WinRT, leaving the C API out of the picture completely.

    Microsoft has made it entirely possible for many people who work with it to move on to different frameworks, but has responded to developer pressure to keep MFC alive and maintained. I doubt it's one of their priorities, but it's better than where things sat with the release of VS2008. VS2010 has improved MFC, and it sounds like VS2011 is marginally better, with its first-class support of C++.

    And while I'd love to ditch having my code support anything older than Vista, that's just not going to happen any time soon. My code isn't written for the mass market, it's written for specced use cases, which includes things like supporting WinXP and even (at times) Win2K. If you're writing a new application every year, or doing a major refactor of your code every couple years, you can keep with the times and depend on bleeding edge libraries.

    If you're working with a large legacy codebase with install sites over a decade old, you're not going to be jumping at Metro quite yet. It probably isn't going to be until Windows 9 before Microsoft stabilizes their new platform enough to be worth porting code forward. Look at 95 vs 98 vs ME, and then XP vs XPSP2 (which really could have been a new operating system...), and then Vista vs Win7. Microsoft tick-tocks between "what fresh hell is this?" and "Whew! That's a relief!".

  11. Re:Now if they'd do the same thing with MFC and AT by sideslash · · Score: 2

    Just using the word "framework" doesn't imply "MVC framework". Model-View-Controller is a specific software engineering design pattern that is not built into MFC to my knowledge.

  12. Re:Why Android? by gbjbaanb · · Score: 2

    yes, this is a "the entire internet runs on Linux", so yes, this is an arena where they compete and come off worse. No wonder they are desperately trying to extend their monopoly onto the web server marketplace just like the desktop.