自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(20)
  • 收藏
  • 关注

rails项目体验(1)

rails项目体验 在过去的16个月中我的同事们和我一直忙碌于一个比较大的rails项目中。 在经历了无数个加班和n个通宵之后终于看到我们的项目部署在6台IBM服务器上,在过去的一周中项目日渐稳定,这种心情只有经历过的人才能体会到。客户满意,BOSS也即将走出痛苦的泥潭,接下来的是最后的完善和部署到另外14台服务器上。忙碌,压力稍...

2010-04-11 18:48:47 117

原创 http://sourcemaking.com/design_patterns/composite/java/2

[code="java"]nterface Component { void traverse(); } // 1. "lowest common denominator" class Primitive implements Component { // 2. "Isa" relationship private int value; public...

2009-10-15 19:33:45 113

原创 http://sourcemaking.com/design_patterns/interpreter/java/2

[code="java"]public class InterpreterDemo { public static boolean precedence( char a, char b ) { String high = "*/", low = "+-"; if (a == '(') return false; // if (a == '(' && b ...

2009-10-15 19:32:22 142

原创 code-snipplet|| put table content into yaml

[code="java"]namespace :db do namespace :fixtures do desc 'Create YAML test fixtures from data in an existing database. Defaults to development database. Set RAILS_ENV to overrid...

2009-08-22 12:20:17 134

原创 code-snipplet|| Imediated value

[code="java"]# immediate values# e.g. true, false and Integersa = true # => trueb = true # => truedef a.foo "bar"enda.foo # => "bar"b.foo # => "bar"# referenced valuesc = &quot

2009-08-22 11:55:01 124

原创 code-snipplet|| BeforeAndAfterMethod

[code="ruby"]require "before_and_after"class Message include BeforeAndAfter def initialize message @message = message end def display puts @message end def befo...

2009-08-22 11:44:49 89

REST && RAILS

花了几天时间学习了一下rails下的REST. 现在把自己的理解记录下来,以备后用。REST不用说了,网上一堆介绍。rails对REST的支持主要体现在route,helper,resouces format几个部分。由于之前对route不是特别了解,我对REST的疑问也主要是在这部分的。REST风格的程序简化了URL长度,这中简化是通过增加对资源的请求方式来实现的,非REST的HTTP ...

2008-05-03 22:37:37 106

SUN收购MYSQL

好消息啊,一直以来关注mysql,两年前就开始学习mysql,看了几本关于mysql的书. 一直看好这东西. 现在我比较强项的 java 与 mysql联手. 窃喜啊. 不知道sun 的mysql能否象oracle一样成功. 个人感觉mysql的设计和实现很经典. 好东西. ...

2008-01-19 16:00:01 232

java InetAddress 问题

import java.net.*;class Test{    public static void main(String args[]) {       //查询www.xiaonei.com 的ip        try {            InetAddress ip[] = InetAddress.getAllByName("http://www.xiaonei.co...

2007-07-01 11:12:35 144

ruby学习笔记系列(5)

Reguler Expression\d [0-9] Digit character\D [^0-9] Any character except a digit\s [\s\t\r\n\f] Whitespace character\S [^\s\t\r\n\f] Any character except whitespace\w [A-Za-z0-9_] Word character...

2007-06-02 15:57:00 128

ruby学习笔记系列(4)

Access ControlWhen designing a class interface, it’s important to consider just how much access toyour class you’ll be exposing to the outside world. Allow too much access into yourclass, and you ...

2007-06-02 11:55:45 283

ruby学习笔记系列(3)

经典SingletonsSometimes you want to override the default way in which Ruby creates objects. As anexample, let’s look at our jukebox. Because we’ll have many jukeboxes, spread all overthe country, we...

2007-06-02 11:53:47 113

ruby学习笔记系列(2)

class variables & class methodsA class variable is shared among all objects of a class, and it is also accessible tothe class methods that we’ll describe later. Only one copy of a particular cl...

2007-06-02 11:48:59 146

ruby学习笔记系列(1)

1  Notation ConventionsThroughout this book, we use the following typographic notations.Literal code examples are shown using a typewriter-like font.class SampleCodedef run#...endendWithin t...

2007-06-02 11:43:44 116

robbin

今天看了csdn的<<程序员>>   发现了很多有价值的文章  尤其是关于开源软件 和 软件测试的文章  很有意思给予tdd的extreme programming还有robbin的关于web frame  及 ror的文章  准备好好学习一下  估计在我大学期间想全部学习是不大可能了  熟悉一下框架  毕竟java基础类库还算熟悉   框架这东西以后用在学就可以了...

2007-05-23 20:52:25 188

midp requirement

• The screen must support at least 96 x 54 pixels.• There must be at least one type of user input available: one-handed keyboard (telephonekeypad), two-handed keyboard (typical QWERTY keyboard) or a...

2007-05-23 19:35:14 122

The need for unit tests

They allow greater test coverage than functional tests. u Tey enable teamwork. They prevent regression and limit the need for debugging. They give us the courage to refactor. They improve the ...

2007-05-17 18:07:42 125

xp summary

XP is a lightweight methodology that focuses on coding as the main task. XP is based on four values:communication, simplicity, feedback, and courage. Communication is facilitated through pair program...

2007-05-16 19:24:41 113

关于程序开发

大大小小的程序加起来大概也上万行了吧  。 现在的问题是程序代码在1000行以上时,或者类的个数大于10时就很难把握程序的结构,不知道怎么把所有的类组织起来。即使组织起来,自己也也觉得垃圾  。  大概是设计模式方面经验欠缺吧 ,打算抽出一段时间学习设计模式。  大概也不什么坏事。说明自己正进步中。。  呵呵 自我陶醉一下...

2007-05-16 19:08:42 87

终于在javaeye开博了

经过漫长的三天终于在javaeye安家落户了   。  最近几周来一直在看xp方面的书籍  包括junit  ,ant, cvs等知识 现做一下简单总结 1  junit     apache开源项目  可在apache下载  junit。jar  .  这个jar包包括完整的单元测试框架和一个可执行程序     junit 框架包含的主要类有 test ,testcase ,tes...

2007-05-16 19:04:18 81

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除