楼主: Reader's
1432 11

【独家发布】CoffeeScript in Action [推广有奖]

  • 0关注
  • 0粉丝

已卖:1522份资源

博士生

59%

还不是VIP/贵宾

-

TA的文库  其他...

可解釋的機器學習

Operations Research(运筹学)

国际金融(Finance)

威望
0
论坛币
41203 个
通用积分
2.6773
学术水平
7 点
热心指数
5 点
信用等级
5 点
经验
2201 点
帖子
198
精华
1
在线时间
36 小时
注册时间
2015-6-1
最后登录
2024-3-3

楼主
Reader's 发表于 2017-7-22 00:56:47 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
CoffeeScript in Action




    1. Author: Patrick Lee

    2. ISBN-10 书号: 1617290629

    3. ISBN-13 书号: 9781617290626

    4. Edition: 1

    5. Release 出版日期: May 22, 2014

    6. pages 页数: (432)


    7. 44.99
    复制代码

    下载地址:

    本帖隐藏的内容

    http://pan.baidu.com/s/1bpFOkTx 密码: jmac








二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝


本帖被以下文库推荐

沙发
Reader's 发表于 2017-7-22 00:57:05
https://en.wikipedia.org/wiki/CoffeeScript

藤椅
Reader's 发表于 2017-7-22 00:58:04
  1. Interval test[edit]
  2. To compute the body mass index, one may do (here in JavaScript):

  3. var mass = 72
  4. var height = 1.78
  5. var BMI = mass / (height * height)
  6. if (18.5 < BMI && BMI < 25) alert('You are healthy!')
  7. With CoffeeScript the interval is directly described:

  8. mass = 72
  9. height = 1.78
  10. BMI = mass / height**2
  11. alert 'You are healthy!' if 18.5 < BMI < 25
复制代码

板凳
Reader's 发表于 2017-7-22 00:59:36
  1. Loops and comprehensions[edit]
  2. To compute the greatest common divisor of two integers with the euclidean algorithm, in JavaScript one usually needs a while loop:

  3. function gcd(x, y) {
  4.   var z
  5.   do {
  6.     z = x % y
  7.     x = y
  8.     y = z
  9.   } while (y != 0)
  10.   return x
  11. }
  12. Whereas in CoffeeScript one can use until and pattern-matching instead:

  13. gcd = (x, y) ->
  14.   [x, y] = [y, x%y] until y is 0
复制代码

报纸
stormchao 在职认证  发表于 2017-7-22 17:39:05

Listing 3.5. Counting words


已有 1 人评分论坛币 收起 理由
Nicolle + 20 精彩帖子

总评分: 论坛币 + 20   查看全部评分

地板
Nicolle 学生认证  发表于 2017-7-23 05:44:30
提示: 作者被禁止或删除 内容自动屏蔽

7
Nicolle 学生认证  发表于 2017-7-23 05:45:21
提示: 作者被禁止或删除 内容自动屏蔽

8
Nicolle 学生认证  发表于 2017-7-23 05:49:21
提示: 作者被禁止或删除 内容自动屏蔽

9
Nicolle 学生认证  发表于 2017-7-23 05:51:54

Listing 3.2. Count words comparison

提示: 作者被禁止或删除 内容自动屏蔽

10
Nicolle 学生认证  发表于 2017-7-23 05:56:51
提示: 作者被禁止或删除 内容自动屏蔽

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2026-2-7 10:59