News for hackers. Stuff that matters.
Re:Using AngularJS at Localytics by ihsw on Wednesday April 10, 2013 @01:50PM (#5526768)
The alternative is a slew of loosely-coupled and opaque attributes (IDs and classes), especially where you're not sure if a particular class or ID is used for presentation (CSS) or functionality (JS). How do you handle refactoring when you use some classes for JS and some for CSS?

With custom attributes there is no confusion, and although it goes completely against the separation of concerns and now your mark-up isn't completely declarative -- it's a necessary drawback.

Re:Using AngularJS at Localytics by likeclockwork on Friday April 12, 2013 @05:50AM (#5537490)
What about some kind of Hungarian notation for classes?

pBlue bWidget?

I've never done this, just wondering.

Re:Using AngularJS at Localytics by thatthatis on Wednesday April 10, 2013 @04:15PM (#5527838)
if you have functionality class/ID, do you really have separate concerns or do you just have moderate/loosely coupled concerns?