d*r
5 楼
我觉得 Ruby 比 Python 难用多了,
就是你自己一个人干活, 也得看别人工具和lib里的 DSL
特别是有些巨简单的事儿, Ruby guys 也爱发明一堆 DSL 让你学
就是你自己一个人干活, 也得看别人工具和lib里的 DSL
特别是有些巨简单的事儿, Ruby guys 也爱发明一堆 DSL 让你学
c*1
8 楼
It took me a half day to learn python. I can write python code to do what I
want to do. I use python for my personal projects currently.
After spend one day, I still have difficulty to write ruby code to do what I
want to do. I just gave up to learn ruby.
【在 l**********n 的大作中提到】![](/moin_static193/solenoid/img/up.png)
: ruby简单,看文档就行。比python强多了
want to do. I use python for my personal projects currently.
After spend one day, I still have difficulty to write ruby code to do what I
want to do. I just gave up to learn ruby.
【在 l**********n 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: ruby简单,看文档就行。比python强多了
d*r
12 楼
最烦的是, 只要用 Ruby, 必然读别人的 DSL
不管这个 DSL 多没必要, 设计得多烂
I
I
【在 c********1 的大作中提到】![](/moin_static193/solenoid/img/up.png)
: It took me a half day to learn python. I can write python code to do what I
: want to do. I use python for my personal projects currently.
: After spend one day, I still have difficulty to write ruby code to do what I
: want to do. I just gave up to learn ruby.
不管这个 DSL 多没必要, 设计得多烂
I
I
【在 c********1 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: It took me a half day to learn python. I can write python code to do what I
: want to do. I use python for my personal projects currently.
: After spend one day, I still have difficulty to write ruby code to do what I
: want to do. I just gave up to learn ruby.
L*s
17 楼
python的lambda只能是表达式,能力比C++和ruby的差好多,可以说是半个残废
【在 c********1 的大作中提到】![](/moin_static193/solenoid/img/up.png)
: Is lambda just a piece of code that is callable?
: Is a lambda kind of like a function? sample code
: import sys
: sum = lambda x, y: x + y # def sum(x,y): return x + y
: out = lambda *x: sys.stdout.write(" ".join(map(str,x)))
: a = sum(1,2)
: out(a)
: out("\n")
: print(a)
【在 c********1 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: Is lambda just a piece of code that is callable?
: Is a lambda kind of like a function? sample code
: import sys
: sum = lambda x, y: x + y # def sum(x,y): return x + y
: out = lambda *x: sys.stdout.write(" ".join(map(str,x)))
: a = sum(1,2)
: out(a)
: out("\n")
: print(a)
l*n
18 楼
Ruby不错的,Ruby Mongoid就比Mongoose强。Ruby这个语言太灵活了,表达能力太强了
。
。
相关阅读