Content deleted Content added
Budgies rule (talk | contribs) |
Jerryobject (talk | contribs) Template:Infobox programming language, WP:REFerence WP:CITation add, repeat cut; parameters: update-standardize, adds, fills, reorders, underscores > spaces, respaces, author > last + first. WP:LINKs: adds, update-standardizes, needless-WP:PIPEs > WP:NOPIPEs. Adds: MOS:COMMENT, WP:CATEGORY. Tag: content sourced to vanity press |
||
Line 3:
| name = CoffeeScript
| logo = CoffeeScript-logo.svg
|
| family = [[ECMAScript]]
| released = {{start date and age|2009|12|13}}▼
| designer = [[Jeremy Ashkenas]]
| developer =
|
| latest release date = {{start date and age|{{Wikidata|qualifier| Q1106819 |P348|P577}}}}
| typing = [[Dynamic typing|dynamic]], [[Latent typing|implicit]]
| influenced_by = [[Haskell (programming language)|Haskell]], [[JavaScript]], [[Perl]],{{citation needed|date=January 2016}} [[Python (programming language)|Python]],<ref>https://coffeescript.org/ "CoffeeScript borrows chained comparisons from Python"</ref> [[Ruby (programming language)|Ruby]], [[YAML]]<ref name="smell">{{cite news |last1=Heller |first1=Martin |date=2011-10-18 |df=mdy |url=https://www.infoworld.com/article/2078452/turn-up-your-nose-at-dart-and-smell-the-coffeescript.html |title=Turn up your nose at Dart and smell the CoffeeScript |work=[[InfoWorld]] |access-date=2020-07-15}}</ref>▼
| scope = [[Scope (computer science)|lexical]]
| programming language = CoffeeScript
| platform = [[x86-64]]
| operating system = [[Cross-platform software|Cross-platform]]
| license = [[MIT License|MIT]]▼
|
▲|
| influenced = [[MoonScript]], [[LiveScript (programming language)|LiveScript]], JavaScript
▲| license = [[MIT License]]
▲| file_ext = <code>.coffee</code>, <code>.litcoffee</code>{{citation needed|date=September 2020}}
}}
'''CoffeeScript''' is a [[programming language]] that compiles to [[JavaScript]]. It adds [[syntactic sugar]] inspired by [[Ruby (programming language)|Ruby]], [[Python (programming language)|Python]], and [[
CoffeeScript support is included in [[Ruby on Rails]] version 3.1<ref>{{cite web |
== History ==
On December 13, 2009, [[Jeremy Ashkenas]] made the first [[Git (software)|Git]] commit of CoffeeScript with the comment "initial commit of the mystery language".<ref>Github. [https://github.com/jashkenas/coffee-script/commit/8e9d637985d2dc9b44922076ad54ffef7fa8e9c2
On December 24, 2010, Ashkenas announced the release of stable 1.0.0 to [[Hacker News]], the site where the project was announced for the first time.<ref>Hacker News. [https://news.ycombinator.com/item?id=2037801 CoffeeScript 1.0.0 announcement] posted by Jeremy Ashkenas on Dec 24, 2010</ref><ref>Hacker News. [https://news.ycombinator.com/item?id=1014080 Original CoffeeScript announcement] posted by Jeremy Ashkenas on Dec 24, 2009</ref>
Line 95 ⟶ 99:
</syntaxhighlight>
In CoffeeScript, the <code>function</code> keyword is replaced by the <code>-></code> symbol, and indentation is used instead of curly braces, as in other [[off-side rule]] languages such as Python and Haskell.
<!-- Ruby is probably the most similar language that GeSHi supports -->
Line 177 ⟶ 181:
{{uncited section|date=April 2024}}
* Source maps allow users to debug their CoffeeScript code directly, supporting CoffeeScript tracebacks on run time errors.
* CoffeeScript supports a form of [[Literate Programming]], using the <code>.coffee.md</code> or <code>.litcoffee</code> file extension. This allows CoffeeScript source code to be written in [[Markdown]].
== Extensions ==
Line 187 ⟶ 191:
[[GitHub]]'s internal style guide once said "write new JS in CoffeeScript", though it no longer does,<ref>{{cite web|url=https://github.com/styleguide/javascript|title=JavaScript · Styleguide · GitHub|publisher=Github.com|access-date=2015-11-30|archive-url=https://web.archive.org/web/20130815075924/https://github.com/styleguide/javascript|archive-date=2013-08-15|url-status=dead}}</ref> and its [[Atom (text editor)|Atom text editor]] was also written in the language, with configuration written in [[CSON]] ("CoffeeScript Object Notation"), a variant of [[JSON]].<ref>{{cite web |url=https://github.com/atom/atom |title=Atom source code |publisher=[[GitHub]] |access-date=2021-06-26}}</ref><ref>{{cite web |title=Basic Customization |url=https://flight-manual.atom-editor.cc/using-atom/sections/basic-customization/#configuring-with-cson |website=[[Atom (text editor)|Atom]] Flight Manual |publisher=[[GitHub]] |access-date=29 April 2024 |language=en |url-status=live |archive-url=https://web.archive.org/web/20240429181349/https://flight-manual.atom-editor.cc/using-atom/sections/basic-customization/ |archive-date=2024-04-29}}</ref>
[[Pixel Game Maker MV]] makes uses of CoffeeScript as part of its game development environment.<ref name="CCG">{{cite web |last1=Cullen |first1=Daniel |title=
== See also ==
Line 198 ⟶ 202:
* [[Dart (programming language)]]
* [[Kotlin (programming language)]]
* [[LiveScript (programming language)
* [[Opa (programming language)]]
* [[Elm (programming language)]]
Line 205 ⟶ 209:
== References ==
{{Reflist
== Further reading ==
* {{Cite book |last1=Lee |first1=Patrick |date=May 14, 2014 |title=CoffeeScript in Action |edition=
* {{Cite
* {{Cite book |last1=Bates |first1=Mark |date=May 31, 2012 |title=Programming in CoffeeScript |edition=
* {{Cite book |last1=Burnham |first1=Trevor |date=August 3, 2011 |title=CoffeeScript: Accelerated JavaScript Development |edition=
== External links ==
* {{Official website}}
{{Programming languages}}▼
▲{{JavaScript|state=collapsed}}
{{NodeJs}}
▲{{Programming languages}}
{{Authority control}}
Line 231 ⟶ 235:
[[Category:2009 software]]
[[Category:Free software projects]]
<!-- Hidden categories below -->
[[Category:Articles with example JavaScript code]]
|