|
Well, after you try to cut though all the hype, what remains is the promise of better automated testing, better separation of layers (which you can do with a good web form architecture too), no ViewState, which is supposed to be very bad, but can be turned off anyway.
In the end if this is what the customers want and offer good money/jobs, you gotta go with the flow.
(Edit)
BTW there is a very neat way to bypass the whole ORM crap if you want. Developed a simple library, that enables you to use SQL/stored procs in very familiar way and pass the DataTables directly as JSON to the client JavaScript and in the JavaScript they behave exactly like the serialized object lists that get generated by the Entity Framework. Very neat actually. Will try to push the bosses for the next production project in that direction
modified 20-Oct-19 21:02pm.
|
|
|
|
|
Sitalkes wrote: better automated testing,
Yeah - testing is something I need to get my head around with the Javascript side of things - testing of Web Services is all reasonably simple but I'm unfamiliar with automated JS testing.
Separation of layers - while MVC does that well, I think a simple web service as a layer, JS view model as a layer and HTML5 view as a layer is about as separate as you can get.
Viewstate - yeah - always tended to turn it off anyway!
Sitalkes wrote: BTW there is a very neat way to bypass the whole ORM crap if you want.
I want!
Sitalkes wrote: enables you to use SQL/stored procs in very familiar way and pass the DataTables directly as JSON
DataTables in their entirety, or just the data therefrom? I'd normally use DataReader to populate POCOs and JSONify them - but would think about a library to go from DataReader straight to JSON...
Sitalkes wrote: Will try to push the bosses for the next production project in that direction
... and write a CP article?
Sitalkes wrote: you gotta go with the flow.
Yeah - I'm just trying to go with the next flow - I believe that vanilla HTML / Javascript / Ajax with JSON web services is the way to go - I just don't understand where ASP.NET WebForms or MVC comes into the equation (I'm thinking not at all)
MVVM # - I did it My Way
___________________________________________
Man, you're a god. - walterhevedeich 26/05/2011
.\\axxx
(That's an 'M')
|
|
|
|
|
DataTables in their entirety, or just the data therefrom? I'd normally use DataReader to populate POCOs and JSONify them - but would think about a library to go from DataReader straight to JSON...
Nope, a part of it you can take from right here in CodeProject.
DataTable To JSon[^]
^ Not my article
Edit: actually the trick is NOT to go the whole way to string
But to pass to the View the list of Dictionaries. MVC is internally using then the System.Web.Script.Serialization.JavaScriptSerializer();
modified 20-Oct-19 21:02pm.
|
|
|
|
|
I agree, but only because it's designed to write applications that serve web pages, instead of hide all that silly html and server stuff from you so you don't have to bother learning any of it.
|
|
|
|
|
I'm digging into my first MVC project as well, and that's one of the first things that came to mind, that I was back in the client side mess formerly known as classic ASP. Yuck. Although I am enjoying MVC overall.
|
|
|
|
|
?
We can’t stop here, this is bat country - Hunter S Thompson RIP
|
|
|
|
|
The Darleks away...hence all the chocolate posts...
|
|
|
|
|
Are you suggesting that DBC is DD's alter-ego?
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Well, have you ever seen them in the same place at the same time physically?
|
|
|
|
|
You isn't you when you are hungry
|
|
|
|
|
Have you been to Luton to verify such facts? you brave brave man
Every day, thousands of innocent plants are killed by vegetarians.
Help end the violence EAT BACON
|
|
|
|
|
Moi, little old me, brave... no, medals for others I will bravely cheer them on , As for Luton, I believe the old saying 'Here Be Monsters' covers that.
|
|
|
|
|
Luton's fine as long as you take a few cans of Special Brew for the natives (well, crates really)!
"State acheived after eating too many chocolate-covered coconut bars - bountiful"
Chris C-B
|
|
|
|
|
Special Brew!! They are some pampered Natives! Down here you can get away with Fosters, Black Label if you want your tires still drivable...
|
|
|
|
|
In Luton you get to marry their daughters for Fosters.
For Special Brew you don't get to marry the daughter...
|
|
|
|
|
Ahh in Bristol the answer is 'Harry De? Woz you on m8', or in the Queens English 'Marry Me?, may ask what is that my friend'...
|
|
|
|
|
In Luton it's a bit like an arranged marriage:
1) They want her out of the house ASAP - she is costing 'em a fortune in shell suits and the child support runs out at 16.
2) If you don't marry 'em, you get arranged...
Take the Tramps Brew Of Choice - you know it makes sense.
|
|
|
|
|
Well if he is my alter-ego then I wish he'd help with the bl**dy CCC once in a while!
Anyway, we have been in "the same place at the same time physically" (I'm not afraid of Luton!) but it was rather uncomfortable so I asked him to move his Dalek outfit off my foot ... ASAP
"State acheived after eating too many chocolate-covered coconut bars - bountiful"
Chris C-B
|
|
|
|
|
Ummm OKAY
|
|
|
|
|
Is the for Me+DD being one person or just a comment on Luton?
"State acheived after eating too many chocolate-covered coconut bars - bountiful"
Chris C-B
|
|
|
|
|
It was a case a case of one emoticon does both.
|
|
|
|
|
glennPattonWork wrote: It was a case a case of one emoticon does both
Cheapskate!
"State acheived after eating too many chocolate-covered coconut bars - bountiful"
Chris C-B
|
|
|
|
|
|
That just sounds like such a bad idea.., while being cool!
|
|
|
|
|
I see the next redneck sport coming out of this.
"Hay Cletus! Let's order up some o dem ladies 'undies an' shoot dem Amerzons outta da sky when dey comes!"
It was broke, so I fixed it.
|
|
|
|