Most voted "coffeescript" questions
Coffeescript is a small language that compiles for Javascript. Underneath all these inconvenient keys and commas, Javascript has always had a beautiful object model in its heart. Coffeescript is an attempt to expose the good parts of Javascript in a simple way.
Learn more…15 questions
Sort by count of
-
63
votes2
answers5844
viewsCoffeescript, Typescript and Javascript
Among Javascript studies, I found in some places many people suggesting the use of Coffeescript or Typescript to accelerate the development process. If I understand correctly, both are like a…
-
14
votes1
answer975
viewsAbout (Function(){ ... }()) and callThis()
Coffeescript compiles your files into one: (function(){ // código aqui }()).callThis(); Jsfiddle: http://jsfiddle.net/ZHrPp/ Sometimes we find on the Internet a variation: (function(){ // código…
-
9
votes2
answers113
viewsUse of@in variables
I see in some languages that compile for javascript, such as Typescript and Coffeescript, the use of @ variables, as well as cases where it is not used. For example: w = 10; @v = 11; After all, what…
-
2
votes1
answer123
viewsHandling events in elements added later
Consider the following HTML: <div id="div"> <button class="foo">Botão1</button> </div> And the following script: $(".foo").click -> alert "foobar" $("#div").append…
-
2
votes1
answer90
views$http Angularjs Return not expected
Description I am implementing a $http request with angular. I want to return the database objects. Code Companyservice.coffee angular.module('vaultfactor').factory 'CompanyService', ($http, $q)…
-
1
votes1
answer122
viewsError adding new instances in a Javascript array
I’m having the following problem I have an array that adds the instance of an auxiliary object to the instance of an Htmlelement, but only the last element is being added, tested in the Chrome…
-
1
votes0
answers26
viewsControl Dslr camera via web
People: I have a web application that I would like to be plugging in a dslr (professional camera) camera that would display the live image in a canvas in html or something, and that would literally…
-
1
votes0
answers27
viewsFinding Brackets via the Atom API
Using the code editor Atom I had the idea to make a simple but useful Feature for the same. But for this the first step is to find the beginning of the scope, for this I look for a couple of…
-
1
votes0
answers20
viewsHow to test Coffeescript Web Server application using Windows cmd?
I’m trying to test this angular made design. I have already accomplished the installation of Angular, Power, Grunt and Coffescript. I was able to reach the Web Server startup stage where the author…
-
1
votes1
answer75
viewsCoffeescript on Rails - select items from a table
Hello! I have the following code generated by Scaffold: <p id="notice"><%= notice %></p> <h1>Produtos</h1> <table class="table table-striped" id="tabelaProdutos">…
-
0
votes1
answer114
viewsCoffeescript/Javascript return/scope problems
I’ve got a route in the Rails get '/estados_por_pais/:pais_id which returns me a JSON array with states of this country. This works perfectly. I created a Coffeescript class with a static method…
-
0
votes1
answer29
viewsWhat would be the equivalent of Javascript’s "with" in Coffeescript
Hello, I was studying this new "language" that seems promising when I came across it. There is no such expression in Coffeescript or something similar?
-
0
votes1
answer371
viewsHow to set up a regex?
I’m assembling a bot for rocketchat to turn machines on and off in google cloud, I need to assemble a regex that covers the words Turnon and turnoff. Someone could help me with this?
-
0
votes1
answer46
viewsPre processors and how to work with them
Hello community people, I doubt how to work with pre processors, after all I have to rewrite the code twice ? or will I have to copy and paste into an online converter? have mto enteresse in using…
-
0
votes1
answer702
viewsRails. Uncaught Referenceerror: jQuery is not defined
I am implementing a part of notifications in a Rails project, from a tutorial and am getting this error. Uncaught ReferenceError: jQuery is not defined at…