It’s a Mad, Mad, Mad, Mad World: Scoping in CoffeeScript and JavaScript

CoffeeScript, as many people know, is a transpile-to-JavaScript language.1 For the most part, it does not introduce major changes in semantics. For example, this:

-> 'Hello, world'

Transpiles directly to:

function () { return 'Hello, world'; }

This is convenient syntactic sugar, and by removing what some folks call the “syntactic vinegar” of extraneous symbols, it encourages the use of constructs that would otherwise make the code noisy and obscure the important meaning. The vast majority of features introduced by CoffeeScript are of this nature: They introduce local changes that transpile directly to JavaScript.2

CoffeeScript also introduces features that don’t exist in JavaScript, such as destructuring assignment and comprehensions. In each case, the features compile directly to JavaScript without introducing changes elsewhere in the program. And since they don’t look like existing JavaScript features, little confusion is created.

equals doesn’t equal equals

One CoffeeScript feature does introduce confusion, and the more you know JavaScript the more confusion it introduces. This is the behaviour of the assignment operator, the lowly (and prevalent!) equals sign:

foo = 'bar'

Although it looks almost identical to assignment in JavaScript:

foo = 'bar';

It has different semantics. That’s confusing. Oh wait, it’s worse than that: Sometimes it has different semantics. Sometimes it doesn’t.

So what’s the deal with that?

Well, let’s review the wonderful world of JavaScript. We’ll pretend we’re in a browser application, and we write:

foo = 'bar';

What does this mean? Well, it depends: If this is in the top level of a file, and not inside of a function, then foo is a global variable. In JavaScript, global means global across all files, so you are now writing code that is coupled with every other file in your application or any vendored code you are loading.

But what if it’s inside a function?

function fiddleSticks (bar) {
  foo = bar;
  // ...
}

For another example, many people enclose file code in an Immediately Invoked Function Expression (“IIFE”) like this:

;(function () {
  foo = 'bar'
  // more code...
})();

What do foo = 'bar'; or foo = bar; mean in these cases? Well, it depends as we say. It depends on whether foo is declared somewhere else in the same scope. For example:

function fiddleSticks (bar) {
  var foo;
  foo = bar;
  // ...
}

Or:

function fiddleSticks (bar) {
  foo = bar;
  // ...
  var foo = batzIndaBelfrie;
  // ...
} 

Or even:

function fiddleSticks (bar) {
  foo = bar;
  // ...
  function foo () {
    // ...
  }
  // ...
}

Because of something called hoisting,3 these all mean

xbox live 12 month code Learn more about situs poker on line motobolapoker at http://www.motobolapoker.com

Galaxy Note 3, use 3 GB RAM First Time

The news about the Samsung Galaxy Note 3 made ​​it make gadget lovers curious. But this time the latest news about the hardware that is brought by the phablet. Of existing leaks, the device will reportedly be embedded RAM with a capacity of up to 3 GB.
Leaks from Slashgear did make a lot of people by surprise. But if the news is true, then the Galaxy Note 3 will be the first mobile device that is equipped with a capacity of 3 GB of RAM and a relatively very large.
Just a note, smart mobile devices and premium phablet circulating lately generally use 2 GB of RAM. Meanwhile, the Galaxy Note 3 screen size of 59.9 inches is predicted to have a Full HD resolution (1920 x 1080) with the kind of super AMOLED display panel.
The size of a half-inch larger than its predecessor, the Galaxy Note 2, which has a 5.5-inch landscape display. As for the Galaxy Note to be launched in 2011 and carries the 5.3-inch screen. Body Galaxy Note 3 allegedly bit slimmer than its predecessor. If the Galaxy Note 2 has a weight of 182 grams, the Galaxy Note 3 little lighter by 180 grams with a thickness of 8 mm.
Just like the Galaxy S4, there will be two versions of the Galaxy Note 3, which was launched to the market. In a particular market, this device will be armed with the Qualcomm Snapdragon quad-core 800. As in other markets, will use processors made by Samsung’s own Exynos SoC Octa 5.

Yahoo Open Start Request Username ‘Beautiful’ is Not Active Again

Since last month it was announced that Yahoo will delete the Yahoo! username or ID is no longer active, many people are waiting for the arrival of this. Because, mostly inactive username is precisely deter others who want to use the name. Now, according to the announcement last month, Yahoo began to open up opportunities for those who want to get the username ‘pretty’.
Users who want to get the username ‘beautiful’ can not directly get the name. They should write the desired username in advance through a form benama Yahoo! Wish List. Yahoo provides five options that could be asked. If the first choice is not available, then the choice of the required reserves would then look for. Yahoo will provide notice of the availability of username via email in mid-August 2013.
“To get Yahoo! username you’ve always wanted, we set up a page where you can ask five top choices. If your first choice is not available, we will try to find other options of backup you have the content. In mid-August, you will receive email containing the username where available, as well as links to mengklaimnnya for 48 hours. Quite so, and it is yours, “wrote Dylan Casey, Senior Director, Platform Yahoo via its official blog.

Software Equity Group’s Client, Cougar Software, Receives Growth Equity Investment From dmg information

Software Equity Group, LLC (SEG) announced today its client, Cougar Software, the leading provider of budgeting, planning and forecasting solutions for the real estate industry, has received a growth equity investment from dmg information (dmgi), a business division of Daily Mail & General Trust (DMGT) that manages and develops a portfolio of high-growth, innovative companies that provide business-to-business information to the property, education, energy and commodity and structured finance markets.

dmgi’s investment in Cougar Software represents SEG’s seventh transaction in the real estate software segment. SEG’s prior real estate transactions include the sale of clients providing application software for commercial facilities/property management, facilities design, integrated workplace management, multi-family property vendor compliance management, commercial building construction, public sector housing and long-term care facilities. Acquirers of SEG’s real estate software clients include RealPage, Yardi, Accruent and Bentley Systems.

Cougar is well known in the property sector as a leading provider of budgeting, planning and forecasting solutions exclusive to the Real Estate Industry, and enables its users to easily make strategic decisions using sophisticated financial modeling.

“The timing of this investment couldn’t be better,” said Oren Rosen, CEO, Cougar. “Over the last five years we have been building a foundation for growth by steadily increasing market penetration in North America, Europe and Asia Pacific. With the strategic and financial backing of dmgi, we can continue our demonstrated track record of customer-driven product innovation and put our foot on the accelerator to increase penetration in these markets.”

About Software Equity Group

Software Equity Group is an investment bank and M&A advisory serving the software and technology sectors. Founded in 1992, the firm has guided and advised companies on five continents, including privately-held software and technology companies in the United States, Canada, Europe, Asia Pacific, Africa and Israel. SEG has represented public companies listed on the NASDAQ, NYSE, American, Toronto, London and Euronext exchanges, and also advises several of the world’s leading private equity firms.

Make Cold, LED fan from Cooler Master to PC

TAIWAN – Taiwanese hardware device manufacturers, Cooler Master, announced a cooling fan for the latest PC devices. JetFlo called 120, the fan who appeared with LED lights, measuring 120 mm.

Reported TomsHardware, Sunday (07/07/2013), what makes a ‘beautiful’ This device is not only visible from their physical appearance, but rather clever features embedded in it. JetFlo 120 is equipped with Smart Jam Protection feature, so that the system can detect if there are objects blocking the rotation of the fan.

Thus, the system automatically stops the fan rotates to prevent damage. Once the foreign body is no longer interrupt rotation of the fan, then the system will operate normally again.

Design with 120 mm fan can spin at speeds from 800 to 2000 RPM (Revolutions per minute) and a PWM (Pulse-width modulation) control. Fans can push up to 95 CFM and has a noise level to 26 dBA.

Cooler Master claims that its product is the first premium LED fan that will circulate in the market. The company emphasizes three main points on JetFlo 120, the ‘Performance’, ‘Style’ and ‘Silence’.

MTBF fan technology is claimed to be able to run for 160 thousand hours. JetFlo 120 will come with four different colors, including red, black, white and blue.

Reportedly, JetFlo 120 will sell for $ 20 and are available in mid-July 2013.