Click here to Skip to main content
15,908,115 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: MVC View Engines Pin
Suvabrata Roy21-May-14 4:16
professionalSuvabrata Roy21-May-14 4:16 
GeneralRe: MVC View Engines Pin
Dave Kreskowiak21-May-14 4:23
mveDave Kreskowiak21-May-14 4:23 
GeneralRe: MVC View Engines Pin
Suvabrata Roy21-May-14 5:29
professionalSuvabrata Roy21-May-14 5:29 
GeneralRe: MVC View Engines Pin
thatraja21-May-14 4:25
professionalthatraja21-May-14 4:25 
GeneralRe: MVC View Engines Pin
Suvabrata Roy21-May-14 5:28
professionalSuvabrata Roy21-May-14 5:28 
GeneralRe: MVC View Engines Pin
newton.saber21-May-14 5:50
newton.saber21-May-14 5:50 
GeneralRe: MVC View Engines Pin
Suvabrata Roy21-May-14 18:18
professionalSuvabrata Roy21-May-14 18:18 
GeneralRe: MVC View Engines PinPopular
Marc Clifton21-May-14 4:15
mvaMarc Clifton21-May-14 4:15 
John Simmons / outlaw programmer wrote:
Razor is used a lot. But why? What makes it better?


IMO, nothing.

Razor is ultimately a response by Microsoft et al. "look, we can do MVC too" and open source it, etc.

After having written and worked on several Ruby on Rails apps that employ MVC and all this embedded scripting (erb, slim, whatever) I can definitively say that, while it's slick, it's slick in a sort of slimy, geek-virgin way. Nothing becomes more unreadable faster than HTML embedded with [language of your choice] + JavaScript + jQuery + [whatever] + CSS.

On the other hand, I probably have my head up my arse in not accepting the conventions, the "idiomatic way of doing things"
, which I think is actually "the idiotic way of doing things."

On the gripping hand, I'm taking a completely radical, alternate reality approach. This is what my "view" files look like nowadays:

<%= @style %>
<%= @html %>
<%= @javascript %>


Everything is server-side generated, hopefully as I build up the toolset, from a re-usable library of standard behaviors.

Oh, and the abstraction of MVC is awesome, the reality sort of sucks, because it's actually more typing, not less, and it's amazing how many corners a cube can have in which you can paint yourself into, and then make really ugly workarounds because pure MVC leaves some horrendous skid marks when the rubber hits the road.

I'll stop now. Smile | :)

Marc
GeneralRe: MVC View Engines Pin
Jeremy Falcon21-May-14 4:20
professionalJeremy Falcon21-May-14 4:20 
GeneralRe: MVC View Engines Pin
User 483504721-May-14 5:00
User 483504721-May-14 5:00 
GeneralRe: MVC View Engines Pin
C Grant Anderson30-May-14 5:37
professionalC Grant Anderson30-May-14 5:37 
GeneralRe: MVC View Engines Pin
Marc Clifton30-May-14 8:34
mvaMarc Clifton30-May-14 8:34 
GeneralRe: MVC View Engines PinPopular
Pete O'Hanlon21-May-14 4:20
mvePete O'Hanlon21-May-14 4:20 
GeneralRe: MVC View Engines Pin
Jeremy Falcon21-May-14 4:22
professionalJeremy Falcon21-May-14 4:22 
GeneralRe: MVC View Engines Pin
#realJSOP21-May-14 4:23
professional#realJSOP21-May-14 4:23 
GeneralRe: MVC View Engines Pin
Pete O'Hanlon21-May-14 4:37
mvePete O'Hanlon21-May-14 4:37 
GeneralRe: MVC View Engines Pin
Shameel21-May-14 4:55
professionalShameel21-May-14 4:55 
GeneralRe: MVC View Engines Pin
Pete O'Hanlon21-May-14 4:58
mvePete O'Hanlon21-May-14 4:58 
GeneralRe: MVC View Engines Pin
#realJSOP21-May-14 7:54
professional#realJSOP21-May-14 7:54 
GeneralRe: MVC View Engines Pin
Kornfeld Eliyahu Peter21-May-14 4:23
professionalKornfeld Eliyahu Peter21-May-14 4:23 
GeneralRe: MVC View Engines Pin
Pete O'Hanlon21-May-14 4:37
mvePete O'Hanlon21-May-14 4:37 
GeneralRe: MVC View Engines Pin
Kornfeld Eliyahu Peter21-May-14 5:29
professionalKornfeld Eliyahu Peter21-May-14 5:29 
GeneralRe: MVC View Engines Pin
#realJSOP21-May-14 7:55
professional#realJSOP21-May-14 7:55 
GeneralRe: MVC View Engines Pin
Simon_Whale21-May-14 4:24
Simon_Whale21-May-14 4:24 
GeneralRe: MVC View Engines Pin
Kornfeld Eliyahu Peter21-May-14 4:26
professionalKornfeld Eliyahu Peter21-May-14 4:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.