2012年4月21日
摘要: 作者: 余晟来源: 《程序员》发布时间: 2012-03-09 21:30阅读: 5876 次原文链接全屏阅读 [收藏] 文 / 余晟 作者在 IT 业从业多年,翻译过多本技术图书,对英语的学习方法也有颇多积累。在本文中,他更是敞开心扉,分享了自己压箱底的三大绝技。 总的来说,程序员算是英语水平比较好的群体,因为在这个行业,英文资料是最全面、最及时、需求也最迫切的。因此,据我观察,即便刚入门不久的程序员,面对陌生的问题,一般也能查阅英文文档,找到需要的信息。但同时,我也发现,经常阅读英文文档的程序员,英语水平许多时候却并不像“经常阅读英文”的样子。下面我列几点自己的学习心得,供大家参考。... 阅读全文
posted @ 2012-04-21 09:05 江振 阅读(151) 评论(0) 推荐(0)
  2012年3月10日
摘要: Here are some common causes of redesign along with the design pattern(s) that address them:Creating an object by specifying a class explicitly.通过显示方式指定一个类来创建对象在创建对象时指定类名将使你受特定实现的约束,而不是特定接口的约束。Abstract Factory(87) ,Factory Method(107),Prototype(117)Dependence on specific operations.对特殊操作的依赖当你为请求指定一个特 阅读全文
posted @ 2012-03-10 10:38 江振 阅读(176) 评论(0) 推荐(0)
  2012年3月8日
摘要: e = 阅读全文
posted @ 2012-03-08 18:52 江振 阅读(238) 评论(0) 推荐(0)
摘要: 初等函数是由幂函数(power function)、指数函数(exponential function)、对数函数(logarithmicfunction)、三角函数(trigonometric function)、反三角函数(inverse trigonometic function)与常数经过有限次的有理运算(加、减、乘、除、有理数次乘方、有理数次开方)及有限次函数复合所产生、并且能用一个解析式表示的函数。 阅读全文
posted @ 2012-03-08 16:57 江振 阅读(1378) 评论(0) 推荐(0)
  2012年3月1日
摘要: In contrast, an object's type only refers to its interface--the set of requests to which it can respond.An object can have many types,and objects of different classes can have the same type.Creational patterns ensure that your system is written in terms of interfaces,not implementions.principle 阅读全文
posted @ 2012-03-01 22:47 江振 阅读(143) 评论(0) 推荐(0)
  2012年2月25日
摘要: 在做projectEuler 23题的时候需要时候排列组合的知识。原文链接:MSDN杂志《使用 F# 的排列与组合》 let temp = [| for i in 0..k-1 -> data.[i] |] // find "x" - right-most index to change let mutable x = k-1 while x > 0 && temp.[x] = n - k + x do x <- x - 1 temp.[x] <- temp.[x] + 1 // increment value at x // inc 阅读全文
posted @ 2012-02-25 14:35 江振 阅读(308) 评论(0) 推荐(0)
  2012年2月24日
摘要: What is a type ?a type is a name for a colletion of related values.for example , in haskell the basic typeBoolcontains the two logical values:False True----all type errors are found at compile time , which makes programs safer and faster by removing the need for type checks at run time.----List Type 阅读全文
posted @ 2012-02-24 22:10 江振 阅读(204) 评论(0) 推荐(0)
  2012年2月10日
摘要: 阅读全文
posted @ 2012-02-10 13:36 江振 阅读(135) 评论(0) 推荐(0)
  2012年2月5日
摘要: 原文链接http://wenwen.soso.com/z/q197700199.htm-【桌面顽固图标终极解决方案】-开始-运行-输入regedit-确定HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{1f4de370-d627-11d1-ba4f-00a0c91eedba}{450D8FBA-AD25-11D0-98A8-0800361B1103}{645FF040-5081-101B-9F08-00AA002F954E}{5ef4af3a-f726-11d0-b 阅读全文
posted @ 2012-02-05 17:33 江振 阅读(434) 评论(0) 推荐(0)
  2012年2月3日
摘要: n按照下面的规则产生的序列:nn/2 (nis even)n3n+ 1 (nis odd)比如13:134020105168421求在100万以下的数中,哪个数产出的序列最长。产出的序列中会包含很多以前计算过的,所以要缓存起来,以下使用了字典。要注意的是当一个数很大的时候,如果是奇数,那么下一个数可能会超出类型的最大值。所以以下F#就用int64了其实下面代码是haskell直接转型过来的,唉,haskell怎么写才快起来呢..let isEven (n:int64) = n % 2L = 0Llet next n= match isEven n with | true ->... 阅读全文
posted @ 2012-02-03 01:21 江振 阅读(313) 评论(0) 推荐(0)