Share to:

CoffeeScript

CoffeeScript
Basisdatè
Erscheinigsjohr: 2009
Designer: Jeremy Ashkenas
Aktuelli Version: 1.10.0  (3. September 2015)
Tûpisierig: schwach, dûnamisch
Beyflusst vo: Ruby, Python, Haskell
Betriebssystem: plattformunabhängig
Lizènz: MIT-Lizenz
coffeescript.org

CoffeeScript isch è Programmyrschprõch, wo d Programm dèvo in JavaScript transcompilyrt wörred. Si wörd sit 2009 vom Jeremy Ashkenas entwicklèt.

Hèrkumpft un Vowendig

Aaglènt a Ruby, Python un Haskell bediènt sich CoffeeScript èm sûntaktischè Zucker, um d Lesbarkeit vo JavaScript un Brägnanz z vobesserè. Ußerdèmm füürt CoffeeScript zuèsätzlichi Funktionalität y, wiè z. B. Array-Zämmèfassig un Pattern Matching. CoffeeScript übbersetzt vorhèrseebar in JavaScript, Programm könned kompakter (tûpischerwys 30 % wènniger Programmziilè) gschribbè wörrè, ooni dass deby d Laufzit-Performance beydrächtiget wörd.[1]

CoffeeScript isch zuèdemm dè offizièlle JavaScript-Präprozessor vo Ruby on Rails.[2]

Code-Byschpill

Dè folgendi Quèlltegscht git "Hoi Waelt" uus.[3]

alert "Hoi Waelt"

Transcompiliert in JavaScript.

alert("Hoi Waelt");

Compilyrig

Dè CoffeeScript-Compiler wiöd sit Version 0.5 sèlbscht in CoffeeScript gschribbè un isch für Node.js vofüègbar. Dè Compiler isch allerdings nit uff Node agwisè un cha in fascht jederè JavaScript-Umgebig uusgfüürt wörrè.[4]

Literadur

  • Trevor Burnham: CoffeeScript: Accelerated JavaScript Development, Pragmatic Programmers (2011), ISBN 978-1-934356-78-4.

Weblinggs

Einzelnõchwys

  1. Interview with Jeremy Ashkenas. Read Write Hack, archiviert vom Original am 19. Mai 2012; abgruefen am 4. Dezember 2011.
  2. Introducing CoffeeScript. Linux Journal, archiviert vom Original am 4. Dezember 2011; abgruefen am 4. Dezember 2011 (änglisch).
  3. Archivierte Kopie. Archiviert vom Original am 27. Dezember 2009; abgruefen am 28. April 2012.
  4. CoffeeScript is a little language that compiles into JavaScript/Installation. jashkenas.github.com, archiviert vom Original am 27. Dezember 2009; abgruefen am 4. Dezember 2011 (änglisch).
Dä Artikel basiert uff ere fräie Übersetzig vum Artikel „CoffeeScript“ vu de dütsche Wikipedia. E Liste vu de Autore un Versione isch do z finde.

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.
Prefix: a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 9

Portal di Ensiklopedia Dunia

Kembali kehalaman sebelumnya