说.
  • 2019-07-09 08:53:55 61.148.244.* 对h*说:
    想得太长远是一种浪费
    有时候,程序员在解决一个问题时会想方设法寻找可以解决所有问题的方法,包括那些可能会在未来出现的问题。
    但事实是,未来的问题可能永远都不会出现,而你不得不去维护一大堆在未来可能永远都用不上的代码,甚至重写所有代码。
    问题要一个一个解决,解决完眼前的,再解决下一个。到了某个时刻,你可能会从解决方案中找到某种模式,而这些模式才是用来解决“所有问题”的良方。
    赞(55) 查看 回复
  • 2019-07-09 08:01:22 103.226.196.* 对j*说:
    在java开发的早期,重点被放在了客户端开发。语言中对于applet和安全下载的支持对于万维网(WWW)的发布看上去是个不错的主意。但是现实是java最大的成功在于服务器端,java的强大功能和适应性赢得了服务器端开发者的心。同时,客户端的开发落后了。棘手的开发问题限制了applet的效用,开发者被迫转向基于浏览器的瘦客户端。
    Java Network Launching Protocol (JNLP,java网络加载协议) 承诺改变这个现状。
    赞(44) 查看 回复
  • 2019-07-09 07:15:16 103.226.196.* 对j*说:
    import java.awt.*;
    import java.io.Console;
    import java.io.IOException;
    import java.nio.file.FileSystem;
    import java.nio.file.FileSystems;
    import java.nio.file.Paths;
    import java.nio.file.WatchService;

    import javax.swing.*;

    class M extends Thread{
    private int n;
    public M setM(int n){
    this.n = n;
    return this;
    }


    @Override
    public void run() {
    try {
    Thread.sleep(1024);
    System.out.println("go:" + this.n);
    } catch (InterruptedException e) {
    //TODO: handle exception
    }

    }

    public static void main(String[] args) throws IOException{


    int n = 10;

    while(n-->0){

    (new Thread(
    new M().setM(n)
    )).start();
    }


    return ;







    }
    }
    赞(37) 查看 回复
  • 2019-07-09 06:59:31 103.226.196.* 对n**t说:
    go for distribute
    赞(39) 查看 回复
  • 2019-07-08 23:07:42 103.226.196.* 对j*说:
    Computer users take it for granted that their systems can do more than one thing at a time. They assume that they can continue to work in a word processor, while other applications download files, manage the print queue, and stream audio. Even a single application is often expected to do more than one thing at a time. For example, that streaming audio application must simultaneously read the digital audio off the network, decompress it, manage playback, and update its display. Even the word processor should always be ready to respond to keyboard and mouse events, no matter how busy it is reformatting text or updating the display. Software that can do such things is known as concurrent software.

    https://docs.oracle.com/javase/tutorial/essential/concurrency/index.html
    赞(41) 查看 回复

  • 关于本站 @ 2018 | 川公网安备 51092202000218号 蜀ICP备16026747号