由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - 大牛们给讲讲,为什么javascript难学?
相关主题
请推荐一本JavaScript 入门书aspx网页现在到底流行不? (转载)
Java新手问题惠普开源JavaScript框架Enyo更新:支持桌面和移动平台
PHP/JSP/ASP等页面语言应该被慢慢抛弃了吧?前端为什么不用java写
战国RIAJavascript确实是最优秀的语言之一
用Javascript Framework的请进 (转载)GWT已经没戏了,Javascript才是新星
javascript才是未来发展的方向Help please.
大家 JavaScript 用的多么?需要一个纯javascript的HTMLparser
过去十年最成功的语言是JavaScript吧请推荐一个javascript教程吧
相关话题的讨论汇总
话题: js话题: javascript话题: do话题: like话题: difficult
进入Programming版参与讨论
1 (共1页)
p*****2
发帖数: 21240
1
我这两天看了看,感觉里边的概念都比较简单易懂,没觉得有什么难理解的概念。
要说写JS代码不容易,这个确实是由于JS先天缺陷造成的,本来就是写小程序的,写大
了肯定麻烦。但是这个语言本身为什么很多人说水很深,不好学呢?这个问题我还没想
明白,有大牛给指点一下吗?
d********g
发帖数: 10550
2
二爷又来挖坑了

【在 p*****2 的大作中提到】
: 我这两天看了看,感觉里边的概念都比较简单易懂,没觉得有什么难理解的概念。
: 要说写JS代码不容易,这个确实是由于JS先天缺陷造成的,本来就是写小程序的,写大
: 了肯定麻烦。但是这个语言本身为什么很多人说水很深,不好学呢?这个问题我还没想
: 明白,有大牛给指点一下吗?

p*****2
发帖数: 21240
3

我其实主要想知道,什么语言的水比JS浅。我不懂真想明白一下。

【在 d********g 的大作中提到】
: 二爷又来挖坑了
d**o
发帖数: 864
4
主要是跟html的互动,测试起来很烦.

【在 p*****2 的大作中提到】
: 我这两天看了看,感觉里边的概念都比较简单易懂,没觉得有什么难理解的概念。
: 要说写JS代码不容易,这个确实是由于JS先天缺陷造成的,本来就是写小程序的,写大
: 了肯定麻烦。但是这个语言本身为什么很多人说水很深,不好学呢?这个问题我还没想
: 明白,有大牛给指点一下吗?

A*******t
发帖数: 443
5
javascript确实也不是特别难。
下面两段code一段是prototype.js里面很有名的bind function的源码,另外一个是一
个很常用的js的technique,如果都懂的话,那js作为语言其实也就这么回事,当然DOM
API很不好用,那是另外一个故事了。
Function.prototype.bind = function(){
var fn = this, args = Array.prototype.slice.call(arguments), object = args
.shift();
return function(){
return fn.apply(object,
args.concat(Array.prototype.slice.call(arguments)));
};
};
(function(){
var count = 0;
var timer = setInterval(function(){
if ( count < 5 ) {
log( "Timer call: ", count );
count++;
} else {
assert( count == 5, "Count came via a closure, accessed each step." );
assert( timer, "The timer reference is also via a closure." );
clearInterval( timer );
}
}, 100);
})();

【在 p*****2 的大作中提到】
: 我这两天看了看,感觉里边的概念都比较简单易懂,没觉得有什么难理解的概念。
: 要说写JS代码不容易,这个确实是由于JS先天缺陷造成的,本来就是写小程序的,写大
: 了肯定麻烦。但是这个语言本身为什么很多人说水很深,不好学呢?这个问题我还没想
: 明白,有大牛给指点一下吗?

x****d
发帖数: 1766
6
Very difficult. Put it this way, dealing with women gives me headache, so I
say women is difficult. You might say, no, it is easy, every man can do
women. Sure, you can read JS learn JS like every man. But JS will give you
headache eventually, like every women. LOL.
x****d
发帖数: 1766
7
if you are serious, read about why google makes dart. you will get some
hints.
Try do algorithm analysis on a piece of JS code that doing math, maybe like
divide two integer, you will know. Because it is not strong typed, very hard
to code to the most efficient way. Most Junior can do JS coding, but most
senior can't even do JS analysis/algorithm improvement.
It is all about the algorithm and data structure, when comes to compare
language, right? JS is hard on both part. Think about what JS data structure
you use in JS, isn't it strange compare with others like java? Because what
you trained in school cs101 suddenly not work in JS. That is the reason I
say it is hard.
Like man we have logic, most language have logic, but JS like woman, it
doesn't use the common sense in other languages, like women has no logic, so
, it is difficult.
p*****2
发帖数: 21240
8

对。我也觉得JS是烦而不是难。其实主要是frontend没选择,不然的话多少人会用JS还
两说呢。

【在 d**o 的大作中提到】
: 主要是跟html的互动,测试起来很烦.
p*****2
发帖数: 21240
9

DOM
args
确实。所以我觉得JS的advance的特性主要就是higher order function, closure, and
prototype了。

【在 A*******t 的大作中提到】
: javascript确实也不是特别难。
: 下面两段code一段是prototype.js里面很有名的bind function的源码,另外一个是一
: 个很常用的js的technique,如果都懂的话,那js作为语言其实也就这么回事,当然DOM
: API很不好用,那是另外一个故事了。
: Function.prototype.bind = function(){
: var fn = this, args = Array.prototype.slice.call(arguments), object = args
: .shift();
: return function(){
: return fn.apply(object,
: args.concat(Array.prototype.slice.call(arguments)));

p*****2
发帖数: 21240
10

I
所以说还主要是烦呀

【在 x****d 的大作中提到】
: Very difficult. Put it this way, dealing with women gives me headache, so I
: say women is difficult. You might say, no, it is easy, every man can do
: women. Sure, you can read JS learn JS like every man. But JS will give you
: headache eventually, like every women. LOL.

相关主题
javascript才是未来发展的方向aspx网页现在到底流行不? (转载)
大家 JavaScript 用的多么?惠普开源JavaScript框架Enyo更新:支持桌面和移动平台
过去十年最成功的语言是JavaScript吧前端为什么不用java写
进入Programming版参与讨论
p*****2
发帖数: 21240
11

like
hard
structure
what
most language have logic, but JS like woman, it
doesn't use the common sense in other languages, like women has no logic, so
, it is difficult.
你的意思是它比most language都水深?为什么说没有logic,我感觉还好呀。到了
functional programming性能都不好分析,不单单是JS的问题。

【在 x****d 的大作中提到】
: if you are serious, read about why google makes dart. you will get some
: hints.
: Try do algorithm analysis on a piece of JS code that doing math, maybe like
: divide two integer, you will know. Because it is not strong typed, very hard
: to code to the most efficient way. Most Junior can do JS coding, but most
: senior can't even do JS analysis/algorithm improvement.
: It is all about the algorithm and data structure, when comes to compare
: language, right? JS is hard on both part. Think about what JS data structure
: you use in JS, isn't it strange compare with others like java? Because what
: you trained in school cs101 suddenly not work in JS. That is the reason I

A*******t
发帖数: 443
12
bind那个function里面又三个点
第一个是 this 是啥玩意
第二个是 call() 是干啥得
第三个是 apply() 是干啥得

and

【在 p*****2 的大作中提到】
:
: like
: hard
: structure
: what
: most language have logic, but JS like woman, it
: doesn't use the common sense in other languages, like women has no logic, so
: , it is difficult.
: 你的意思是它比most language都水深?为什么说没有logic,我感觉还好呀。到了
: functional programming性能都不好分析,不单单是JS的问题。

r****y
发帖数: 26819
13
写Javascript the Definitive Guide的作者都犯过一个在good part那本书里说过的错
误,也可以拿来看好不好懂:
// Make a function that assigns event handler functions to an array of nodes
the wrong way.
// When you click on a node, an alert box is supposed to display the ordinal
of the node.
// But it always displays the number of nodes instead.
var add_the_handlers = function (nodes) {
var i;
for (i = 0; i < nodes.length; i += 1) {
nodes[i].onclick = function (e) {
alert(i);
};
}
};

【在 A*******t 的大作中提到】
: bind那个function里面又三个点
: 第一个是 this 是啥玩意
: 第二个是 call() 是干啥得
: 第三个是 apply() 是干啥得
:
: and

p*****2
发帖数: 21240
14

刚试了一下
第一个this,就是被调用的函数了,比如 a.bind, 那么this就是a本身了
第二个call里边的arguments,应该是返回的closure的arguments了
apply就是JS的apply吧,好像这里也没什么特别的吧。
感觉就是几个概念问题,不算是什么JS advance的东西。

【在 A*******t 的大作中提到】
: bind那个function里面又三个点
: 第一个是 this 是啥玩意
: 第二个是 call() 是干啥得
: 第三个是 apply() 是干啥得
:
: and

p*****2
发帖数: 21240
15

nodes
ordinal
这个就是closure的特性吧?i一直存在的。哈哈。

【在 r****y 的大作中提到】
: 写Javascript the Definitive Guide的作者都犯过一个在good part那本书里说过的错
: 误,也可以拿来看好不好懂:
: // Make a function that assigns event handler functions to an array of nodes
: the wrong way.
: // When you click on a node, an alert box is supposed to display the ordinal
: of the node.
: // But it always displays the number of nodes instead.
: var add_the_handlers = function (nodes) {
: var i;
: for (i = 0; i < nodes.length; i += 1) {

A*******t
发帖数: 443
16
要想到javascript是第一个支持closure的主流语言啊

【在 p*****2 的大作中提到】
:
: nodes
: ordinal
: 这个就是closure的特性吧?i一直存在的。哈哈。

A*******t
发帖数: 443
17
this是function执行的context
如果是作为直接的function call,this就是整个js程序执行的context
(可以在浏览器,nodejs或者rhino等不同的环境下print this看看里面究竟是啥玩意)
如果是作为一个object的method,this就是这个object
如果是通过call或者apply执行,this就是call或者apply的参数
如果是作为constructor执行,this最开始是空的,然后通过执行constructor来fill
in field
bind最开始是prototype里面的东西,后来流行了之后才加到js的标准里面的。

【在 p*****2 的大作中提到】
:
: nodes
: ordinal
: 这个就是closure的特性吧?i一直存在的。哈哈。

p*****2
发帖数: 21240
18

所以我觉得JS挺好呀。

【在 A*******t 的大作中提到】
: 要想到javascript是第一个支持closure的主流语言啊
p*****2
发帖数: 21240
19

对。是这么回事。我只想问一个问题。
JS里边的object跟平时说的hashtable有啥大区别呀?感觉就是hashtable扩展了一下。
功能上没觉得有什么大区别。

【在 A*******t 的大作中提到】
: this是function执行的context
: 如果是作为直接的function call,this就是整个js程序执行的context
: (可以在浏览器,nodejs或者rhino等不同的环境下print this看看里面究竟是啥玩意)
: 如果是作为一个object的method,this就是这个object
: 如果是通过call或者apply执行,this就是call或者apply的参数
: 如果是作为constructor执行,this最开始是空的,然后通过执行constructor来fill
: in field
: bind最开始是prototype里面的东西,后来流行了之后才加到js的标准里面的。

n******t
发帖数: 4406
20
我擦,这年头还有人写文章说JS难的,怪不得程序员这么缺。

like
hard
structure
what

【在 x****d 的大作中提到】
: if you are serious, read about why google makes dart. you will get some
: hints.
: Try do algorithm analysis on a piece of JS code that doing math, maybe like
: divide two integer, you will know. Because it is not strong typed, very hard
: to code to the most efficient way. Most Junior can do JS coding, but most
: senior can't even do JS analysis/algorithm improvement.
: It is all about the algorithm and data structure, when comes to compare
: language, right? JS is hard on both part. Think about what JS data structure
: you use in JS, isn't it strange compare with others like java? Because what
: you trained in school cs101 suddenly not work in JS. That is the reason I

相关主题
Javascript确实是最优秀的语言之一需要一个纯javascript的HTMLparser
GWT已经没戏了,Javascript才是新星请推荐一个javascript教程吧
Help please.javascript onmouseover
进入Programming版参与讨论
A*******t
发帖数: 443
21
什么语言写大项目都有难点,我见过的任何说“XX语言很简单,我很精通”的程序员最
后发现水平都不咋地。

【在 n******t 的大作中提到】
: 我擦,这年头还有人写文章说JS难的,怪不得程序员这么缺。
:
: like
: hard
: structure
: what

n******t
发帖数: 4406
22
用JS写大项目本来有是脑子有问题。
自己给自己找麻烦的事,不能说叫难。

【在 A*******t 的大作中提到】
: 什么语言写大项目都有难点,我见过的任何说“XX语言很简单,我很精通”的程序员最
: 后发现水平都不咋地。

A*******t
发帖数: 443
23
浏览器里面跑的app现在这么多,不用js也不行吧。

【在 n******t 的大作中提到】
: 用JS写大项目本来有是脑子有问题。
: 自己给自己找麻烦的事,不能说叫难。

n******t
发帖数: 4406
24
显然是脑残啊。

【在 A*******t 的大作中提到】
: 浏览器里面跑的app现在这么多,不用js也不行吧。
p*****2
发帖数: 21240
25

还是大牛说话简单直接。

【在 n******t 的大作中提到】
: 显然是脑残啊。
B**W
发帖数: 2273
26
人类就是在不断给自己找麻烦中进步的。js反正就是浏览器标准语言,现在看不到任何
替代者,不玩前端的就别搁这给人添堵了,何必相互轻视呢

【在 n******t 的大作中提到】
: 用JS写大项目本来有是脑子有问题。
: 自己给自己找麻烦的事,不能说叫难。

p*****w
发帖数: 429
27
第一个老被做范例。
第二个是个计时器控制数量,为什么这么写

DOM
args

【在 A*******t 的大作中提到】
: javascript确实也不是特别难。
: 下面两段code一段是prototype.js里面很有名的bind function的源码,另外一个是一
: 个很常用的js的technique,如果都懂的话,那js作为语言其实也就这么回事,当然DOM
: API很不好用,那是另外一个故事了。
: Function.prototype.bind = function(){
: var fn = this, args = Array.prototype.slice.call(arguments), object = args
: .shift();
: return function(){
: return fn.apply(object,
: args.concat(Array.prototype.slice.call(arguments)));

n******t
发帖数: 4406
28
我开始写JS的时候是97年,你说我玩不玩前端?
但是明明是个前端脚本语言,硬要做自己不合适的事,然后说自己水很深,
我不知道该拿什么好话来说这种行为。

【在 B**W 的大作中提到】
: 人类就是在不断给自己找麻烦中进步的。js反正就是浏览器标准语言,现在看不到任何
: 替代者,不玩前端的就别搁这给人添堵了,何必相互轻视呢

c*********e
发帖数: 16335
29
现在mvc4 做validation在server side了。servlet也可以在server side做validation.

【在 p*****2 的大作中提到】
:
: 还是大牛说话简单直接。

p*****2
发帖数: 21240
30

validation.
这个主要指的什么validation?我理解server端一直需要做validation呀。

【在 c*********e 的大作中提到】
: 现在mvc4 做validation在server side了。servlet也可以在server side做validation.
相关主题
问个HTML DOM JavaScript相关的问题Java新手问题
webbrowser怎样获取javascript 的表达式值?PHP/JSP/ASP等页面语言应该被慢慢抛弃了吧?
请推荐一本JavaScript 入门书战国RIA
进入Programming版参与讨论
B**W
发帖数: 2273
31
97年JS引擎是什么水平?合不合适只能对具体人,具体事情而言,有人就是愿意用
JavaScript写个Linux Simulator玩儿,人家有这个水平,谁管的着?http://bellard.org/jslinux/
就是这么折腾才能发现JS的不足,然后才有人去提高,升级或者Fork。你那种思维当然
也不是没道理,比较适合纯工程,慎创新,少折腾,怎么保险怎么来,什么好用用什么
,一切以按期完活为准. 但很多所谓牛人并非如此,一定要把某种东西发挥到极致,要
么直接暴露致命缺点,要么发扬光大。

【在 n******t 的大作中提到】
: 我开始写JS的时候是97年,你说我玩不玩前端?
: 但是明明是个前端脚本语言,硬要做自己不合适的事,然后说自己水很深,
: 我不知道该拿什么好话来说这种行为。

p*****2
发帖数: 21240
32

主要是你这么搞可以,没必要跟别人说因为我这么搞了,所以水很深吧?

【在 B**W 的大作中提到】
: 97年JS引擎是什么水平?合不合适只能对具体人,具体事情而言,有人就是愿意用
: JavaScript写个Linux Simulator玩儿,人家有这个水平,谁管的着?http://bellard.org/jslinux/
: 就是这么折腾才能发现JS的不足,然后才有人去提高,升级或者Fork。你那种思维当然
: 也不是没道理,比较适合纯工程,慎创新,少折腾,怎么保险怎么来,什么好用用什么
: ,一切以按期完活为准. 但很多所谓牛人并非如此,一定要把某种东西发挥到极致,要
: 么直接暴露致命缺点,要么发扬光大。

B**W
发帖数: 2273
33
还要把小马过河的故事再讲一遍么?人家就是觉得深,你不愿进去淌,就当浅好了。这
个有什么问题么?

【在 p*****2 的大作中提到】
:
: 主要是你这么搞可以,没必要跟别人说因为我这么搞了,所以水很深吧?

c********l
发帖数: 8138
34
我接触过的所有语言里面,最难学的是汇编语言(不会编!),
第二难的就是javascript
里面的“this, prototype, constructor”到现在都没有搞清楚!
java相比javascript,要简单一百倍!

【在 p*****2 的大作中提到】
: 我这两天看了看,感觉里边的概念都比较简单易懂,没觉得有什么难理解的概念。
: 要说写JS代码不容易,这个确实是由于JS先天缺陷造成的,本来就是写小程序的,写大
: 了肯定麻烦。但是这个语言本身为什么很多人说水很深,不好学呢?这个问题我还没想
: 明白,有大牛给指点一下吗?

c********l
发帖数: 8138
35
Like man we have logic, most language have logic, but JS like woman, it
doesn't use the common sense in other languages, like women has no logic, so
, it is difficult.
Exactly!!!!!

like
hard
structure
what

【在 x****d 的大作中提到】
: if you are serious, read about why google makes dart. you will get some
: hints.
: Try do algorithm analysis on a piece of JS code that doing math, maybe like
: divide two integer, you will know. Because it is not strong typed, very hard
: to code to the most efficient way. Most Junior can do JS coding, but most
: senior can't even do JS analysis/algorithm improvement.
: It is all about the algorithm and data structure, when comes to compare
: language, right? JS is hard on both part. Think about what JS data structure
: you use in JS, isn't it strange compare with others like java? Because what
: you trained in school cs101 suddenly not work in JS. That is the reason I

L*****c
发帖数: 62
36
说说你都看懂啥概念了

【在 p*****2 的大作中提到】
: 我这两天看了看,感觉里边的概念都比较简单易懂,没觉得有什么难理解的概念。
: 要说写JS代码不容易,这个确实是由于JS先天缺陷造成的,本来就是写小程序的,写大
: 了肯定麻烦。但是这个语言本身为什么很多人说水很深,不好学呢?这个问题我还没想
: 明白,有大牛给指点一下吗?

L*****c
发帖数: 62
37
可以用GWT或者script #

【在 n******t 的大作中提到】
: 用JS写大项目本来有是脑子有问题。
: 自己给自己找麻烦的事,不能说叫难。

L*****c
发帖数: 62
38
长期从事OO类语言JAVA或C#开发的人,刚一接触JS这种prototype,dynamic的语言,很
容易被搞的三观全毁

【在 c********l 的大作中提到】
: 我接触过的所有语言里面,最难学的是汇编语言(不会编!),
: 第二难的就是javascript
: 里面的“this, prototype, constructor”到现在都没有搞清楚!
: java相比javascript,要简单一百倍!

c***d
发帖数: 996
39
你这么一说, 这个汇编和javascript好像还真有点相似之处啊。 主要功能都是对一个
定义好的全局目标集合进行操作。 汇编是register, memory, javascript就是browser
document markup。
你可能学好汇编再来看javascript, 就明白怎么回事了。

【在 c********l 的大作中提到】
: 我接触过的所有语言里面,最难学的是汇编语言(不会编!),
: 第二难的就是javascript
: 里面的“this, prototype, constructor”到现在都没有搞清楚!
: java相比javascript,要简单一百倍!

p*****2
发帖数: 21240
40

感觉这个比喻不恰当。

【在 B**W 的大作中提到】
: 还要把小马过河的故事再讲一遍么?人家就是觉得深,你不愿进去淌,就当浅好了。这
: 个有什么问题么?

相关主题
战国RIA大家 JavaScript 用的多么?
用Javascript Framework的请进 (转载)过去十年最成功的语言是JavaScript吧
javascript才是未来发展的方向aspx网页现在到底流行不? (转载)
进入Programming版参与讨论
p*****2
发帖数: 21240
41

请问您都学过什么语言呢?

【在 c********l 的大作中提到】
: 我接触过的所有语言里面,最难学的是汇编语言(不会编!),
: 第二难的就是javascript
: 里面的“this, prototype, constructor”到现在都没有搞清楚!
: java相比javascript,要简单一百倍!

p*****2
发帖数: 21240
42

higher order function, closure, prototype

【在 L*****c 的大作中提到】
: 说说你都看懂啥概念了
t********e
发帖数: 880
43
用js做前端已经很脑残了,还要染指后台那绝对是lese中的lese

【在 n******t 的大作中提到】
: 显然是脑残啊。
n******t
发帖数: 4406
44
我2010年也有写过的,而且也不觉得难。不过如果你还有机会97年写过JS的话,你肯定
不会觉得那个比起现在的简单,其实倒也不是难,而是很多实现就是broken的。
语言这种东西,不可能面面俱到。而且还要参杂历史的因素。
JS这东西就是为了扩展web的交互功能而设计的,所以要去做自己不擅长的事,
当然是可以,但是也就是找麻烦而已。就像你要开部摩托车去耕田,
当然没人管你,但是恐怕不能用这个来说摩托车很难开。

【在 B**W 的大作中提到】
: 97年JS引擎是什么水平?合不合适只能对具体人,具体事情而言,有人就是愿意用
: JavaScript写个Linux Simulator玩儿,人家有这个水平,谁管的着?http://bellard.org/jslinux/
: 就是这么折腾才能发现JS的不足,然后才有人去提高,升级或者Fork。你那种思维当然
: 也不是没道理,比较适合纯工程,慎创新,少折腾,怎么保险怎么来,什么好用用什么
: ,一切以按期完活为准. 但很多所谓牛人并非如此,一定要把某种东西发挥到极致,要
: 么直接暴露致命缺点,要么发扬光大。

l*s
发帖数: 783
45
不是javascript难学,是旧社会用javascript写cross browser/resolution的前端很烦。

【在 p*****2 的大作中提到】
: 我这两天看了看,感觉里边的概念都比较简单易懂,没觉得有什么难理解的概念。
: 要说写JS代码不容易,这个确实是由于JS先天缺陷造成的,本来就是写小程序的,写大
: 了肯定麻烦。但是这个语言本身为什么很多人说水很深,不好学呢?这个问题我还没想
: 明白,有大牛给指点一下吗?

c*********e
发帖数: 16335
46
本来是提倡在client-side做validation的。但是现在c# mvc4在controller里面做
validation,和流行趋势有点不同。
个人还是喜欢javascript + ajax在client side做validation.

【在 p*****2 的大作中提到】
:
: higher order function, closure, prototype

l*s
发帖数: 783
47
同学,建议你全面地再学一学.net. 不要这么轻易下结论。

【在 c*********e 的大作中提到】
: 本来是提倡在client-side做validation的。但是现在c# mvc4在controller里面做
: validation,和流行趋势有点不同。
: 个人还是喜欢javascript + ajax在client side做validation.

c********l
发帖数: 8138
48
恩,“毁三观”形容得很亲切

【在 L*****c 的大作中提到】
: 长期从事OO类语言JAVA或C#开发的人,刚一接触JS这种prototype,dynamic的语言,很
: 容易被搞的三观全毁

x****d
发帖数: 1766
49
define what is nan and what is fan?
JS is easy to start, I agree, but difficult to master, do you agree?
those bragging about how easy/early they learned a language, I would say
they are all not into a serious discussion. But only troll here and there.


【在 p*****2 的大作中提到】
:
: higher order function, closure, prototype

x****d
发帖数: 1766
50
I would say you are so narrow minded. No offence. When people discuss
something is difficult, they don't get personal and they shouldn't. Only
those have no self confidence jump out, they just want to make themselves
look good. Nothing more.
When we discussed that EJB is difficult, some said we were stupid. They
think they are smart, I pity them. And finally we made spring happened, what
they got? One minute good feeling, right? But they do nothing good to the
human being as whole.

【在 n******t 的大作中提到】
: 我擦,这年头还有人写文章说JS难的,怪不得程序员这么缺。
:
: like
: hard
: structure
: what

相关主题
惠普开源JavaScript框架Enyo更新:支持桌面和移动平台GWT已经没戏了,Javascript才是新星
前端为什么不用java写Help please.
Javascript确实是最优秀的语言之一需要一个纯javascript的HTMLparser
进入Programming版参与讨论
x****d
发帖数: 1766
51
What kind of fundamental education you had? Why our value is so different?
To me, try and fail is human nature, and it is the driver to human society
development. Remember Thomas Edison's stories? Why you didn't get it? It is
taught in elementary school.

【在 n******t 的大作中提到】
: 我2010年也有写过的,而且也不觉得难。不过如果你还有机会97年写过JS的话,你肯定
: 不会觉得那个比起现在的简单,其实倒也不是难,而是很多实现就是broken的。
: 语言这种东西,不可能面面俱到。而且还要参杂历史的因素。
: JS这东西就是为了扩展web的交互功能而设计的,所以要去做自己不擅长的事,
: 当然是可以,但是也就是找麻烦而已。就像你要开部摩托车去耕田,
: 当然没人管你,但是恐怕不能用这个来说摩托车很难开。

p*****2
发帖数: 21240
52

这个吗,我的世界观有点颠覆了

【在 c*********e 的大作中提到】
: 本来是提倡在client-side做validation的。但是现在c# mvc4在controller里面做
: validation,和流行趋势有点不同。
: 个人还是喜欢javascript + ajax在client side做validation.

t***a
发帖数: 416
53
二爷别怕,我也觉得挺毁三观的。。

【在 p*****2 的大作中提到】
:
: 这个吗,我的世界观有点颠覆了

n******t
发帖数: 4406
54
I am just trying to give you some advice on how to make your programming
life
easier by using proper tools and language for the proper task.
It is your choice if you want to observe the fact or ignore it.
Everybody tries, it does not mean a damn thing, how to try things smarter,
that's what matters.
BTW, Thomas Edison is a horrible example....

is

【在 x****d 的大作中提到】
: What kind of fundamental education you had? Why our value is so different?
: To me, try and fail is human nature, and it is the driver to human society
: development. Remember Thomas Edison's stories? Why you didn't get it? It is
: taught in elementary school.

p*****2
发帖数: 21240
55

大牛说的很好。我觉得应该掌握多门语言和tools,在不同的场合用不同的语言,没必
要想着一个语言什么都干。我还没见过有这样万能的语言呢。

【在 n******t 的大作中提到】
: I am just trying to give you some advice on how to make your programming
: life
: easier by using proper tools and language for the proper task.
: It is your choice if you want to observe the fact or ignore it.
: Everybody tries, it does not mean a damn thing, how to try things smarter,
: that's what matters.
: BTW, Thomas Edison is a horrible example....
:
: is

x****d
发帖数: 1766
56
Dont go off topic. you talking about jslinux, right? it has nothing to do
with proper tools/language for proper task. It is a hobbit, so obvious. When
it comes to node.js, it is proper everything, what is wrong with your
understanding?
You are so judgmental.
BTW, dont provide unsolicited advice, it is rude. And BTW again, I am
probable 10 years senior than you. 97 I am doing java when you doing js, and
I dont touch js coding at work my whole life, do I look like I need your
advice?

【在 n******t 的大作中提到】
: I am just trying to give you some advice on how to make your programming
: life
: easier by using proper tools and language for the proper task.
: It is your choice if you want to observe the fact or ignore it.
: Everybody tries, it does not mean a damn thing, how to try things smarter,
: that's what matters.
: BTW, Thomas Edison is a horrible example....
:
: is

x****d
发帖数: 1766
57

I have nothing against about this. But we dont oppress others for trying new
things or have different understand of proper.
Dont forget, proper, smart, are all subjective, and judgmental.
I guess most science student dont understand. LiKeSheng, even I am one of
them, I think they are pathetic sometimes.

【在 p*****2 的大作中提到】
:
: 大牛说的很好。我觉得应该掌握多门语言和tools,在不同的场合用不同的语言,没必
: 要想着一个语言什么都干。我还没见过有这样万能的语言呢。

d**********x
发帖数: 4083
58
连javascript code都没touch过,您跑这thread里面吹什么呢。。。
这版上不知所谓的人还真多嘞。。。

When
and

【在 x****d 的大作中提到】
: Dont go off topic. you talking about jslinux, right? it has nothing to do
: with proper tools/language for proper task. It is a hobbit, so obvious. When
: it comes to node.js, it is proper everything, what is wrong with your
: understanding?
: You are so judgmental.
: BTW, dont provide unsolicited advice, it is rude. And BTW again, I am
: probable 10 years senior than you. 97 I am doing java when you doing js, and
: I dont touch js coding at work my whole life, do I look like I need your
: advice?

n******t
发帖数: 4406
59
so you had never coded in JS ???
you see, this is the damn freaking problem of software industry,
where people who do not code likes to talk about software engineering.
Notice I coded in JS in 1997 does not mean I only coded in JS in 1997,
I coded in a dozen of lauguages and some of them probably can be very
"hard" for you..lol

When
and

【在 x****d 的大作中提到】
: Dont go off topic. you talking about jslinux, right? it has nothing to do
: with proper tools/language for proper task. It is a hobbit, so obvious. When
: it comes to node.js, it is proper everything, what is wrong with your
: understanding?
: You are so judgmental.
: BTW, dont provide unsolicited advice, it is rude. And BTW again, I am
: probable 10 years senior than you. 97 I am doing java when you doing js, and
: I dont touch js coding at work my whole life, do I look like I need your
: advice?

x****d
发帖数: 1766
60
Have you ever worked? I don't touch JS coding, but I do design, analysis,
code review and so on.
anyway, I duck, I don't feel interested talking here no more.

【在 d**********x 的大作中提到】
: 连javascript code都没touch过,您跑这thread里面吹什么呢。。。
: 这版上不知所谓的人还真多嘞。。。
:
: When
: and

相关主题
请推荐一个javascript教程吧webbrowser怎样获取javascript 的表达式值?
javascript onmouseover请推荐一本JavaScript 入门书
问个HTML DOM JavaScript相关的问题Java新手问题
进入Programming版参与讨论
x****d
发帖数: 1766
61
I did code, but not in JS. See my other post, I dont code in js at work, but
I do know js, i do other stuffs.
Yeah, probably all your language is very hard to me. So, can we have some
grown man discuss? Or if you just want me duck, I duck.
Enjoy all easy language yourself, wish your whole life is easy, never a damn
hard thing.

【在 n******t 的大作中提到】
: so you had never coded in JS ???
: you see, this is the damn freaking problem of software industry,
: where people who do not code likes to talk about software engineering.
: Notice I coded in JS in 1997 does not mean I only coded in JS in 1997,
: I coded in a dozen of lauguages and some of them probably can be very
: "hard" for you..lol
:
: When
: and

d**********x
发帖数: 4083
62
跪了,您继续吹吧。。。

【在 x****d 的大作中提到】
: Have you ever worked? I don't touch JS coding, but I do design, analysis,
: code review and so on.
: anyway, I duck, I don't feel interested talking here no more.

n******t
发帖数: 4406
63
code review都来了,我。。。。。

【在 d**********x 的大作中提到】
: 跪了,您继续吹吧。。。
d**********x
发帖数: 4083
64
I don't own army, but I design, analysis, give advice and review military
actions and so on (on bbs).

【在 n******t 的大作中提到】
: code review都来了,我。。。。。
x****d
发帖数: 1766
65
do you know me? I guess you never heard about collaborative code review?
Here is a link to the tools for this purpose.
www.reviewboard.org

【在 n******t 的大作中提到】
: code review都来了,我。。。。。
x****d
发帖数: 1766
66
u are funny. you got me, actually I am a janitor, how do you get me? you are
so freaking smart. I know nothing about programming, I do pimp at night,
the real pimp, not your pmp, I fuck lot girls for free, that is what I
really do. Oh, sorry, I am lying again, damn. I am just a compulsive liar.
fxxx. Can you help me? I want to be a good people like you, honest, smart.

【在 d**********x 的大作中提到】
: I don't own army, but I design, analysis, give advice and review military
: actions and so on (on bbs).

p*****2
发帖数: 21240
67
讨论了好几页了。到底有结论了吗?
JS到底是难学还是不难学?
JS比什么语言难学,比什么语言容易学?
JS为什么难学?
谁能给个summary?如果没有的话,我就assume JS好学了。
r****y
发帖数: 26819
68
前边说的猪猪版主出的题目做了没有?

【在 p*****2 的大作中提到】
: 讨论了好几页了。到底有结论了吗?
: JS到底是难学还是不难学?
: JS比什么语言难学,比什么语言容易学?
: JS为什么难学?
: 谁能给个summary?如果没有的话,我就assume JS好学了。

p*****2
发帖数: 21240
69

什么题?

【在 r****y 的大作中提到】
: 前边说的猪猪版主出的题目做了没有?
r****y
发帖数: 26819
70
http://mitbbs.com/article1/Programming/31247875_3_0.html

【在 p*****2 的大作中提到】
:
: 什么题?

相关主题
Java新手问题用Javascript Framework的请进 (转载)
PHP/JSP/ASP等页面语言应该被慢慢抛弃了吧?javascript才是未来发展的方向
战国RIA大家 JavaScript 用的多么?
进入Programming版参与讨论
S*******e
发帖数: 525
71
会者不难,难者不会。
"Hello World" 通常很容易。 系统大了就很难。 不管怎样,眼下javascript(
including jQuery) 对做web是必须的(不管你认为容易与否)。 在大公司做大系统中
间的或后端的, 可能根本不必知道。

【在 p*****2 的大作中提到】
: 讨论了好几页了。到底有结论了吗?
: JS到底是难学还是不难学?
: JS比什么语言难学,比什么语言容易学?
: JS为什么难学?
: 谁能给个summary?如果没有的话,我就assume JS好学了。

p*****2
发帖数: 21240
72

难不难跟是不是必须没什么关系吧?

【在 S*******e 的大作中提到】
: 会者不难,难者不会。
: "Hello World" 通常很容易。 系统大了就很难。 不管怎样,眼下javascript(
: including jQuery) 对做web是必须的(不管你认为容易与否)。 在大公司做大系统中
: 间的或后端的, 可能根本不必知道。

p*****2
发帖数: 21240
73

这东西当时就没看。能不能给个summary?

【在 r****y 的大作中提到】
: http://mitbbs.com/article1/Programming/31247875_3_0.html
r****y
发帖数: 26819
74
summary啥?就是做三道题。

【在 p*****2 的大作中提到】
:
: 这东西当时就没看。能不能给个summary?

x****d
发帖数: 1766
75
science and tech student are pathetic. They cant define difficult clearly.
In their mind difficult/nan has only one explanation.
Even we are talking learning process, it could be very difficult. Dont just
think learning is like learning ABC in school. It depends what purpose you
learn JS, it could be extremely difficult.
If you or your kids have a dream to build something similar to JQuery, it is
not learning ABC anymore, you say easy?
If you are in a company they want to do something replace JS, you are in the
team, how do you learn, just scratch the surface and call it easy?
If you are in a team building a system the purpose is to improve JS
debugging/testing, how do you learn? A few books and few patterns you call
yourself picked up?
yeah, you would say you need years experience to start those task, then I
think you will never be a good programmer.
If you imagine one day you will tackle those tasks or something similar,
even worse, you only have short period of time, tell me how easy is that.
a****e
发帖数: 9589
76
Python, 幼儿园的语言

【在 p*****2 的大作中提到】
:
: 这东西当时就没看。能不能给个summary?

p*****2
发帖数: 21240
77

这么多人回复。也就是你说的最靠谱了。

【在 a****e 的大作中提到】
: Python, 幼儿园的语言
d**o
发帖数: 864
78
单从语言的角度来说,比python难一点点而已。写起来却烦死你。
从应用角度来说,虽然node.js现在做server side的script开始流行(rnr, php,
django的功能),但js不可替代的作用是作browser side的UI交互,也就是说,除非你
想做UI,学javascript没有太大意义(个人意见)。
做UI,又必须得用jquery之类的framework,否则写起code起来很烦,但是这种
framework又得跟原生的javascript混着用,所以javascript的code经常看起来非常的
messy。你又得用各种各样的library,各种library的语法经常又不一致。
没有难不难的问题,就是烦,因为你要做web UI,你就得跟HTML,CSS交互,这些东西
的结构又都不一回事,web的debug和test又没有很有系统性(得不断刷新页面来test 实
现的功能).交互都是以事件触发的,比如说某一个button被click了,你得做一系列的
反应,html的content怎么变,css怎么变,数据怎么样从server load。
很经常你得用REST跟server side互动,这时候又有数据的interface的问题,如果数据
量大,你就不会想把browser给freeze了,所以交给javascript的数据一般得在server
side结构化化成JSON。很简单的一个form validation或者autocompletion你可能都得
跟数据库做交互(比如说根据输入实时查询数据库内容做auto completion)。
总之,JS不是一个难的语言,但是要实现web功能的话,需要互动的东西太多了,HTML
DOM,CSS,REST,php(或者django或者rnr或者php),甚至数据库,所以会很烦很烦很
烦。
BTW,我写google map visualization比较多,我不是一个职业的码农,上面写的只是
我的直观映像而已。

【在 p*****2 的大作中提到】
: 讨论了好几页了。到底有结论了吗?
: JS到底是难学还是不难学?
: JS比什么语言难学,比什么语言容易学?
: JS为什么难学?
: 谁能给个summary?如果没有的话,我就assume JS好学了。

x****d
发帖数: 1766
79
fan, nandao bushi nan zhege gainian de yige waiyan tixian ma?
English is only 26 characters, pretty easy, I can learn all the grammar in
one day, and gre words in 3 months. So, can I say it is easy? I see some
male smart guy struggle with English his freaking whole life, is it English
easy? Dont forget, those smart guy all pass tofle and gre with incredible
high score.
p*****2
发帖数: 21240
80

这个最客观全面。赞一个。不过现在都是web app,自己想做点什么都需要frontend的
一些基本知识。JS不可避免。

【在 d**o 的大作中提到】
: 单从语言的角度来说,比python难一点点而已。写起来却烦死你。
: 从应用角度来说,虽然node.js现在做server side的script开始流行(rnr, php,
: django的功能),但js不可替代的作用是作browser side的UI交互,也就是说,除非你
: 想做UI,学javascript没有太大意义(个人意见)。
: 做UI,又必须得用jquery之类的framework,否则写起code起来很烦,但是这种
: framework又得跟原生的javascript混着用,所以javascript的code经常看起来非常的
: messy。你又得用各种各样的library,各种library的语法经常又不一致。
: 没有难不难的问题,就是烦,因为你要做web UI,你就得跟HTML,CSS交互,这些东西
: 的结构又都不一回事,web的debug和test又没有很有系统性(得不断刷新页面来test 实
: 现的功能).交互都是以事件触发的,比如说某一个button被click了,你得做一系列的

相关主题
过去十年最成功的语言是JavaScript吧前端为什么不用java写
aspx网页现在到底流行不? (转载)Javascript确实是最优秀的语言之一
惠普开源JavaScript框架Enyo更新:支持桌面和移动平台GWT已经没戏了,Javascript才是新星
进入Programming版参与讨论
r****y
发帖数: 26819
81
现在流行听评书演义啊。

【在 p*****2 的大作中提到】
:
: 这个最客观全面。赞一个。不过现在都是web app,自己想做点什么都需要frontend的
: 一些基本知识。JS不可避免。

i***h
发帖数: 12655
82
JS这个closure是让c/Java过来的不习惯

【在 L*****c 的大作中提到】
: 长期从事OO类语言JAVA或C#开发的人,刚一接触JS这种prototype,dynamic的语言,很
: 容易被搞的三观全毁

w********l
发帖数: 14
83
这个说的挺好的,学习了。谢谢!

【在 d**o 的大作中提到】
: 单从语言的角度来说,比python难一点点而已。写起来却烦死你。
: 从应用角度来说,虽然node.js现在做server side的script开始流行(rnr, php,
: django的功能),但js不可替代的作用是作browser side的UI交互,也就是说,除非你
: 想做UI,学javascript没有太大意义(个人意见)。
: 做UI,又必须得用jquery之类的framework,否则写起code起来很烦,但是这种
: framework又得跟原生的javascript混着用,所以javascript的code经常看起来非常的
: messy。你又得用各种各样的library,各种library的语法经常又不一致。
: 没有难不难的问题,就是烦,因为你要做web UI,你就得跟HTML,CSS交互,这些东西
: 的结构又都不一回事,web的debug和test又没有很有系统性(得不断刷新页面来test 实
: 现的功能).交互都是以事件触发的,比如说某一个button被click了,你得做一系列的

w********l
发帖数: 14
84
有个相应的问题,为什么JSP没有取代JS呢?JSP写起来不是容易得多吗?是因为JSP老
是要等Server端的response吗?有没有那位大牛给讲讲?
g*****g
发帖数: 34805
85
Ajax is much more responsive by updating partial page. That's an advantage
no server side framework can match.

【在 w********l 的大作中提到】
: 有个相应的问题,为什么JSP没有取代JS呢?JSP写起来不是容易得多吗?是因为JSP老
: 是要等Server端的response吗?有没有那位大牛给讲讲?

x****d
发帖数: 1766
86
you kidding, right?

【在 w********l 的大作中提到】
: 有个相应的问题,为什么JSP没有取代JS呢?JSP写起来不是容易得多吗?是因为JSP老
: 是要等Server端的response吗?有没有那位大牛给讲讲?

k*********s
发帖数: 4474
87
有谁看好YUI 3 吗?
r********s
发帖数: 101
88


【在 k*********s 的大作中提到】
: 有谁看好YUI 3 吗?
p*****2
发帖数: 21240
89

貌似不是一种东西吧?

【在 w********l 的大作中提到】
: 有个相应的问题,为什么JSP没有取代JS呢?JSP写起来不是容易得多吗?是因为JSP老
: 是要等Server端的response吗?有没有那位大牛给讲讲?

x****d
发帖数: 1766
90
JSP is gone. MVC you dont really need jsp. JS is a browser language, at
least its engine is mainly for browser.

【在 p*****2 的大作中提到】
:
: 貌似不是一种东西吧?

相关主题
Help please.javascript onmouseover
需要一个纯javascript的HTMLparser问个HTML DOM JavaScript相关的问题
请推荐一个javascript教程吧webbrowser怎样获取javascript 的表达式值?
进入Programming版参与讨论
r***y
发帖数: 4379
91
xmlxsd 这哥们写的很明白了
说不难是你不够senior, 跟js还处在搞对象期间, 顶多隔三差五上个床啥的
等你跟一女人在一起锅碗瓢盆的过上十年, 她有给你生了一大窝孩子, 就知道xmlxsd
在说啥了

【在 n******t 的大作中提到】
: 我擦,这年头还有人写文章说JS难的,怪不得程序员这么缺。
:
: like
: hard
: structure
: what

w********l
发帖数: 14
92
Thanks, goodbug! This makes sense. Hopefully there will be a new browser (
client side) language which can do client side update/computation but not as
hairy as JS.

【在 g*****g 的大作中提到】
: Ajax is much more responsive by updating partial page. That's an advantage
: no server side framework can match.

w********l
发帖数: 14
93
Can JSP (Java Server Page) still be used together with JS?

【在 x****d 的大作中提到】
: JSP is gone. MVC you dont really need jsp. JS is a browser language, at
: least its engine is mainly for browser.

g*****g
发帖数: 34805
94
Certainly. Many websites use JSP as the scripting language and JS for
certain components, e.g. autocomplete.

【在 w********l 的大作中提到】
: Can JSP (Java Server Page) still be used together with JS?
w********l
发帖数: 14
95
既然JS这么难写和维护,那GWT(Google Web Toolkit)是不是会更加流行起来?毕竟GWT
takes care of JS compilation. 码工不必直接写JS了?
A*******t
发帖数: 443
96
效率还不行。

GWT

【在 w********l 的大作中提到】
: 既然JS这么难写和维护,那GWT(Google Web Toolkit)是不是会更加流行起来?毕竟GWT
: takes care of JS compilation. 码工不必直接写JS了?

w********l
发帖数: 14
97
具体是指?GWT library不全面?还是GWT compiled JS 不够优化?

【在 A*******t 的大作中提到】
: 效率还不行。
:
: GWT

r***y
发帖数: 4379
98
not true, jsp is still active and thoroughly used in serious projects, it's
super flexible to do customization.

【在 x****d 的大作中提到】
: JSP is gone. MVC you dont really need jsp. JS is a browser language, at
: least its engine is mainly for browser.

1 (共1页)
进入Programming版参与讨论
相关主题
请推荐一个javascript教程吧用Javascript Framework的请进 (转载)
javascript onmouseoverjavascript才是未来发展的方向
问个HTML DOM JavaScript相关的问题大家 JavaScript 用的多么?
webbrowser怎样获取javascript 的表达式值?过去十年最成功的语言是JavaScript吧
请推荐一本JavaScript 入门书aspx网页现在到底流行不? (转载)
Java新手问题惠普开源JavaScript框架Enyo更新:支持桌面和移动平台
PHP/JSP/ASP等页面语言应该被慢慢抛弃了吧?前端为什么不用java写
战国RIAJavascript确实是最优秀的语言之一
相关话题的讨论汇总
话题: js话题: javascript话题: do话题: like话题: difficult