|
|
I'm currently working on an MVC app myself. The only difference I found between the two is just a matter of preference. If you're used to the ASP.NET syntax of doing things, the ASPX engine would probably make more sense to you.
Razor takes some getting used to and I'm finding more examples of the Razor view code when Googling problems than I am using ASPX.
|
|
|
|
|
Dave Kreskowiak wrote: I'm finding more examples of the Razor view code when Googling problems than I am using ASPX
The most valid reason for using Razor IMHO.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Functionally Razor and ASP are equivalent I suppose , though razor does auto html-encode stuff after the @ . Around the time Razor came out, Scott Gu wrote this[^], the looping/conditional statement syntax is all kinds of win for me, I've yet to find a neat way to line up the <% brackets, especially around the curly braces.
tldr; pretty much nothing, unless you want a terser syntax (which I prefer).
|
|
|
|
|
It's the same as any 'which language is better' question, e.g. C# vs VB.net vs F#. They are functionally equivalent so use whichever one you like more.
|
|
|
|
|
Exactly, as an experienced developer you are likely to have patterns that accomplish things as well as MVC, in many cases your coding patterns may be more appropriate and better for any given situation(at least that's what I like to tell myself).
“That which can be asserted without evidence, can be dismissed without evidence.”
― Christopher Hitchens
|
|
|
|
|
I use it because I love C#. But realistically IIS is the wrong tool for the job I want to do. I wish I could have a simple to configure Web Server that easily scaled, didn't have myriads of problems with permissions, and doesn't "recycle" because it wants to.
If there were a way to use C# and ASP.NET without IIS I think I would. (Then again, I have done 0 research with that statement)
|
|
|
|
|
I don't know what the current level of support is like under Apache, but it used to be a little tedious do set it up to serve .Net. Things may have improved and been updated since that time (2007 or so).
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
I've written systems that do that, and it's a huge pain in the ass. While IIS has to be configured for some of the issues you brought up, I don't think anyone else will build a faster more scalable web server for windows. They moved http processing into a driver to optimize performance.
|
|
|
|
|
I use MVC for the web api
I use it because I have limited experience in the web and advanced knowledge in none web, so I use what I know.
That is the deciding factor for just about every situation that I need to choose a language.
Go with what you know best.
|
|
|
|
|
I did not read the entire thread so hopefully this isn't a repost...
The source
The biggest thing for my preference of razor is the expressive nature of it. I prefer patterns in code that let developers express what they want while the boring parts "just work".
The unit testability is nice I guess.
|
|
|
|
|
Little Johnny is working away furiously in the woodwork room when the teacher enters.
"what are you making there, Johnny?" he asks,
"a portable" replies Johnny. The teacher looks puzzled,
"a portable what?".
Johnny replies
"I don't know yet Sir, I've only made the handles!"
|
|
|
|
|
Don't get too carried away...
Anything that is unrelated to elephants is irrelephant Anonymous ----- The problem with quotes on the internet is that you can never tell if they're genuine Winston Churchill, 1944 ----- I'd just like a chance to prove that money can't make me happy. Me, all the time
|
|
|
|
|
Johnny has a definite future in management.
According to my calculations, I should be able to retire about 5 years after I die.
|
|
|
|
|
We all know what you would of made!
Every day, thousands of innocent plants are killed by vegetarians.
Help end the violence EAT BACON
|
|
|
|
|
|
Collin Jasnoch wrote: Any one know where a downloadable PDF of this[^] is? Right click, Print, choose a PDF printer.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
The EF version on codeplex is under Apache 2.0. So maybe that's what you need.
|
|
|
|
|
I created one for you. Download it here[^].
What do you get when you cross a joke with a rhetorical question?
|
|
|
|
|
There's a license?!
You'll never get very far if all you do is follow instructions.
|
|
|
|
|
Grown man threaten to leave because not enough fuss was made of his Birthday. He's 31 FFS. He earns more in one week (£200,000) than I do in a year or even 4 years. Yet despite giving him a cake, and singing him Happy Birthday, this was not enough to please him and now he is upset.
In the real world your Boss doesn't give a poo when your Birthday is, and even if he did, you still have to bring in your own cakes. If my Boss paid me 200,000k a week he could forget my name for all I care.
For those of you that don't know what I'm on about here's the context[^]
|
|
|
|
|
Blue Waffler wrote: Grown man but not adult apparently...
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|
|
To be fair, he does have to work in Manchester so he deserves the danger money.
|
|
|
|
|
If I was hanging out with other millionaires and they celebrated my birthday with a freakin' cake I'd go get wasted and wrap by Mercedes around a light pole. Really, that sort of response is millionaire 101. Get it right next time.
|
|
|
|
|
He was probably expecting oil wells.
|
|
|
|