java Learning Notes - Database Basis 2

Database Basis (II) 1. Data constraints Data constraints are constraints added to fields when creating tables. These constraints will restrict the addition, modification and deletion of data in this subsection. Different data constraints can be added according to different business requirements. Default Value Constraints Format: Field ...

Added by itaym02 on Sun, 23 Jun 2019 23:52:45 +0300

One Order a Day - Order Help

One Order a Day - Order HelpHow to learn a bash command systematically:Requirements, understand the format of commands, options, help manuals, cases, exercises, extensions.What effect do you want to achieve? Do you have such commands, the format and use of commands, what other options do you have, the complete help manual in the system, what ar ...

Added by TitanKing on Sat, 22 Jun 2019 23:13:14 +0300

Serial Port Programming under Linux

I. Linux The following serial port programming and those components     1. Open the serial port 2. Serial port initialization 3. Read or write serial ports 4. Close the serial port 2. Opening of Serial Port Since the serial port is in the linux It is regarded as a file, so it should be opened before it is operate ...

Added by The Bat on Fri, 21 Jun 2019 00:00:02 +0300

Java Multithreading and Concurrent Learning (2): How to Create Threads

There are three ways to create threads in Java: (1) Inheriting Thread mode; (2) Implementing Runnable interface; (3) Create through Callable interface and FutureTask class.            Many people know the first two ways of creating, and also know their respective advantages and disadvantages. The latter may be relatively unfamiliar, and ...

Added by jetskirich on Thu, 20 Jun 2019 03:22:47 +0300

Design Principle-Interface Isolation Principle

Definition: The client should not rely on interfaces it does not need; the dependency of one class on another should be based on the smallest interfaces. The problem arises: Class A depends on Class B through Interface I, Class C depends on Class D through Interface I. If Interface I is not the smallest interface for Class A and Class B, Cla ...

Added by Lefu on Wed, 19 Jun 2019 22:34:23 +0300

Usage of vector Array

Usage of vector Array Label (Space Separation): vector STL C++ ACM STL Standard Template Library provides three types of components: Containers, iterators and algorithms all support generic programming standards. Containers are divided into two main categories: Sequential containers and associated containers. Sequential containers ...

Added by arbab on Wed, 19 Jun 2019 20:41:04 +0300

Python Programming From Introduction to Practice Chapter 10 Files and Exceptions

Read the entire file File pi_digits.txt # File pi_digits.txt 3.1415926535 8979323846 2643383279 The following program opens and reads the entire file and displays its contents on the screen: with open("pi_digits.txt") as fileobject: contents = fileobject.read() print(contents) #Operation results 3.1415926535 8979323846 264338 ...

Added by Toonster on Mon, 17 Jun 2019 23:29:57 +0300

Summary: Tasks, Threads, and Synchronization

Recently I read the book "C#Advanced Programming" again. I want to make a note of the knowledge points in the chapter "Tasks, Threads and Synchronization", so that I can forget that a knowledge point can be used directly in future work. Here is a summary. Parallel Data and Tasks Parallel 1. Parallel.For 1. Run iteration in p ...

Added by jschofield on Sat, 15 Jun 2019 20:58:24 +0300

Three factory modes in java: simple factory, factory method and abstract factory

Simple Factory Simple factory pattern, also known as Static Factory Method Pattern, is responsible for creating instances of other classes by defining a class specifically. The created instances usually have a common parent class. Let's start with an example. Now there is an interview question: using java to implement a computer console pro ...

Added by abolmeer on Sat, 15 Jun 2019 02:51:22 +0300

Java Design Mode-Factory Mode

1. Simple factories Definition Simple Factory is not actually one of the 23 GOF design modes. It is a weakening (or a special case of) the factory method mode. Because it is simple, it is called Simple Factory Mode, also known as static factory mode.Although it's not a "standard" design pattern (more like a programming habit), there a ...

Added by jplock on Fri, 14 Jun 2019 19:03:51 +0300