James님의 프로필流水账사진블로그리스트 도구 도움말
사진(1/12)

流水账

子在川上曰 逝者如斯夫
12월 10일

Stay hungury, stay foolish

前一阵看到某同学的“Stay hungury, Stay foolish"的帖子之后,没明白其中的真实含义,直到前一阵通过另外一个同学的blog看到了下面的文章之后,才幡然醒悟:
 
 
 
个人觉得经典的片段为:
Your time is limited, so don't waste it living someone else's life. Don't be trapped by dogma — which is living with the results of other people's thinking. Don't let the noise of others' opinions drown out your own inner voice. And most important, have the courage to follow your heart and intuition. They somehow already know what you truly want to become. Everything else is secondary.
 
回顾这几年,我有没有活在别人的生活中呢?或多或少都有点吧,从结果来看,我现在过的是Stay fat, Stay idiot的生活。Open-mouthed
 
不管怎么说,Amino对我而言是一个完美的项目:
1. 开源,我可以随便讨论
2. 不涉及UI,我可以方便的用JUnit/TestNG等工具来测试它
3. 应用范围广泛,在多核的时代谁都会需要它(仅限Java/C++程序员)
 
广告就做到这里,欢迎访问我们的wiki和forum。
 
 
 
 
6월 14일

球球为大家表演弹钢琴啦

 
6월 12일

球球给小狗拔牙

 
1월 6일

[Gan, Zhi] Linux下各种语言的性能比较

http://shootout.alioth.debian.org/gp4/benchmark.php?test=all&lang=gcc&lang2=gpp

--
Posted By Big Windmill to Gan, Zhi at 1/06/2007 12:59:00 AM

[Gan, Zhi] 使用Ruby统计文件中的单词频率

需要的代码量相当小,动态语言带来的优势看起来十分明显。用Java完成这样的功能需要多长的代码呢?

def test_hash
wordcount = {}
wordcount.default=0
File.open("test_ruby_feature.rb", "r"){ |file|
while line=file.gets
line.scan(/[a-zA-Z]+/).each{|word|
wordcount[word]+=1
}
end
}

wordcount.sort {|a,b| a[1]<=>b[1]}.each{|item|
print item.join(":"), "\n"
}
end

--
Posted By Big Windmill to Gan, Zhi at 1/05/2007 10:06:00 PM
 

Gan James

관심 분야

I'm reading

잠시만 기다려 주세요...잠시만 기다려 주세요...