• 博客园Logo
  • 首页
  • 新闻
  • 博问
  • 专区
  • 闪存
  • 班级
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 简洁模式 ... 退出登录
    注册 登录
this.Think();
(Define (Learn-SICP (Begin (Read Book) (Write Scheme) (Thinkabout It))))
博客园 首页 新随笔 联系 订阅 订阅 管理
上一页 1 2

2005年8月25日

Nullable Type is an immutable type
摘要: Consider this following code in C# 2.0 int? i = 1; i++; Console.WriteLine(i); int? j = i; j = null; Console.WriteLine(j.HasValue);in... 阅读全文
posted @ 2005-08-25 22:19 linkcd 阅读(1069) 评论(0) 推荐(0) 编辑
 
Why does Dataset NOT serialize its BinaryFormat property? (ADO.net 2.0)
摘要: I have tested the dataset new "binary serialize" feature in ADO.Net 2.0. Many articals said if we set the dataset's property "RemotingFormat" as "SerializationFormat.Binary", it can serialize i... 阅读全文
posted @ 2005-08-25 21:00 linkcd 阅读(2271) 评论(1) 推荐(0) 编辑
 
 

2005年8月18日

Undocumented Keywords in C#
摘要: 研究Int32&的时候,无意中发现C#里面还有4个Undocument Keyword, 分别是__makeref, __reftype, __refvalue 以及__arglist。 其中前三个keyword可以这样用: int i = 1; TypedReference tr = __makeref(i); Type t = __... 阅读全文
posted @ 2005-08-18 18:44 linkcd 阅读(1688) 评论(5) 推荐(0) 编辑
 
 

2005年8月14日

System.Int32&是个啥?
摘要: 在.Net中存在不从Object继承的类吗? 阅读全文
posted @ 2005-08-14 20:44 linkcd 阅读(3436) 评论(6) 推荐(1) 编辑
 
 

2005年7月21日

《4个程序员的一天》(续) 由idior的问题想到的
摘要: 在《4个程序员的一天》一文中,idior问道: 不知道类似foo(+,-,+,*,/, a) //a is a array实现a[0]+a[1]+a[2]*a[3]/a[4]这种功能能实现吗?(用FP) 昨晚去看了看scheme的数据结构操作,得出以下解法:(;号后面是注释)(define (inner-runner 1st-number operators numbers) (if ... 阅读全文
posted @ 2005-07-21 19:43 linkcd 阅读(2888) 评论(9) 推荐(0) 编辑
 
 

2005年7月20日

回FantasySoft
摘要: FantasySoft兄的贴在这里hehe,其实我是偷懒没用那些复杂的函数来当op,直接把+传进去吧了。Scheme里面,数据和函数都是一回事,没有区别的。如果op是个复杂的函数,还是需要先吧这个函数定义出来,再传进去。比如现在我们op操作符不再是加法这么简单,而是要算x和y的平方和是多少,即:x^2 + y^2 = ?如何用scheme来做呢?首先我们的Foo的定义不用变,还是(define (... 阅读全文
posted @ 2005-07-20 19:03 linkcd 阅读(939) 评论(0) 推荐(0) 编辑
 
 

2005年7月19日

4个程序员的一天
摘要: 【声明:本文没有贬低某个编程语言的意思】Please Note: 2005/10/14I found some friends republished this post and forget keep the original information, so please:1. Please don't forget keep the original address in your post.... 阅读全文
posted @ 2005-07-19 19:59 linkcd 阅读(23879) 评论(72) 推荐(2) 编辑
 
 

2005年6月2日

n久以前写的火星文
摘要: n久以前写的火星文 原发表于:2004-3-26 看了这么多书,似乎是时候总结一下前面学到的东西了吧 1. 面向对象的核心:多态 人人都知道面向对象的三要素:“封装,继承,多态”。然则,在我看来,最重要的要数“多态”了。why?封装主要是处于安全因素的考虑,而继承似乎是为了实现多态而出现的。多态,这才是标准的面向对象设计(OOD)的核心。 大师们都告诫我们,良好的设计都是“面向接口”的,这样... 阅读全文
posted @ 2005-06-02 11:14 linkcd 阅读(3006) 评论(4) 推荐(0) 编辑
 
 

2005年4月30日

Solution for SICP
摘要: 因为找不到SICP的辅导书, 有些要求explain的solution就不知道答案了, sigh...不知道直接去找MIT的教授要, 他们会不会给...1.1.7 Square Roots by Newton's Method(define (avg x y) (/ (+ x y) 2))(define (abs x) (if (< x 0) (- x) x))(defin... 阅读全文
posted @ 2005-04-30 14:15 linkcd 阅读(1936) 评论(2) 推荐(0) 编辑
 
 

2004年12月23日

在Vs.net中集成 NDoc生成的 Html Help 2帮助文档
摘要: 注:NDoc是一个Open Source的For .Net 文档自动生成软件。它可以通过 .Net中XML的注释标签来生成非常漂亮的MSDN风格的类库文档。(相对于VS.Net自己带的Comment Web Page生成工具好多了) 《在Vs.net中集成 NDoc生成的 Html Help 2帮助文档》 By: Fons Sonnemans 编译:linkcd 代码下载... 阅读全文
posted @ 2004-12-23 12:32 linkcd 阅读(4548) 评论(5) 推荐(0) 编辑
 
 
上一页 1 2

公告


Powered by: 博客园
Copyright © 2023 linkcd
Powered by .NET 7.0 on Kubernetes