Live data from Hacker News

Classy: Cleaner class-based controllers for AngularJS

davej.github.io

1–10 of 59 posts

Re: Classy: Cleaner class-based controllers for AngularJS

#2
Looks interesting, I might try it out on my next Angular project (starred it to remember for the future).

As a side-note (don't mean to hijack this thread) but I always wondered why a service doesn't exist that sits on top of GitHub that allows for reviews/commentary beyond just issues on all these cool GitHub projects. There are so many awesome projects that look really interesting and I want to integrate into a project I'm working on but have no way of really knowing how effective or relevant they are without actually trying it (which sometimes works out but sometimes ends up being a waste of time). Just a thought, wonder if anyone else here at HN sympathizes.

Re: Classy: Cleaner class-based controllers for AngularJS

#3
I guess this can clean logic flow in a controller, but here you end up with a bloated object instead.

The biggest problem I see though is if you want to save a reference to the unregister functions of the $watch callbacks.

Otherwise, this is a cool idea, although it falls a little short.

Re: Classy: Cleaner class-based controllers for AngularJS

#5

Looks interesting, I might try it out on my next Angular project (starred it to remember for the future). As a side-note (don't mean to hijack this thread) but I always wondered why a service doesn't exist that sits on top of GitHub that allows for reviews/commentary beyond just issues on all these cool GitHub projects. There are so many awesome projects that look really interesting and I want to integrate into a pro…

Search Twitter, /r/programming, HN, Stackoverflow, or Google for the Github project and read opinions. Works 95% of the time. (Also bookmark this thread and come back to it in a few days)

Re: Classy: Cleaner class-based controllers for AngularJS

#6

Looks interesting, I might try it out on my next Angular project (starred it to remember for the future). As a side-note (don't mean to hijack this thread) but I always wondered why a service doesn't exist that sits on top of GitHub that allows for reviews/commentary beyond just issues on all these cool GitHub projects. There are so many awesome projects that look really interesting and I want to integrate into a pro…

I do (sympathize, that is.)

I see people using issues for this sort of meta-discussion on newer projects. Sometimes that feels wrong and sometimes it doesn't.

+1 for being interested in something more purpose-driven, if it could get adoption.

Re: Classy: Cleaner class-based controllers for AngularJS

#7
Interesting project--I've done a little bit of Angular development and would be curious to look at this the next time I come back to Angular.

As a side note, I am always impressed and insanely jealous of the nice websites that frontend libraries make for themselves. It makes sense since obviously folks with more frontend experience are writing the libraries, but I wish there were nice templates or tools to make such nice and informative pages. Would be cool to see stuff like python, boost, etc. with clean, responsive, easy to read web pages.

Re: Classy: Cleaner class-based controllers for AngularJS

#8
post #5

Looks interesting, I might try it out on my next Angular project (starred it to remember for the future). As a side-note (don't mean to hijack this thread) but I always wondered why a service doesn't exist that sits on top of GitHub that allows for reviews/commentary beyond just issues on all these cool GitHub projects. There are so many awesome projects that look really interesting and I want to integrate into a pro…

Search Twitter, /r/programming, HN, Stackoverflow, or Google for the Github project and read opinions. Works 95% of the time. (Also bookmark this thread and come back to it in a few days)

That's definitely my flow right now -- unfortunately that works best for bigger projects but less likely to find material on smaller projects you know?

Re: Classy: Cleaner class-based controllers for AngularJS

#10

I've experienced the problem of unwieldy controllers myself, but angular is already such an intricate, opinionated framework that I can't imagine adding another layer with its own DSL. Good code organization solves a lot of these problems.

I was about tu post the same comment. I can't imagine maintaining a code using angular and another layer on top that adds another syntax on top of scopes, bindings, and controllers. Sorry to whoever did that lib for the critic. That was obviously a big task and it really is full of good intention.
Post reply on HN