RailsCasts Pro episodes are now free!

Learn more or hide this

Travis's Profile

GitHub User: 9mm

Site: http://pineapple.io

Comments by Travis

Avatar

When would you use this vs cache_digests?

Avatar

awesome, was just wondering that.

Avatar

I have so much difficulty trying to pick which one to learn... ember, angular, or backbone....

I honestly have no idea, and each thing I read about it further makes me indecisive.

If I had to pick one at this moment, I guess I would choose angular. any thoughts?

Avatar

See TodoMVC to help you decide.

Avatar

I see, that makes a lot more sense, but still, funnily enough I still cant think of many apps I use that are 'single page' aside from gmail. Most apps I like seem more like websites, and model stack overflow more.

I'm sure angular would work fine for a 'website' (as you put it) but are there any JS frameworks more intended for websites rather than one page apps?

Avatar

I would hope it wouldnt limit it. But it goes beyond just a 'hint'.. i mean a lot of places i read it pretty explicitly says "for one page applications". And ive seen it written more than just here or there. It's pretty much every where I look

Avatar

I have yet to learn one of these framework (which I want to), but one thing I find odd is that in almost every tutorial or even the docs, it emphasizes "for a single page app".

When was the last time you ever made a single page app? What does that even mean? My apps span many many many pages, and could hardly be seen as some kind of single page calendar or todo list or something.

What am I missing here?

Avatar

This would brie exactly what I was looking for, I was just thinking about how to do this on another app. I think stripe does this, seems great from usability perspective

Avatar

Can someone explain more completely how this is different from PJAX? I hear everyone say "turbolinks is such a bad idea", although they offer nothing constructive. Is PJAX not a bad idea? I mean github uses it so it can't be that bad... If PJAX is fine, could they not implement it in the same way so it isn't "so bad".

Avatar

Would there be any gotchas when doing this with sensitive links that show up or remain hidden depending if a user is an admin or not?

Avatar

I would love to know about validations, that's where I had difficulty. Particularly say if the task must be over 5 characters long, how do you show that error by inserting it dynamically into the original create form.

Avatar

That's been deprecated. Use .on() or .off() if you can.

Avatar

Thanks so much.. i was having anxiety attack with massive codebase thinking about re-adding all those as new methods :S

Avatar

Props on keeping your cool. I do terrible in those situations.

Avatar

wow awesome. how was that conference?

Avatar

How do you make it so when they edit their profile they don't need to put in their password to save changes? I have tried looking around to no avail for some time.

Avatar

so... is it just me or did anyone else see subliminal message flashing at about 6:25?

Avatar

dude your comments are hilarious, i just looked at your profile

Avatar

Id love to know as well.. the back button is problematic

Avatar

Just had to give a thumbs up to the first ever episode