当前位置:首页 » 服务器技术
开发技术指南» 文章正文
    引言: 小布同学这一小节写的很不爽,翻起来一头雾水。
 

 

    摘要:using system;using system.drawing;using system.collections;using system.componentmodel;using system.windows.forms;using system.data;using com.prm.client.tools;using system.data.oracleclient;//using com.prm.client.common; namespac......
 ·我用db2的这几年(三)    »显示摘要«
    摘要:系统运行一段时间以后,用户抱怨某些操作响应速度过慢;这个在项目前期没有出现过类似问题,因此怀疑是数据量过大造成的原因。但是,查询相关业务表中仅仅只有3万多的的数据量,不足以构成影响程序响应速度过慢的瓶颈。更奇怪的是采用导入的方法将此表数据装载进来却没有发现上述现象,我百思不得其解。 几天后,无意间翻阅一本杂志,其中有这么一段话——“每当sql语句被发送到到db2 数据库管理器中处理时,sql 优化器会去读取系统编目表......


翻译TIPatterns--简单化(Simplifying Idioms)

    小布同学这一小节写的很不爽,翻起来一头雾水。我想他大概的意思是说,如果方法需要传递比较多的参数,那最好把这些参数包成一个类。我觉得把messenger翻译成信使真是恶心,总是让人想起msn.

简单化(simplifying idioms) 【相关文章:[翻译]在solaris下安装cvswe

  【扩展阅读:我怎么知道你什么时候传球给我?

    在研究复杂技术之前,了解一下使代码简单明了的基本方法是很有帮助的。 【扩展信息:Eclipse 下的Java2 开发环境

 

 

信使(messenger)

    最普通的方法就是通过信使(messenger),它简单的将信息打包到一个用于传送的对象,而不是将这些信息碎片单独传送。注意,如果没有信使(messenger),translate()的代码读起来会相当混乱。

//: simplifying:messengerdemo.java

package simplifying;

import junit.framework.*;

class point { // a messenger

 public int x, y, z; // since it´s just a carrier

 public point(int x, int y, int z) {

  this.x = x;

  this.y = y;

  this.z = z;

 }

 public point(point p) { // copy-constructor

  this.x = p.x;

  this.y = p.y;

  this.z = p.z;

 }

 public string tostring() {

  return "x: " + x + " y: " + y + " z: " + z;

 }

}

class vector {

 public int magnitude, direction;

 public vector(int magnitude, int direction) {

  this.magnitude = magnitude;

  this.direction = direction;

 }

}

class space {

  public static point translate(point p, vector v) {


...   下一页
    摘要: 将代码粘贴到一个vb文件即可运行。我这里只是给出一种思路,按这种思路,可以做出一个强劲的计算器,也可以做出一个代码测试器或者是练习器。 option strict off imports system.io imports system.codedom.compiler imports system.reflection namespace lzmtw.test public class frmcal inherits ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE