So I'm creating a website and I have Linux or Windows Server available to me, so should I go asp.net or PHP? I know basics of each, but can't choose. Which offers more features? Difficulty doesn't matter. Thankses!
[url=http:/civis/viewtopic.php?p=27285203#p27285203:643ekngg said:Ardax[/url]":643ekngg]Do both: PHP on Windows.
Really, which to choose depends on a host of other factors.
[url=http:/civis/viewtopic.php?p=27287525#p27287525:1s0egn2p said:Richard Berg[/url]":1s0egn2p]avoid PHP like the plague
[url=http:/civis/viewtopic.php?p=27287733#p27287733:3jorhm2w said:Ravensroke[/url]":3jorhm2w]Neither. ASP.Net on Windows or something Python or JVM based on Linux.
[url=http:/civis/viewtopic.php?p=27287885#p27287885:3m4qemd8 said:chaoticlapras[/url]":3m4qemd8]I meant asp.net, but yeah. Python... Why is everyone obsessed with it, it's horrible.
[url=http:/civis/viewtopic.php?p=27288399#p27288399:1o1ysz9j said:Ravensroke[/url]":1o1ysz9j][url=http:/civis/viewtopic.php?p=27287885#p27287885:1o1ysz9j said:chaoticlapras[/url]":1o1ysz9j]I meant asp.net, but yeah. Python... Why is everyone obsessed with it, it's horrible.
You don't know jack about server-side web technology (as evidenced by you having to ask this question in the first place) and you have the gall to dismiss something that's quite popular and that powers some fairly large web applications as "terrible". Your willful ignorance is entertaining.
[url=http:/civis/viewtopic.php?p=27288435#p27288435:3chvwyam said:chaoticlapras[/url]":3chvwyam]I just find Python difficult to work with personally
I would extend this statement to "standard" ASP.NET at this point as well. Standard ASP.NET is worlds better than Classic ASP, but it's still not a particularly good solution. It's server based web pages, with an event-driven model relying heavily on postbacks to deliver information to the server to act on. You can use AJAX with it but it's a pain (really, the AJAX toolkit overpromises, underdelivers and makes everything a pain to work with when building things).[url=http:/civis/viewtopic.php?p=27287525#p27287525:3o97wizp said:Richard Berg[/url]":3o97wizp]If the "ASP" in question were the 90s "classic" variety, it would be important to stay far far away.
First, there was perl. Perl was insanely popular. But when people started writing real software in it rather than little scripts, it became apparent that the language itself was fundamentally not well designed for writing maintainable, bug-free software. The plethora of side-effects and syntactic shortcuts led to most programs being unreadable to anyone other than the person who just wrote them -- and even to him after a month or two of not working with the code daily.I'm just stating that I don't see why everyone has suddenly moved to it.
OTOH, you can make pretty pictars with it that actually do stuff.[url=http:/civis/viewtopic.php?p=27294031#p27294031:2jzr48yn said:Pont[/url]":2jzr48yn]...it[Perl] became apparent that the language itself was fundamentally not well designed for writing maintainable, bug-free software.
[url=http:/civis/viewtopic.php?p=27294031#p27294031:r36yr42q said:Pont[/url]":r36yr42q]First, there was perl. Perl was insanely popular. But when people started writing real software in it rather than little scripts, it became apparent that the language itself was fundamentally not well designed for writing maintainable, bug-free software. The plethora of side-effects and syntactic shortcuts led to most programs being unreadable to anyone other than the person who just wrote them -- and even to him after a month or two of not working with the code daily.I'm just stating that I don't see why everyone has suddenly moved to it.
True, but the object model and current best practice has been changing pretty frequently - see HttpResponseMessage vs IHttpActionResult - never mind the changes coming down the pike with Owin/Katana. It wouldn't be so bad if everything was documented well, but current info is scattered across blog posts, StackOverflow, MSDN, CodePlex, etc.Pont":24z5mw2u said:Not really. ASP.NET MVC for web pages and ASP.NET WebApi for REST services. It's been that way for a while.
[url=http:/civis/viewtopic.php?p=27295099#p27295099:2vayjyv2 said:CanSpice[/url]":2vayjyv2]
You can write unmaintainable code in any language.
[url=http:/civis/viewtopic.php?p=27295099#p27295099:acj88yew said:CanSpice[/url]":acj88yew]
You can write unmaintainable code in any language.
Yes, you can. But it's really hard to write maintainable code in perl. I say this as someone who has spent 6 years of his career as a perl programmer. I loved perl for a lot of reasons. But it's good that the industry has mostly moved on.You can write unmaintainable code in any language.
[url=http:/civis/viewtopic.php?p=27295289#p27295289:1jzlsc4c said:SituationSoap[/url]":1jzlsc4c][url=http:/civis/viewtopic.php?p=27295099#p27295099:1jzlsc4c said:CanSpice[/url]":1jzlsc4c]
You can write unmaintainable code in any language.
Regurgitating the idea that somehow all languages are equivalent because anyone can write crappy code in any of them is unthinking drivel. Some languages are better than others at certain classes of problems, and nearly everything is better than perl in nearly every context, in large part because it's been forever since an update was released. Trying to pretend otherwise is vapid.
Those two focus on very different use cases. HttpResponseMessage is used to craft a response directly to the browser with a standard HTTP status code and result/error response (and exists in the System.Web.Http namespace, the same namespace as WebAPI's core functionality uses). HttpActionResult is used to tell the MVC framework that you want to trigger a specific action on a specific controller. I won't argue that the latter is newer than the former (by virtue of WebAPI being newer) but they don't serve the same purpose at all.[url=http:/civis/viewtopic.php?p=27295143#p27295143:kjfdrxby said:Ardax[/url]":kjfdrxby]True, but the object model and current best practice has been changing pretty frequently - see HttpResponseMessage vs IHttpActionResultPont":kjfdrxby said:Not really. ASP.NET MVC for web pages and ASP.NET WebApi for REST services. It's been that way for a while.
I have to admit I'm not familiar with either of these. A cursory search makes me think that OWIN is going to be easily ignorable by most web developers. Unless they really need it (kind of like MEF which itself is in flux)....never mind the changes coming down the pike with Owin/Katana...
When it comes to released features I haven't had much difficulty with finding the basics on MSDN. Admittedly I'm not using the absolute latest and greatest (MVC 4 and first release WebAPI). Most of the documentation I find on CodePlex from Microsoft is related to unofficial tools and framework extensions and SO is, of course, not really documentation and shouldn't be lumped in as such. It's closer to this sub forum "Help, I've got a problem. How do I fix it?". If there's a real documentation problem it's that quite often there's stuff on ASP.NET that should be in the official MSDN documentation but isn't (for what reasons I can't fathom).It wouldn't be so bad if everything was documented well, but current info is scattered across blog posts, StackOverflow, MSDN, CodePlex, etc.
IHttpActionResult was created to wrap HttpResponseMessage, more or less. You could also build pipelines that took and returned IHttpActionResults, which isn't too different from what you could do with HttpResponseMessage.krimhorn":1dpsqg7z said:HttpActionResult is used to tell the MVC framework that you want to trigger a specific action on a specific controller.
OWIN is the future of ASP.NET -- it's what MVC 6 is based on. There's a lot of nice work and good things coming, but it's not going to be an entirely seamless transition.A cursory search makes me think that OWIN is going to be easily ignorable by most web developers.
Because documentation is lagging, as usual. Entity Framework's been bad for that too.If there's a real documentation problem it's that quite often there's stuff on ASP.NET that should be in the official MSDN documentation but isn't (for what reasons I can't fathom).
That's what I get for not being on the latest and greatest. What a terrible choice for a name. Confusion is understandable in that case. It certainly got me (I didn't notice the interface defining character on the class name :/ ).[url=http:/civis/viewtopic.php?p=27296881#p27296881:1iwiwrmr said:Ardax[/url]":1iwiwrmr]IHttpActionResult was created to wrap HttpResponseMessage, more or less. You could also build pipelines that took and returned IHttpActionResults, which isn't too different from what you could do with HttpResponseMessage.krimhorn":1iwiwrmr said:HttpActionResult is used to tell the MVC framework that you want to trigger a specific action on a specific controller.
[url=http:/civis/viewtopic.php?p=27296881#p27296881:23icqomc said:Ardax[/url]":23icqomc]Because documentation is lagging, as usual. Entity Framework's been bad for that too.
Do they have any information on the MEF roadmap and how it will work with MVC 6 (or, indeed, if it's supplanted)? I'd read that the MEF2 release was supposed to make it trivial to essentially create an MVC application "plugin" but that work was put on hold for various, unspecified, reasons.[url=http:/civis/viewtopic.php?p=27296955#p27296955:ae304rsd said:Ardax[/url]":ae304rsd]Exactly. MVC 6 looks like it's going to smooth out all of those warts where things have grown organically over time. Between now and then though, things are... messy.
[url=http:/civis/viewtopic.php?p=27295689#p27295689:fmiq8qzc said:CanSpice[/url]":fmiq8qzc]Trolling aside, I'd like to point out that the last update was released two months ago.
I've never used MEF so I haven't been looking, but I haven't seen anyone say anything about it either. I think MS's plans are for you to Bring Your Own Container (Linky), so there's no explicit plans for Unity or MEF. It looks like that with all the Roslyn stuff "plugins" are just a matter of dropping extra assemblies (or even just code) into the folder where the site's located.Do they have any information on the MEF roadmap and how it will work with MVC 6 (or, indeed, if it's supplanted)?
Yeah, that's basically MEF's process as well. Which is unfortunate as it requires more balancing of assemblies than we were looking to do. Some of what I'd read that the MVC5/MEF2 integration was going to enable are truly external assemblies (loaded via a CompositeCatalog with multiple DirectoryCatalogs) instead of assemblies that had to exist within the specified folders (generally \bin or the application's shadow directory) in order for the framework to be able to use them.[url=http:/civis/viewtopic.php?p=27299209#p27299209:2xdrvoim said:Ardax[/url]":2xdrvoim]I've never used MEF so I haven't been looking, but I haven't seen anyone say anything about it either. I think MS's plans are for you to Bring Your Own Container (Linky), so there's no explicit plans for Unity or MEF. It looks like that with all the Roslyn stuff "plugins" are just a matter of dropping extra assemblies (or even just code) into the folder where the site's located.Do they have any information on the MEF roadmap and how it will work with MVC 6 (or, indeed, if it's supplanted)?
[url=http:/civis/viewtopic.php?p=27291205#p27291205:15le6d70 said:krimhorn[/url]":15le6d70]I would extend this statement to "standard" ASP.NET at this point as well. Standard ASP.NET is worlds better than Classic ASP, but it's still not a particularly good solution. It's server based web pages, with an event-driven model relying heavily on postbacks to deliver information to the server to act on. You can use AJAX with it but it's a pain (really, the AJAX toolkit overpromises, underdelivers and makes everything a pain to work with when building things).[url=http:/civis/viewtopic.php?p=27287525#p27287525:15le6d70 said:Richard Berg[/url]":15le6d70]If the "ASP" in question were the 90s "classic" variety, it would be important to stay far far away.
If you're going to be using ASP.NET and you need a full framework then ASP.NET MVC is the preferred way to go. If you just need server endpoints for XmlHTTPRequests to hit and will be using plain old HTML/CSS/JS then WebAPI is what you'd want to use.
So far, I'm not convinced, but to be fair, I am still an entry-level player to MVC. We're looking at alternatives for our current situation, and I'm feverishly trying to grab as much info on MVC as I can.[url=http:/civis/viewtopic.php?p=27310897#p27310897:1mf0sbbn said:Drizzt321[/url]":1mf0sbbn]I have heard some pretty good things about the newer ASP.NET with their MVC framework though. Not a bad way to go.