14 Mar '14, 12pm

@timbray Perhaps you would like this better?

Angular.rb example Fri 14 Mar 2014 at 12:49 Tim Bray : If hating this is wrong, I don’t want to be right. Perhaps you would like this better? :-) module Angular::X controller :LoginController do @credentials = {username: '', password: ''} def login(credentials) AuthService.login(credentials).then { broadcast! AUTH_EVENTS.loginSuccess }.catch { broadcast! AUTH_EVENTS.loginFailure } end end end Try it here . Things to note: All dependency injection is taken care of for you $scope and $rootScope are inferred based on context Input uses Ruby syntax vs JS Syntax Generated code is clean, indented, and idiomatic More examples, from deployed code: roster , agenda . This will be the covered by my ApacheCon talk .

Full article: http://intertwingly.net/blog/2014/03/14/Angular-rb-example

Tweets

Back to Basics: Polymorphism and Ruby

robots.thoughtbot.com 14 Mar '14, 10pm

Back to Basics: Polymorphism and Ruby Britt Ballard March 14, 2014 ruby Polymorphism - the provision of a single interface...

Why do you like Ruby?

rubyflow.com 17 Mar '14, 5pm

Why do you like Ruby? Posted by timmillwood on March 17, 2014 — 0 comments While we work on client projects, personal proj...

@TWC_Help ^LG : details of service performed in...

intertwingly.net 14 Mar '14, 2am

Time Warner Cable Update Fri 06 Sep 2013 at 00:45 I finally debugged why my cable service was so poor. Long story short, a...

@steipete that almost looks like Ruby

apidock.com 18 Mar '14, 12pm

Defines a named attribute for this module, where the name is symbol. id2name, creating an instance variable (@name ) and a...

二十分鐘 Ruby 體驗:

ruby-lang.org 13 Mar '14, 4pm

下載安裝 文件 函式庫 社群 新聞 安全 關於 Ruby This site in other languages: Български , Deutsch , English , Español , Français , Bahasa Ind...

How Much Better Does Gen-2 Volt Need to Be?

How Much Better Does Gen-2 Volt Need to Be?

hybridcars.com 14 Mar '14, 2pm

The Chevrolet Volt’s popularity has been hit or miss, but what would it take to make it the solution it was originally mea...

Flying snakes could inspire better wind turbines

Flying snakes could inspire better wind turbines

treehugger.com 12 Mar '14, 11am

Researchers are getting closer to understanding exactly how flying snakes fly and that information could lead to better ae...

ruby-jmeter (2.11.3): This is a Ruby based DSL ...

rubygems.org 13 Mar '14, 9pm

This is a Ruby based DSL for writing JMeter test plans

Back to Basics: Polymorphism and Ruby

rubyflow.com 14 Mar '14, 10pm

Polymorphism is one of the fundamental features of object oriented programming, but what exactly does it mean? At its core...

FB Like button

forums.seochat.com 09 Mar '14, 9am

Im wondering whats better to do in relation to pages having the like button for Facebook. So i have a company FB page and ...

What Does it Feel Like to Demolish a Lift?

What Does it Feel Like to Demolish a Lift?

blogcrystal.com 12 Mar '14, 10pm

“What were your immediate thoughts when you realized the avalanche was so big?” That’s a question I heard a lot yesterday....

Notebook: Louis Oosthuizen's back better, still unable to practice much

Notebook: Louis Oosthuizen's back better, still...

pga.com 12 Mar '14, 10pm

PALM HARBOR, Fla. – Louis Oosthuizen was worried about his back after losing in the quarterfinals of the WGC-Accenture Mat...