摘要: #include /** * Description: liner sort. * Date: 2007-11-10 */ int linerSort(int List[], int n, int num) { for (int i = 0; i < n; i++) { if (List[i] == num) { return i; } } return -1... 阅读全文
posted @ 2007-11-10 19:00 IT Person 阅读(295) 评论(0) 推荐(0) 编辑
摘要: “又是一年毕业时”,看到一批批学子离开人生的象牙塔,走上各自的工作岗位;想想自己也曾经意气风发、踌躇满志,不觉感叹万千……本文是自己工作6年的经历沉淀或者经验提炼,希望对所有的软件工程师们有所帮助,早日实现自己的人生目标。本文主要是关于软件开发人员如何提高自己的软件专业技术方面的具体建议,前面几点旨在确定大的方向,算是废话吧。 谨以此文献给那个自己为你奉献3年青春与激情的开发团队。还有团队成员... 阅读全文
posted @ 2007-11-10 13:19 IT Person 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 我在Java 1.0正式问世前就开始学习Java,这么多年过去了,到现在我的Java学习历程还没有停过。我阅读原文书,研究原始码,撰写程序,自认为走得扎实,不奢望一步登天。像我这样老式的学习方式,显然和现在的快餐主义背道而驰。从许多读者的来信和学生的反应中,我发现大多数的人对于Java的学习历程都差不多是:因为公司需要使用Java来进行服务器的计画,所以急急忙忙地学习Java语言,然后就开始使用... 阅读全文
posted @ 2007-11-10 13:07 IT Person 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 随便谈谈我对设计模式的看法吧。我极度反感言必称设计模式,什么要学好OO,必先学好Gof这类的屁话。坦率说我也从来不刻意的去学习设计模式,我看到身边的朋友花那么多钱去买一大本厚厚的阎博士的设计模式的书,心里总是叹息一下,设计模式不是学出来的,是用出来的。设计模式应该怎么学习?应该我花两个小时给你讲一下,告诉你每个模式是怎么回事,应该在什么场合适用就OK了,这样就学完了。 然后你在自己的工作实践中,碰... 阅读全文
posted @ 2007-11-10 12:26 IT Person 阅读(189) 评论(0) 推荐(0) 编辑
摘要: Managing Hibernate resources: As we said, you will keep a single instance of a SessionFactory throughout the life of your application. The preferred way to do this is to wire a DataSource to the Loca... 阅读全文
posted @ 2007-11-09 22:35 IT Person 阅读(260) 评论(0) 推荐(0) 编辑
摘要: There is also a subinterface you can implement that is useful for retrieving multiple objects through a query. Suppose we want a method that retrieves all of our Person objects. To do this we would im... 阅读全文
posted @ 2007-11-09 22:33 IT Person 阅读(256) 评论(0) 推荐(0) 编辑
摘要: The complement to PreparedStatementCreator is PreparedStatementSetter. receive a PreparedStatement and are responsible for setting any of the parameters. Since many updates consist of creating a Prepa... 阅读全文
posted @ 2007-11-09 22:31 IT Person 阅读(252) 评论(0) 推荐(0) 编辑
摘要: the service objects are accessing the DAOs through interfaces.This has a couple of advantages. First, it makes your service objects easily testable since they are not coupled to a specific data access... 阅读全文
posted @ 2007-11-09 22:28 IT Person 阅读(249) 评论(0) 推荐(0) 编辑
摘要: Using dynamic pointcuts: Spring provides one built-in dynamic pointcut: ControlFlowPointcut. javax.servlet.http.HttpServlet MyService servletA... 阅读全文
posted @ 2007-11-04 18:18 IT Person 阅读(190) 评论(0) 推荐(0) 编辑
摘要: Regular expression pointcuts: when you are using the RegexpMethodPointcut, you need to include the Jakarta Commons ORO 3 library in your application. .*get.+By.+ com.springinaction.chapter... 阅读全文
posted @ 2007-11-04 15:05 IT Person 阅读(148) 评论(0) 推荐(0) 编辑
摘要: Around advice: MethodInterceptor provides the ability to do both in one advice object. the MethodInterceptor implementation controls whether the target method is actually invoked. Throws advice: Throw... 阅读全文
posted @ 2007-11-04 15:04 IT Person 阅读(247) 评论(0) 推荐(0) 编辑
摘要: Aspect: An aspect is the cross-cutting functionality you are implementing.The most common (albeit simple) example of an aspect is logging. Joinpoint: A joinpoint is a point in the execution of the app... 阅读全文
posted @ 2007-11-04 15:02 IT Person 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 一.并不成功的开始 我所读的学校是中国西部的一所普通高校。我进大学后也和大多数同学一样,过着60分万岁的日子,除了对编程比较感兴趣外。(呵呵,好多室友都说我外表女人,内心却男人:喜欢写程序,喜欢和男生打星际,喜欢打CS选土匪,拿AK47)四年的大学生活淘进了我刚进校时的傲气与自尊,在栀子花开的季节,我面对的却是无法把握的未来。毕业了,是的,四年象梦一样。男友执意去了中国最繁荣的大都市,我却希... 阅读全文
posted @ 2007-11-03 18:53 IT Person 阅读(1394) 评论(2) 推荐(1) 编辑
摘要: 作者:林庆忠,1990年毕业于昆明工学院计算机软件专业,后又于1999年毕业在南京大学 完成软件工程专业硕士的学习,现供职于CNPC旗下的一个行业软件研发中心,因为在网上看了许多有经验的各路软件开发人员写的好帖,一时手痒兴起,也凑一篇壮壮声势。 假设你是一名软件专业毕业的本科学子,如何在工作中修炼成为一名有较高职业水准的程序员呢,本文试图总结作者从事15年软件开发工作的感想,希望对有志成为职业... 阅读全文
posted @ 2007-11-01 20:17 IT Person 阅读(251) 评论(0) 推荐(0) 编辑
摘要: Be robust Be performant and scalable Take advantage of OO design principles Avoid unnecessary complexity Be maintainable and extensible Be delivered on time Be easy to test Promote reuse 阅读全文
posted @ 2007-10-29 21:18 IT Person 阅读(179) 评论(0) 推荐(0) 编辑
摘要: Externalizing properties in Spring is easy if you are using an ApplicationContext as your Spring container. You use Spring’s PropertyPlaceholderConfigurer to tell Spring to load certain configuration ... 阅读全文
posted @ 2007-10-29 21:18 IT Person 阅读(331) 评论(0) 推荐(0) 编辑
摘要: Alternatively, you can have Spring wire them automatically by setting the autowire property on each that you want autowired: There are four types of autowiring: ■ byName—Attempts to find a bean in t... 阅读全文
posted @ 2007-10-28 14:18 IT Person 阅读(315) 评论(0) 推荐(0) 编辑
摘要: Setting null values: certain properties to be set just once—when the bean is created.this is inject by constructor. there are two ways you can deal with ambiguities among constructor arguments: by ind... 阅读全文
posted @ 2007-10-27 20:48 IT Person 阅读(222) 评论(0) 推荐(0) 编辑
摘要: Bean factories (defined by the org.springframework.beans.factory.BeanFactory interface) are the simplest of containers, providing basic support for dependency injection. Application contexts (defined ... 阅读全文
posted @ 2007-10-27 18:33 IT Person 阅读(266) 评论(0) 推荐(0) 编辑
摘要: BeanFactory belongs to Core Module. Context Module extends this and add some another function,including internationalization (I18N) messages, application life cycle events, and validation.it supplies ... 阅读全文
posted @ 2007-10-27 18:31 IT Person 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 英语写作是语言应用的一个重要方面,也是语言能力测定的重要手段,衡量写作水平的标准便是看其是否能用学过的语言材料,语法知识等用文字的形式来表达描述。 书面语言表达一般分为三个过程:思维、组织、表达。先是思维,把要写的东西在脑中思考,这往往是个别的,孤立的一些素材,很凌乱琐碎;因此要对此进行组织,把这些思维作出整理,使其条理、系统化,但这还是较粗糙的,可能还有一些用词不当或语言错误... 阅读全文
posted @ 2007-10-27 17:43 IT Person 阅读(1703) 评论(1) 推荐(0) 编辑
摘要: 前言: 不久前,蔡学镛先生发表了两篇分别叫做"程序与香鸡排","再论香鸡排"的文章,受到的回响之大,据说连作者本人都接到该文的转寄.足以见得该文的内容道出了台湾程序设计师心里最深处的想法.所以,本文想针对台湾程序设计师来做讨论,看看身为一个程序设计师,究竟犯了什么过错,导致大家宁愿卖鸡排也不愿再继续写程序.璩美凤小姐为自己惊动台湾社会的行为写了真情忏悔录,我们也该真诚地检讨一下自己. ... 阅读全文
posted @ 2007-10-21 13:46 IT Person 阅读(279) 评论(0) 推荐(0) 编辑
摘要: i think it's very useful when you design a function.it can minimize coupling between modules. The Law of Demeter for applications states that any method of an object should call only methods belongin... 阅读全文
posted @ 2007-10-14 17:35 IT Person 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 不多的struts2资料,希望对刚学习struts2的朋友有所帮助。 link:Starting Struts2 阅读全文
posted @ 2007-10-14 15:38 IT Person 阅读(278) 评论(0) 推荐(0) 编辑
摘要: 以前的学习方式总是喜欢看一些视频,可以很快学习到一些实际的动手经验,但最近特别喜欢看书,然后进行相应的实践,这样的好处在于从书中可以更多的了解所学知识的运行原理,原理的学习很重要,对于一些细节的处理都相当有好处,对debug也大有好处。 阅读全文
posted @ 2007-10-13 21:17 IT Person 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 从一些励志书籍或者叙述如何才能获得成功的书籍看到想要做好一件事情必须要有求胜的欲望,或者说要有强烈的愿望,但想想我自己所经历的一段生活,往往是不经意做的事情反而会获得成功或者比较不错的效果,往往我抱有强烈的求胜愿望的事情经常会失败,真是不知道该如何是好。 阅读全文
posted @ 2007-10-05 13:40 IT Person 阅读(206) 评论(1) 推荐(0) 编辑
摘要: Q:说起来学英语已经很多年了,可一直都没有把它搞好。也不知道怎么搞,真的很惭愧。特别的在大学,英语都没有怎么学,基本的东西忘了好多,水平可以说不如高中,通过英语等级考试也只是应付将来就业的需要。 我很清楚英语的重要性,而且一直以来心里都有学习英语的欲望,可能是方法不对还是别的什么原因,英语都弄不好。怎么来正确的学习英语呢?对英语仍很糊涂。 A:首先是口语,这也是大部分中国学生比较弱的方... 阅读全文
posted @ 2007-10-04 10:39 IT Person 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 笔者是北京大学计算机系教师,研究方向为计算机辅助教学。具有丰富的教学经验,并对英语学习进行过多年深入的研究。独立开发的飞跃英语系列软件,深受广大用户欢迎。现将多年的研究心得,以八问八答的形式写出,希望能对广大英语学习者有一定指导作用。 1.学了十几年英语,到头来还是哑巴英语,是传统的英语学习法有问题吗? 2.一定要彻底抛弃Chinglish (Chinese English)吗? 3.... 阅读全文
posted @ 2007-10-04 10:35 IT Person 阅读(452) 评论(0) 推荐(0) 编辑
摘要: 中国学生的补丁英语 ——胡敏 著名咨询公司麦肯锡在其最近的一份报告中指出,中国大学生英语口语水平的欠缺,使他们只有不到10%能够满足跨国公司的要求。看了麦肯锡的这份报告,北京新航道学校的胡敏校长深有感触,结合多年英语教学经历,对于为什么这么多大学生花这么多年时间也学不好英语,他谈了自己的看法。 补丁英语是怎么回事? 首先是一些大学生学习英语的目标不明确,为什么要学英语?学英语到底有什么用?对这... 阅读全文
posted @ 2007-10-04 10:23 IT Person 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 1, 我们热爱我们的求知强迫症 2, 我们看到细节而别人不能 3, 我们看到架构美 4, 我们构建大的项目并可以切割称小的任务 5, 在管理方面我们做得比别人好 6, 我们将声明看成一个巨大的应用 7, 我们不惧怕失败 8, 我们不用看键盘即可打字 9, 我们不怕尝试新鲜东西 10, 当谈论到电脑时,我们可以让别人看起来像傻子 阅读全文
posted @ 2007-10-02 12:10 IT Person 阅读(537) 评论(1) 推荐(0) 编辑