21 May '13, 1pm

Two gotchas every CoffeeScript and Backbone.js developer should know

May 21, 2013 seantheprogrammer coffeescript javascript backbone.js Two gotchas every CoffeeScript and Backbone.js developer should know If you’re a Ruby developer working with Rails, at some point you’re going to need to work with JavaScript. While the two languages have many similarities, the fundamental differences in their object models can be quite jarring. CoffeeScript helps to provide a more Ruby-like syntax, but if you’re not careful you can introduce bugs to your code in surprising ways. Let’s look at an example. Let’s say we have an expensive operation, and need to cache the result. In CoffeeScript, we might write the this code as: class GiantRobot smashCache: {} smashInto: (other) => @smashCache[other] ||= @expensiveCalculations(other) However, this code leads to a surprising problem when we start smashing things together. ralph = new GiantRobot() voltron = new G...

Full article: http://robots.thoughtbot.com/post/50987661334/two-gotchas...

Tweets

Every restaurant should get one of these websites

Every restaurant should get one of these websites

domainnamewire.com 20 May '13, 3pm

A mobile friendly website for restaurants that doesn’t have any of my pet peeves. On Friday I received a press release fro...

There's a trend for every Occasion....

modainpelle.com 03 Jun '13, 10am

Join Us Facebook Twitter Blog Email Sign Up Whats Online New In Brands Customer Services Delivery Returns Store Locator FA...

7 secrets every developer should know before ge...

rubylearning.com 23 May '13, 10pm

A developer has to focus on his/her own tasks. When you become a manager, you will need to get the tasks done by the team ...

以前見たカラーコード時計はこっちですな >

hackaday.com 22 May '13, 8am

[Darren] built a clock that uses a resistor to display the time . Well, it really uses a model of a resistor. This extreme...

"7 secrets every Ruby developer should know bef...

rubyflow.com 23 May '13, 11pm

7 secrets every Ruby developer should know before getting into a manager or lead role Posted by IndianGuru on May 24, 2013...

What you need to know about the tornado that hit Moore, Oklahoma

What you need to know about the tornado that hi...

treehugger.com 21 May '13, 4pm

This follows a relatively calm spring that saw few tornadoes, which is largely due to unusually cold temperatures througho...

The 2013 Farm Bill: What to Know, What to Do

organicconsumers.org 23 May '13, 2pm

BREAKING NEWS: This morning, the Senate voted down (27-71) the Sanders amendment #965 to S.954 , the Farm bill. The amendm...

5 Things You Need to Know About AdWords’ New Keyword Planner by @LarryKim

5 Things You Need to Know About AdWords’ New Ke...

searchenginejournal.com 23 May '13, 8pm

Keyword search options : You can look for new keywords to add to your campaigns based on the product or service you’re mar...

5 Excel Skills Every Marketer Should Know

searchengineland.com 24 May '13, 1pm

One question I get asked a lot is this: what Excel skills are most important for marketers to learn? I have whittled that ...

Stay Healthy With Vitacost!: Do you know that three-quarters of U.S. teens & adults are…

Stay Healthy With Vitacost!: Do you know that t...

luxuryhaven.blogspot.com 27 May '13, 5am

Do you know that three-quarters of U.S. teens & adults are deficient in Vitamin D, the so-called "sunshine vitamin" whose ...

#Marketing Alert! 5 Excel Skills Every #Markete...

searchengineland.com 24 May '13, 8pm

One question I get asked a lot is this: what Excel skills are most important for marketers to learn? I have whittled that ...

Do you want your own website that will make you...

bitcointalk.org 25 May '13, 11pm

This is a one time offer as I need some fiat money instantly. I have spent the last week putting together http://easybitco...