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 的大作中提到】
: 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 的大作中提到】
: ruby简单,看文档就行。比python强多了
d*r
12 楼
最烦的是, 只要用 Ruby, 必然读别人的 DSL
不管这个 DSL 多没必要, 设计得多烂
I
I
【在 c********1 的大作中提到】
: 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 的大作中提到】
: 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 的大作中提到】
: 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 的大作中提到】
: 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这个语言太灵活了,表达能力太强了
。
。
相关阅读
问一个函数对象问题重载 ^ 操作符编译出错how把文件drag到一个application's icon, so it takes the file as input ?请教大家一个directx显卡输出格式的问题.What syntax is this?(about macro)Watch out for list(dict.keys()) in Python 3 (zz)C++: protect dtor有大侠讲讲RTTI和exception的问题么?请问java有类似fsync之类的方法?请问delete的问题What is wrong in this array declaration.Another JAVA program needs help!大家手头都装模作样的放些啥书(纸)偶一开始用python, 现在还是matlab问高手:gsl 如何与vc2008或者 vc2005 or vc6.0接口?google maps API other than Javascript?计算机供电不稳定会影响程序/线程运行吗?Help: C complierC++编程问题:union inside struct如何从excel以特定格式导出数据到word? (转载)