News for hackers. Stuff that matters.
Re:Server-side view or client-side MVC? by papsosouid on Tuesday February 26, 2013 @01:54PM (#5287577)
>It's the trend not because it looks new

Yes, it is. 90% of the client side javascript interfaces I've seen provide absolutely no benefit to the user, and often are outright worse than a normal html interface (twitter). Your complaints about RoR's terrible templates do not generalize to all server side template engines, so the whole thing should be framed accurately as a comparison of your preferred javascript mvc framework vs rails templates.

Re:Server-side view or client-side MVC? by nateabele on Tuesday February 26, 2013 @03:59PM (#5288566)
Based on your comment, I'm guessing you've never actually implemented anything with a client-side JS framework.

Yes, strictly speaking, there's nothing inherent to client-side JS MVC frameworks that creates a better experience for end-users (over traditional server-side MVC + client-side Ajax + DOM manipulation, or whatever).

Where they do provide benefit is to developers, for whom it makes creating rich interfaces absurdly easy. Again, to be clear, this does nothing for users. Unless, of course, you consider that reduced barriers to implementing rich interactivity induce developers to use it create better user experiences, and that purpose-specific tools reduce the surface area for experience-disrupting bugs (which, statistically, you'd have more of, since you're operating at a lower level of abstraction and having to constantly repeat yourself [unless, of course, you decided to generalize all your Ajax & DOM manipulation and wrote a framework... oh wait]).

But hey, don't let me keep you from thinking whatever keeps you inside your comfort zone.

(Disclosure: the foregoing is based on ~1 year of experience developing applications with AngularJS).

Re:Server-side view or client-side MVC? by coldtea on Tuesday February 26, 2013 @10:15PM (#5290306)
>Based on your comment, I'm guessing you've never actually implemented anything with a client-side JS framework. Yes, strictly speaking, there's nothing inherent to client-side JS MVC frameworks that creates a better experience for end-users (over traditional server-side MVC + client-side Ajax + DOM manipulation, or whatever).

So basically you attack him only to agree with him? Nice.

>Where they do provide benefit is to developers, for whom it makes creating rich interfaces absurdly easy.

No, it does not.

It makes creating rich interfaces a hodgepodge of immature and fragile client side technologies.

Re:Server-side view or client-side MVC? by papsosouid on Wednesday February 27, 2013 @10:00AM (#5292639)
I'm not sure how you would come to such a conclusion, you must have some very serious bias clouding your ability to objectively read what people say.

I've written several client side javascript apps, although obviously I'm not dumb enough to actually write them in javascript when there's so many "tolerable language -> javascript" compilers available.

>Yes, strictly speaking, there's nothing inherent to client-side JS MVC frameworks that creates a better experience for end-users

I didn't say anything like that. I said 90% of people writing client side javascript interfaces are doing so for no user benefit, just following a fad. There's plenty of cases where an interface is better in javascript, unfortunately that's only ~10% of the cases people are using javascript for.

>Where they do provide benefit is to developers, for whom it makes creating rich interfaces absurdly easy.

Compared to using horrible shit like ruby on rails perhaps, but compared to decent tools using a javascript framework is a significant step backwards. That's one of the reasons we only do it when it helps the user, rather than all the time just to make our stuff worse.

>But hey, don't let me keep you from thinking whatever keeps you inside your comfort zone

You really need to make the effort to read what you reply to. If you just want to make up nonsense to respond to, that's what blogs are for.

Re:Server-side view or client-side MVC? by bluetidepro on Tuesday February 26, 2013 @03:42PM (#5288448)
For the record, I think Twitter is one of the only sites out there that have done JS interfaces the right way. I love the Twitter interface over any Twitter client or the old html interface. I think it's much smoother and works great for their platform. But hey, I'm just one man! Ha
Re:Server-side view or client-side MVC? by richardw on Tuesday February 26, 2013 @11:04PM (#5290465)
"A single tweet page is 2MB. This is one of the big challenges for Single Page Apps."

https://plus.google.com/app/basic/stream/z123j3wxwrm5jb0tv23...

Source: Comparison of various pages: http://mike.teczno.com/notes/bandwidth.html

Re:Server-side view or client-side MVC? by TylerE on Tuesday February 26, 2013 @03:54PM (#5288521)
I'm like 99% they went back to server-side a few months ago for performance reasons.
Re:Server-side view or client-side MVC? by ashleyw on Tuesday February 26, 2013 @06:46PM (#5289485)
I think they just render the initial page on the server, then from there the client takes care of it. It makes sense, since it's common to include the data payload in the HTML to save a request anyway, and it's not much more work to just render the HTML too using the same templates as the client uses.
Re:Server-side view or client-side MVC? by ksec on Friday March 01, 2013 @09:37AM (#5304381)
I actually think that is where the path we should go, Hybrid of both tech. Serving the initial view with HTML and the rest via client side JS.