日历

« 2008-04-02 » 
  12345
6789101112
13141516171819
20212223242526
27282930   

RSS订阅

  • design pattern

    2008-04-02 22:19:01

        The expression “Don’t reinvent the wheel” means that you shouldn’t try to solve a common problem that many bright people have already faced and solved in a clever and elegant way.
  • java network

    2008-04-02 15:26:08

         The word networking strikes fear in the hearts of many programmers. Fear not! Using the networking capabilities provided in the Java environment is quite easy. In fact, you may be using the network already without even realizing it!

    When two applications want to communicate to each other reliably, they establish a connection and send data back and forth over that connection. This is analogous to making a telephone call.

    Consider, for example, a clock server that sends the current time to its client when requested to do so. If the client misses a packet, it doesn't really make sense to resend it because the time will be incorrect when the client receives it on the second try. If the client makes two requests and receives packets from the server out of order, it doesn't really matter because the client can figure out that the packets are out of order and make another request. The reliability of TCP is unnecessary in this instance because it causes performance degradation and may hinder the usefulness of the service.

Open Toolbar