News for hackers. Stuff that matters.
Re:What web developers thought of in the noughties as being ... by mattmanser on Friday May 16, 2014 @11:10AM (#7755876)
I'll tell you one thing that I do not doubt. The splitting of the M, V & C is far better than bundling them in one page.

I'd take a crap MVC design over the pre-MVC stuff I worked on any day of the week.

The thing you don't seem to be saying is what you're doing instead? You're just waving hands at the moment and saying it's bad, but it used to be much worse.

Re:What web developers thought of in the noughties as being ... by jerf on Friday May 16, 2014 @01:02PM (#7756492)
"The thing you don't seem to be saying is what you're doing instead?"

DRY. Just, DRY. If DRY leads you to MVC, rock on. But DRY is the real thing. It isn't a framework, and you have to think about it. But it's what you're really trying to do.

You're trying to define yourself the win by imputing to me a motivation to go "back" to crappy design. It's quite disingenuous, since I just got done complaining that MVC is often a crappy design, and logically concluding from that that I must want crappy designs is ludicrous once I call it out.

And if you further feel inclined to say "But you didn't give me an answer!", well, the need for "one" answer is part of the problem. There isn't one answer for which design structure will lead you to the DRYest design. Sometimes it'll be MVC. But you have to think. Not just knee-jerk MVC and think you've "designed".

Re:What web developers thought of in the noughties as being ... by DonHopkins on Friday May 16, 2014 @07:32PM (#7758506)
The whole idea that all problems can be broken up into three different essential concepts that you can describe with a TLA seems like a throwback to the Christian doctrine of Trinity: the Father, Son and the Holy Ghost. They're one God in three persons, monotheistic polytheism! Monolithic polymorphism!

People seem to think that if you dress software architecture up in the trappings of religious dogma, then it's easier to evangelize and recruit people to your cause. Well maybe they're right: it kind of worked for Larry Wall, for a while...

It usually turns out that there are more like 17 different essential concepts that you need to get a complex software project off the ground, but 17LAs like MVPATQSDYKRFXZFHW aren't as catchy, and are too hard to remember and pronounce, so they end up cramming everything that's not obviously M or V into the kitchen sink C.

DRY is great, but you should also DRTMOTP: Don't Repeat The Mistakes Of The Past!

Re:What web developers thought of in the noughties as being ... by mattgreenrocks on Friday May 16, 2014 @11:22AM (#7755943)
It's still the wrong approach to the problem.

Desktop app UIs were never this painful. Even Swing's.

Re:What web developers thought of in the noughties as being ... by king_magic on Friday May 16, 2014 @02:34PM (#7757095)
Desktop app UIs were never this painful? WPF, WinForms, WTL, MFC... all could be pretty darn painful when you got beyond the basic Hello World examples.
Re:What web developers thought of in the noughties as being ... by AnimalMuppet on Monday May 19, 2014 @03:32PM (#7769301)
Interestingly, MFC was painful at least partly because instead of MVC, it wanted to drive you toward a Document/View architecture, where Document had both Model and View. This was painful exactly because of some of the problems that MVC was designed to fix.
Re:What web developers thought of in the noughties as being ... by endlessvoid94 on Friday May 16, 2014 @12:07PM (#7756194)
That's a really good point.
Re:What web developers thought of in the noughties as being ... by pgeorgi on Friday May 16, 2014 @12:38PM (#7756345)
A good counter proposal to the "typical" server-side web architecture is seaside (www.seaside.st).

Its tutorial (A walk on the seaside on http://seaside.st/documentation/tutorials) is rather basic, but shows the concepts well. (edit: longer article http://book.seaside.st)

Of course it has a different set of quirks to get used to, so it's not a cure-all - but it gives a different perspective on web-things.

Re:What web developers thought of in the noughties as being ... by benjaminpv on Friday May 16, 2014 @12:15PM (#7756232)
Solid copy on this. I'm under no delusions that MVC is The One True Way to handle architecting software, but I'll take it over joining a bunch of strings to generate a web page.

I'd say anyone upset over MVC's leaky abstractions could better funnel that energy spent into making something better but I can't help to think that no software project is ever going to so neatly conform to having a structure imposed upon it.

Re:What web developers thought of in the noughties as being ... by mattgreenrocks on Friday May 16, 2014 @12:25PM (#7756275)
> I can't help to think that no software project is ever going to so neatly conform to having a structure imposed upon it

That's the problem with prescribing an architecture ahead of time. That's why you learn the basics and improvise/draw on established architectures as the project evolves.

Re:What web developers thought of in the noughties as being ... by ollysb on Friday May 16, 2014 @12:07PM (#7756193)
Yeah, enough with the hand waving. I can't say I've ever experienced any pain using MVC for web apps but I'm very happy to be enlightened. Let's see the side-by-side code examples (or if someone can can at least explain what they're doing instead I'll have a crack at it :) ).
Re:What web developers thought of in the noughties as being ... by josephschmoe on Friday May 16, 2014 @12:38PM (#7756354)
Agreed. MVC is vastly, vastly superior to what people, especially inexperienced programmers, "naturally" seem to do - which is to dump their models into their views.
Re:What web developers thought of in the noughties as being ... by richroc6 on Thursday May 29, 2014 @05:53AM (#7815476)
Ok St. Joe... Perhaps you should google "Martin Fowler empty bags of getters and setters" for a dose of real domain model justification. There are too many outright false assertions in the MVC camp. WebForms encourage mixing code and markup? Actually, they fairly obviated that practice which slowly JIT compiles into the crappy GUID-name microlibs now predominant in Razor CSHiTMeaL views. Much easier than viewstate and page lifecycle? Only if you call the necessary AJAX, LINQ, and routing trivial. In all of the examples I have seen, ASP.NET MVC views only route back to a single controller, which makes them pretty tightly coupled, thus no better than web forms. I pity the "inexperienced" programmers subject to your review.
Re:What web developers thought of in the noughties as being ... by richroc6 on Tuesday June 03, 2014 @09:11AM (#7839914)
Correction, Google AnemicDomainModel Martin Fowler