tag:blogger.com,1999:blog-15136575.post4821079421518920919..comments2023-10-17T12:00:16.772+01:00Comments on Code rant: Time To Consider Node.js?Mike Hadlowhttp://www.blogger.com/profile/16441901713967254504noreply@blogger.comBlogger9125tag:blogger.com,1999:blog-15136575.post-8024815248775780522012-05-14T15:52:16.396+01:002012-05-14T15:52:16.396+01:00Code rant is a good title, this is a rant more tha...Code rant is a good title, this is a rant more than anything. Node.js is new and built entirely around async up front, so does it have a better async story at this minute? Probably.<br /><br />Will it have a better async story than .NET 4.5 come November? Absolutely not.<br /><br />Also the software stack of ASP.NET has been matured over nearly a decade now. Sure there's still some aberrations in it (mostly from Micrsoft's fear of breaking changes) like membership, but there's huge extensibility to improve upon areas even if they're legacy.<br /><br />Show me how you would achieve the aspect orientated programming that the ASP.NET MVC pipeline provides in Node.js. I guarantee you it will not be like [MyActionFilter] and magic ensues.Chris Marisichttps://www.blogger.com/profile/08904925342941324684noreply@blogger.comtag:blogger.com,1999:blog-15136575.post-43534813703316622972012-05-14T10:05:58.609+01:002012-05-14T10:05:58.609+01:00Iain, Jake, Great 4.5 examples.
EJB, yes, that&#...Iain, Jake, Great 4.5 examples. <br /><br />EJB, yes, that's a killer feature.<br /><br />Rohit, great link, I hadn't seen that.<br /><br />NTCoding, sorry for the poor example. Check out the Node website there's a load of interesting stuff there.<br /><br />Anonymous, you're implying that I'm more intelligent than is actually the case. Oh that I was brainy enough to actually 'contrive' a bad example ;)<br /><br />Thanks for the great comments guys.Mike Hadlowhttps://www.blogger.com/profile/15393720749809796178noreply@blogger.comtag:blogger.com,1999:blog-15136575.post-16113303862005784652012-05-13T03:51:04.633+01:002012-05-13T03:51:04.633+01:00Also read http://teddziuba.com/2011/10/node-js-is-...Also read http://teddziuba.com/2011/10/node-js-is-cancer.htmlRohithttp://rohiton.netnoreply@blogger.comtag:blogger.com,1999:blog-15136575.post-62968280628979821272012-05-12T14:44:09.446+01:002012-05-12T14:44:09.446+01:00Actually, node.js has _no_ killer features. Jake S...Actually, node.js has _no_ killer features. Jake Scrott shows in the comments how to to this with C# 5. The handler example was contrived to make C# come out as bad as possible.<br /><br />Considering the C# 5 example, what more does node offer? Nothing. But a lot less in other places.<br /><br />It is nearly worthless. I can't think of any production project at all where I'd use it.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-15136575.post-55950422519167332252012-05-12T01:20:01.974+01:002012-05-12T01:20:01.974+01:00Mike how about security? I have been looking for ...Mike how about security? I have been looking for a good example but have not found one on the windows stack. I assume since it's offered on Azure that there must be one. If you come across one would you consider doing a post on the subject? Thanks...Jason Wyglendowskinoreply@blogger.comtag:blogger.com,1999:blog-15136575.post-81982610080300116142012-05-11T23:25:40.998+01:002012-05-11T23:25:40.998+01:00Node may have many killer features - I don't k...Node may have many killer features - I don't know.<br /><br />This is poor example of why a .NET dev should consider it, though, imo.<br /><br />Give me more reasons and I'll happily listen.Nickhttps://www.blogger.com/profile/04872151238552775698noreply@blogger.comtag:blogger.com,1999:blog-15136575.post-6531538841450440502012-05-11T16:13:47.136+01:002012-05-11T16:13:47.136+01:00Food for thought regardless of C#5
If we can xcop...Food for thought regardless of C#5<br /><br />If we can xcopy deploy a node server too, then, well now we're talking...Ed Blackburnhttps://www.blogger.com/profile/17045008823330793876noreply@blogger.comtag:blogger.com,1999:blog-15136575.post-78270976984003839632012-05-11T15:52:11.421+01:002012-05-11T15:52:11.421+01:00using System.Diagnostics;
using System.Net.Http;
u...using System.Diagnostics;<br />using System.Net.Http;<br />using System.Net.Http.Headers;<br />using System.Threading.Tasks;<br />using System.Web.Http;<br /><br />namespace MvcApplication2.Controllers<br />{<br /> public class ValuesController : ApiController<br /> {<br /> public async Task> Get()<br /> {<br /> Debug.Write("GET /api/values/");<br /> await TaskEx.Delay(1000);<br /> Debug.Write("GET /api/values/ DONE");<br /> return new HttpResponseMessage("ok", new MediaTypeHeaderValue("text/html"));<br /> }<br /> }<br />}Jake Scotthttps://www.blogger.com/profile/17129528655619003703noreply@blogger.comtag:blogger.com,1999:blog-15136575.post-18513387207234150352012-05-11T15:44:11.234+01:002012-05-11T15:44:11.234+01:00Mike,
Just for you info, as part of .net 4.5, the...Mike,<br /><br />Just for you info, as part of .net 4.5, the new Await and Task API, you are able to do public aysnc void() { Await Task.Wait(1000); }}<br /><br />Maybe something you may want to consider.<br /><br />Cheers<br /><br />IainIain Partingtonhttps://www.blogger.com/profile/10163202880755422019noreply@blogger.com