-
You may read code because you have to
You may read code because you have to-to fix it, inspect it, or improve it. You may read code the way an engineer examines a machine--to discover what makes it tick. Or you may read code because you are scavenging--looking for material to reuse.
Code-reading requires its own set of skills, and the ability to determine which technique you use when is crucial. In this indispensable book, Diomidis Spinellis uses more than 600 real-world examples to show you how to identify good (and bad) code: how to read it, what to look for, and how to use this knowledge to improve your own code.
Fact: If you make a habit of reading good code, you will write better
- 2023-06-05 04:00:03下载
- 积分:1
-
The level of blinds show pictures, talk about an image vertically divided into s...
水平百叶窗显示图片,讲一张图像垂直分成若干份,bitblt一行一行的显示-The level of blinds show pictures, talk about an image vertically divided into several copies, bitblt display line by line
- 2022-05-20 18:30:07下载
- 积分:1
-
"The Revolutionary Guide to MFC 4 Programm ing With Visual C "in the b...
"The Revolutionary Guide to MFC 4 Programming With Visual C++"书中的例子,演示如何通过第二线程打印文档-"The Revolutionary Guide to MFC 4 Programm ing With Visual C "in the book examples demonstrate how to print a document second thread
- 2022-08-15 21:08:04下载
- 积分:1
-
VB数据库树型结构查询
VB数据库树型结构查询-VB database inquiries tree structure
- 2022-05-05 22:10:32下载
- 积分:1
-
USB监控源码
usb监听源码,需要安装DDK环境中运行-usb monitor source
- 2023-03-23 15:10:03下载
- 积分:1
-
java异常处理
3.8 异常处理
什么是异常
知道Java异常分类
处理异常的两种方式
throw和throws区别
如何创建自定义异常
概念:
在程序中,可能产生程序员没有预料到的各种错误情况,比如打开一个不存在的文件等,在Java中,这种在程序运行时可能出现的错误称为异常。
异常可以把“描述在正常执行过程中做什么事”的代码和“出了问题怎么办”的代码相分离
例子:demo05.ExceptionDemo.java
Java异常分类A:
java.lang.Error,java.lang.Exception
Error(错误):jvm系统内部错误、资源耗尽等严重问题,发生Error时,编程人员无能 为力,只能终止程序,例如内存溢出等。
Exception(异常):因编程错误或偶然的外在因素导致的一般性问题,例如:对负数 开平方根、空指针访问等,当发生Exception 时,编程人员可以做出处理,并做出人性 化响应,比如弹出窗口,显示“请不要输入负数!”。
异常分类B:
检查性异常:编译器必须处理的异常,该类异常通常是Exception类型或其子类(RuntimeException类除外)//运行时异常
SQLException、IOException、ClassNotFoundException
例子:/DemoProject/src/com/hyg/demo08/FileInputStreamDemo.java
非检查性异常:编译器不要求强制处理的异常,RuntimeException类及其所有子类都是非检查性异常。
NullPointerException、ClassCastException
例子:equa
- 2022-02-14 14:02:16下载
- 积分:1
-
Windows Mobile 中如何制作Setup D
Windows Mobile 中如何制作Setup D-Windows Mobile How to make Setup DLL
- 2022-03-03 11:11:14下载
- 积分:1
-
数据采集程序代码
数据采集程序代码-data acquisition code
- 2022-10-08 16:45:03下载
- 积分:1
-
基于wince下串口助手源代码。可以支持十六进制发送接收。
基于wince下串口助手源代码。可以支持十六进制发送接收。-Serial assistant source code. Support hexadecimal send and receive.
- 2022-03-24 18:07:56下载
- 积分:1
-
域名服务器的仿真程序:
一个简单的仿真模拟程序,其中包括数据的输入、查询和删除功能,要求在该程序的基础上添加一些功能,使程序的功能更为全面,操作更加方便。...
域名服务器的仿真程序:
一个简单的仿真模拟程序,其中包括数据的输入、查询和删除功能,要求在该程序的基础上添加一些功能,使程序的功能更为全面,操作更加方便。-Domain Name Server simulation procedures: a simple simulation program, including data entry, query and delete functions, the requirements in the program based on the add function, the function of the process more comprehensive, more convenient operation.
- 2023-02-05 07:25:03下载
- 积分:1