Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Eloquent JS examples in CoffeeScript

NotificationsYou must be signed in to change notification settings

markbrown4/eloquentcoffee

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Marijn Haverbeke'sEloquent JS is an excellentbook, here's my solutions to the exercises written in CoffeeScript.

Run the examples

npm install coffeescript -gcoffee 1-triangle.coffee

Why CoffeeScript?

The golden rule of CoffeeScript is: “It’s just JavaScript.”

As the ES6 train gained a lot of momentumcoffee lost steam. However,the trendsstill show download growth over the past few years and there's still a lot of bigprojects using it.

Version 2 changed the compilation target from ES3 to ES2015 and aligned with newlanguage features like ES2015 Modules, classes, template literals, async / awaitand destructuring. Now that both languages are close to feature parity, the onlycompelling reason to write CoffeeScript is the clean expressive syntax.

I wrote CoffeeScript every day for fours years and then ES6+ for the last two,I've just been reacquainted and it's still a pleasure to program in. Keep an openmind and give it a try, you may enjoy it.

Things I like about ☕️

  • Clarity of the program shines through with less syntax and significant whitespace
  • Everything is an expression, statements likefor,if andswitch produce a value
  • Implicitreturn of last statement
  • Aliases, operators & shorthands allow for more expressive code

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp