|
|
最近累坏了。天天为了逻辑进行测试; 不过对junit和log4j以及相关的东西有了应用的经验。 还有些相关的东西,挺好的。 等这一节断结束了,我在回味一下 |
| # posted by greenmiller @ 2005-02-22 19:23 评论(1) |
2004-12-30 星期四(Thursday) 晴
一直分不清这三个的区别,其实只是字面意思没有理解。。 list,一个有序的序列。可以根据index取出她的值。 set,就是一个傻包,放进去东西,然后get出来。还不能一样。大概 只能contains,或者作为一个序列,toarray或者iterator出来。(这些都是继承collection的 实在不明白set作为单独的一个interface有什么意义,难道只是名字的区别)? 而map就不一样了,他需要key。应该是object化的list。不过他没有顺序。 |
| # posted by greenmiller @ 2004-12-03 14:24 评论(3) |
显示看了那本弱智教材,然后看了thinking in java(一点点),然后是core java(一点点) 接着看tutorial,还是tt讲的比较简单。 明白了collection的设计目的。还是太复杂拉,类的名字太多了,方法太容易混淆了。 如果有人看到我写的这些东西,建议一下顺序看:core,tt,thinking |
| # posted by greenmiller @ 2004-12-03 14:00 评论(0) |
又野了一把,象当年小时候一样。逗拐,老鹰抓小鸡,捉瞎。。。。 那么老的人了,象小孩一样快乐,真不明白生活是什么。 虽然是透了一口气,可是不知道下一个潜水的目标是什么。 |
| # posted by greenmiller @ 2004-12-03 13:55 评论(0) |
2004-12-1 星期三(Wednesday) 晴
进行了一次试讲,讲的是java io。没想到自己讲的那么烂。也明白了自己 语言上的缺陷,看样子需要表达清楚自己的观点还是需要一定的能力的。 既然被录用作为老师了,就需要培养,锻炼自己的能力。 但是做为入门的javaio倒是已经被我理解清楚了: 主要分为两类,一类是字节类型的stream,一类是字符类型的stream。 除了一些基本的类,还有一些高级的,为了整合这些东西而设计的类。 比如bytearrayInputStream是基本的类,而datainputStream就是新类。 可是我又看到了objectinputStream,难道是java新出现的一个类(是1。1之后) 看样子书是老了。呵呵,整理一下io的包巴: Two of the byte stream classes, ObjectInputStream and ObjectOutputStream, are used for object serialization. 所有输入输出类的基类是:reader,inputStream,writer,outputstream 实现的一些方法是: Reader and InputStream define similar APIs but for different data types. For example, Reader contains these methods for reading characters and arrays of characters: int read() int read(char cbuf[]) int read(char cbuf[], int offset, int length) InputStream defines the same methods but for reading bytes and arrays of bytes: int read() int read(byte cbuf[]) int read(byte cbuf[], int offset, int length) Also, both Reader and InputStream provide methods for marking a location in the stream, skipping input, and resetting the current position. Writer and OutputStream are similarly parallel. Writer defines these methods for writing characters and arrays of characters: int write(int c) int write(char cbuf[]) int write(char cbuf[], int offset, int length) And OutputStream defines the same methods but for bytes: int write(int c) int write(byte cbuf[]) int write(byte cbuf[], int offset, int length) All of the streams--readers, writers, input streams, and output streams--are automatically opened when created. You can close any stream explicitly by calling its close method. Or the garbage collector can implicitly close it, which occurs when the object is no longer referenced. 但是objectinputstream比较特殊一点: class ObjectOutputStream extends OutputStream implements ObjectOutput, ObjectStreamConstants 具体如下 |
| # posted by greenmiller @ 2004-12-01 11:39 评论(0) |
2004-11-23 星期二(Tuesday) 晴
i18n作为一个国际化的api做的并不是想象的那么好,也许,现在的软件技术,也只能这样罢了。 道理就是很简单了,把各个语言用factroy的方法进行实例化,所以看到的都是自己语言的东西。 至于要输出的东西,没有什么翻译的东西,需要你用工具,把一些语言转换为unicode的东西, 然后再在页面上显示。对于开发人员来说,的确需要message resource这个东西了。而不能直接 在页面上固化你要显示的文字。这个是一个习惯问题。不知道大家是否习惯。 在凡是都是迁就过的情况下,使用这种东西,是有点障碍的。 |
| # posted by greenmiller @ 2004-11-23 13:59 评论(0) |
从新开始认真的读第3边spring的reference。有很大的收获。但中间 不免奇怪,以前看的两边,都懂了什么呢?呵呵。不过感觉英语退步了很多。 觉得很晦涩,而且想跳词。 但是这个spring还要花费我很长的时间来掌握了。今天第三章都没有看完。 感觉就说不出来了,没有具体的成绩,或者是小的体会太多了。 |
| # posted by greenmiller @ 2004-11-22 15:29 评论(0) |
2004-11-18 星期四(Thursday) 晴
用quartz的配置,做了build.xml文件.生成war,deploy,undeploy. 但是发布的东西没有办法正常访问.有些原因是jar文件.但这些解决之后 还有些没有出错信息的错误.可能是tapestry的配置.比如web.xml里面的servlet 和application文件中的名字?需要明天试验解决. 还有tapestry的中文编码,还没有解决掉 |
| # posted by greenmiller @ 2004-11-18 00:11 评论(0) |
页码:1/2 [1][2]
|