显式参数 VS 隐式参数

摘要: 尽量使用显示参数,而不是隐式参数,看下面实例代码。示例1采用显示参数,示例2采用隐式参数。对于一个不熟悉MonitorManager内部构造的调用者来说,在构造MonitorManager的时候,对于示例1,调用者看到Computer参数后,就很清楚,需要传递什么样的参数,而对于示例2,调用者看到Hanstable参数,就需要去了解Hashtable中需要放入哪些参数,会占用调用者更多的时间去了解MonitorManager的内部构造,相对而言示例1的代码要简单明了,易读。 public class MonitorManager { ... public... 阅读全文
posted @ 2013-06-20 20:32 荡秋千 阅读(2350) 评论(0) 推荐(0) 编辑

How to burn raspberry pi image to SD card on ubuntu

摘要: In the raspberry pi mannual, it introduces how to burn image on windows. Search from google, there is a topic about this.http://askubuntu.com/questions/179437/how-can-i-burn-a-raspberry-pi-image-to-sd-card-from-ubuntuBash:sudo apt-get install usb-imagewriter gpartedsudo imagewriter 阅读全文
posted @ 2013-05-01 18:01 荡秋千 阅读(388) 评论(0) 推荐(0) 编辑

Raspberry pi experiment

摘要: Raspberry pi is a credit-card sized computer that can plugin into your TV and keyboards. It is a capable little PC which can be used for many things that your desktop pc does.Offical website:http://www.raspberrypi.org/OS:http://www.raspbian.org/If you are fresh man, it's better to read the FAQ l 阅读全文
posted @ 2013-05-01 17:56 荡秋千 阅读(133) 评论(0) 推荐(0) 编辑

How to change the computer name on Ubuntu

摘要: Today, I'd like to change my computer name that is too long on ubuntu.Use "hostname" instruction to retrieve the compuer name>> hostnameDell-1545Use "hostname dell-test" instruction to change the computer name temporarily. After restarting computer, its name will be res 阅读全文
posted @ 2013-04-20 13:25 荡秋千 阅读(196) 评论(0) 推荐(0) 编辑

Ajax Title

摘要: 学习MS的ajax也有一段时间了,如果将ajax真正的应用到application中去,MS提供了3种方式开发:1:客户端/服务端方式,客户端完全采用自定义的客户端控件开发,不用任何的asp.net服务器控件,服务端采用webservice,这样开发出的应用程序,性能是最高的,但是开发难度比较大,对开发人员要求比较高,开发效率也难说。2:完全服务端方式,采用updatepanel等配合使用asp.... 阅读全文
posted @ 2007-07-05 09:47 荡秋千 阅读(415) 评论(1) 推荐(0) 编辑

值类型和引用类型

摘要: 工作两年多了,虽然一直用.NET,却一直没有系统的看过C#方面的专业书籍,用到哪里就看到哪里,有时候觉得很乱,不了解C#里面到底有哪些内容,回答别人的问题时,也不是很有信心,就决定把.NET的知识系统的看一下,顺便把基础和重要的知识记下来。值类型和引用类型是.NET中最基本的知识,虽然是最基本的,但在最近看书的过程中,才发现自己有很多不了解的。1) 内存分配上的区别.值类型分配在栈上的,引用类型分... 阅读全文
posted @ 2007-04-16 23:27 荡秋千 阅读(833) 评论(4) 推荐(0) 编辑

[经验]做项目过程中的心理变化.

摘要: 1,刚开始可能会激情万丈,对于一些老旧的项目甚至有翻新的冲动,幸好得前辈指点:要重头开始做一个项目是相当的困难和危险的,慎重行之。2,开发过程中,开始体会到前辈说得话是多么的有道理,繁琐的业务,枯燥的程序和数据,这时候想的一件事就是尽快完成,不考虑什么架构和技术了。3,对于一些详细设计不是很到位的项目,需要自己思考,很多时候有些功能可以考虑到很详细,但是写起程序来是非常痛苦的一件事,就简化设计,想... 阅读全文
posted @ 2006-09-14 16:57 荡秋千 阅读(327) 评论(1) 推荐(0) 编辑

[C#]基础类型

摘要: 类型 范围 大小 .NET Framework 类型 举例 bool System.Boolean true, false byte 0-255 无符号8位整数 System.Byte char U+0000 - U+FFFF 16位Unicode字符 System.Char char char1 = 'Z';char char2 = '\x0058';char char3 = (char)88;... 阅读全文
posted @ 2006-09-14 14:02 荡秋千 阅读(538) 评论(0) 推荐(0) 编辑

性格[不断更新]

摘要: 1,说又不听,听又不做,做又做不好,错又不改,改又改不好。2,懒惰无比。3,做一件事,事前总是酝酿,有时候等酝酿好了,黄花菜都凉了。 阅读全文
posted @ 2006-09-10 00:11 荡秋千 阅读(172) 评论(0) 推荐(0) 编辑

SqlServer和Oracle的数据类型在.NETFramework中的对应数据类型.

摘要: http://msdn2.microsoft.com/zh-cn/library/4e5xt97a.aspx 阅读全文
posted @ 2006-09-01 10:31 荡秋千 阅读(384) 评论(0) 推荐(0) 编辑