TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: The current state of DotNet Web development

8 点作者 DamonOehlman超过 14 年前
Hey Guys,<p>I've been out of DotNet development for a few years (was pretty experienced with 2.0). What are people's current favourite frameworks / approaches for DN development these days. Definitely keen to hear about what people are doing in the land of alt.net as things were starting to get pretty useful even back in the 2.0 days.<p>BTW, I'm not looking for 'best practice' as I actually don't think such a thing exists, and when people say things like 'best practice approach' I break out in a nasty rash ;)<p>Nice to have features would be RESTful support and having simple lightweight JSON serialization would be a plus. If the best option is just vanilla DN MVC then I'll go and check it out, but I was interested to hear about alternative options before I start deeper investigation...<p>Thanks in advance for any suggestions :)<p>Cheers, Damon.

8 条评论

interscaperob超过 14 年前
.NET 4 is fantastic, and highly productive. There are plenty of cool things you can do with the Entity Framework, and WCF Data Services, to get your data tier built quickly, and give you 100% queryable web services that support both OData and JSON without mush hassle.<p>On the MVC side, ASP.NET MVC 3 is due out any day now, and they have a new rails-like Razor syntax that can really cut down on the coding, if you're into that sort of thing. These days, I do most of my work in Silverlight, because I like rich applications.<p>If you want to learn how to do these things, Channel9 on MSDN is a HUGE help, with plenty of videos and training on a variety of topics.<p>I personally think that now is the best time to be a .NET developer... .NET 4 really makes things easy without a whole lot of effort. If you get the option to start from scratch and not have to take a lot of legacy, BS decisions with you, you'll go far quickly.<p>HTH!<p>Robert McLaws <a href="http://www.windows-now.com" rel="nofollow">http://www.windows-now.com</a>
Aaronontheweb超过 14 年前
ASP.NET MVC3 is chugging along nicely - I've been using it my new projects and the Razor syntax they introduced has been a huge productivity booster for me. It makes it easier to transition from markup in the view to code (imagine doing (&#60;div&#62;@Model.Property&#60;/div&#62; instead of &#60;div&#62;&#60;%: Model.Property %&#62;&#60;/div&#62;) and it makes it easier to read.
评论 #2003360 未加载
johns超过 14 年前
For the RESTful stuff, there's a big push by the WCF team (now with Glenn Block of MEF fame) to build an HTTP framework: <a href="http://wcf.codeplex.com/wikipage?title=WCF%20HTTP" rel="nofollow">http://wcf.codeplex.com/wikipage?title=WCF%20HTTP</a> There's also a half dozen Sinatra clones. MVC is still a strong option and MVC3 is about to be released. Another popular OSS server framework is OpenRasta. For REST clients, check out Hammock (hammock.codeplex.com) and RestSharp.org (which is my project).<p>JSON is still a mess in .NET. System.Json should be the answer, but it's not everywhere (it's in Silverlight but not the desktop or phone frameworks). JSON.NET is still the best option. There are some other up and coming JSON libs as well.<p>Any other questions or areas of concern?
评论 #2003322 未加载
评论 #2003344 未加载
DamonOehlman超过 14 年前
For those tracking the thread, current short list:<p>Server Frameworks<p>- ASP.NET MVC3 (<a href="http://www.asp.net/mvc/mvc3" rel="nofollow">http://www.asp.net/mvc/mvc3</a>)<p>- OpenRasta (<a href="http://trac.caffeine-it.com/openrasta" rel="nofollow">http://trac.caffeine-it.com/openrasta</a>)<p>- Kayak (<a href="http://kayakhttp.com/" rel="nofollow">http://kayakhttp.com/</a>)<p>REST Clients (not needed straight away but will be handy)<p>- Hammock (<a href="http://hammock.codeplex.com/" rel="nofollow">http://hammock.codeplex.com/</a>)<p>- RestSharp (<a href="http://restsharp.org/" rel="nofollow">http://restsharp.org/</a>)<p>Thanks for the comments so far, it's going to make things a lot simpler.<p>Cheers, Damon.
gcaprio超过 14 年前
I've used ASP.NET MVC since 1.0 ( ~2 years ago ) for a few projects. It's a pretty nice framework. It's still evolving, so it's not quite RoR/Django yet, but it's really close. I wouldn't go near WebForms anymore, though you can integrate the two.<p>Aside from ASP.NET MVC, there's a few other frameworks out there. You can check out the web parts of Spring.Net ( <a href="http://www.springframework.net/docs/1.3.0/reference/html/spring-web.html" rel="nofollow">http://www.springframework.net/docs/1.3.0/reference/html/spr...</a> ) or MonoRail from Castle ( <a href="http://www.castleproject.org/castle/projects.html" rel="nofollow">http://www.castleproject.org/castle/projects.html</a> )
Encosia超过 14 年前
I've been very happy with ASP.NET MVC 3's support for the new Razor view engine. I took the leap early and built a couple production apps on that platform. All has been well, thus far.<p>Exposing your models as RESTful endpoints that return JSON is still accomplished easily enough easy via controller actions that return JsonResult. You can return any object that JavaScriptSerializer can serialize by simply using `return Json(object);`.
评论 #2003382 未加载
troygoode超过 14 年前
Take a look at this for details on various alternative servers that have been springing up lately:<p><a href="http://mikehadlow.blogspot.com/2010/12/explosion-of-alternative-web-frameworks.html" rel="nofollow">http://mikehadlow.blogspot.com/2010/12/explosion-of-alternat...</a>
jacksonh超过 14 年前
Kayak and OpenRasta might suit your needs.
评论 #2003359 未加载