Redian新闻
>
太子还是挺厉害的:我为什么选择scala.js
avatar
d*c
2
文章触及了一个关键问题:
如果你想前端后端用一种语言,一个环境,只有scala.js。相比之下各种前端语言无法
顾及后端,除非用node.js,但那也不是好选择。
clojurescript和clojure的问题是语法需要适应。我已经在看clojure的书,并且很欣
赏Rich Hickey的talk,但还是觉得clojure读起来费劲,需要比较多时间适应。
当然scala问题也不少,许多是人为造成的,但本质选择有很多优越的地方,尤其是
type方面。
avatar
w*g
3
作为一个轮子engineer, scala.js不失为一个不错的方向.
不管是给js打补丁还是给scala打补丁,都不如新搞一个scala.js轮子影响大.
但作为轮子用户, scala.js我肯定是不会去碰的.

【在 d******c 的大作中提到】
: From first principles: Why I bet on Scala.js
: http://www.lihaoyi.com/post/FromfirstprinciplesWhyIbetonScalajs.html
: 文章很长,但说的很好。要在一个技术不成熟的时候看到潜力并投入,需要眼光。

avatar
n*p
4
how difficult a lisp dialog could be?
if you think clojure is hard, try this link, you will learn clojure in ONE
day, no kidding.
https://kimh.github.io/clojure-by-example/

【在 d******c 的大作中提到】
: 文章触及了一个关键问题:
: 如果你想前端后端用一种语言,一个环境,只有scala.js。相比之下各种前端语言无法
: 顾及后端,除非用node.js,但那也不是好选择。
: clojurescript和clojure的问题是语法需要适应。我已经在看clojure的书,并且很欣
: 赏Rich Hickey的talk,但还是觉得clojure读起来费劲,需要比较多时间适应。
: 当然scala问题也不少,许多是人为造成的,但本质选择有很多优越的地方,尤其是
: type方面。

avatar
n*p
5
I agree with this guy:
"One note on ClojureScript: you're being unfair to it. Assuming that the
developer has picked up some Clojure basics, the "let" form is just how you
do bindings in Clojure, the dot form is how you interop with *both* Java and
Javascript and "set!" is how you mutate things. This is basic syntax that a
Clojure developer can read. It's a little unfair because there's a
difference between somebody that has never read Clojure and somebody who
does know the language.
If you want to talk advantages, Clojure has the advantage that, being a LISP
, everything is represented as an AST basically. Which means that
representing and manipulating HTML for example is much more natural in
Clojure, versus what you guys have been doing in ScalaTags. And being a
dynamic language, it took much less effort to build Om / Reagent, the React
integrations, versus scalajs-react.
Anyway, just saying - ClojureScript is basically the other similar and
marvelous achievement when it comes to Javascript compilers. All others that
I've seen are imho inferior, at least for now."
There is a great video: ClojureScript for Skeptics
https://www.youtube.com/watch?v=gsffg5xxFQI

【在 d******c 的大作中提到】
: From first principles: Why I bet on Scala.js
: http://www.lihaoyi.com/post/FromfirstprinciplesWhyIbetonScalajs.html
: 文章很长,但说的很好。要在一个技术不成熟的时候看到潜力并投入,需要眼光。

avatar
d*c
6
这个链接不错,在读中
我说的需要时间适应,就是一眼看上去一大块clojure代码,不像其他语言那样大致立
刻知道是怎么回事。需要许多有意识的识别,分析。这个熟悉了肯定会觉得自然,但
是需要一个过程。

【在 n***p 的大作中提到】
: how difficult a lisp dialog could be?
: if you think clojure is hard, try this link, you will learn clojure in ONE
: day, no kidding.
: https://kimh.github.io/clojure-by-example/

avatar
s*y
7
整天纠结什么语言的工程师 最多最多也就是B咖
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。