Remember a code refactoring

Single responsibility Single function Single function is the most basic requirement of SRP, that is to say, the function and responsibility of your class should be single, so that cohesion is high. For example, the following parameter class is used to query website Buyer information, according to SRP, it should be placed in the query Field. @Da ...

Added by jdaura on Wed, 07 Aug 2019 09:06:11 +0300

8 tips for Python string processing

Python string processing is widely used in crawler data parsing, large data text cleaning, and common file processing. Python has built-in many efficient functions for string processing, which is very powerful and convenient to use. Today, I will summarize and share with you the most frequently used ...

Added by zunebuggy on Tue, 06 Aug 2019 13:34:21 +0300

Introduction to Java Network Programming

Java Network Programming 1. Overview computer network It refers to a computer system that connects multiple computers with independent functions in different geographical locations and their external equipment through communication lines and realizes resource sharing and information transmission u ...

Added by pirri on Mon, 05 Aug 2019 10:00:32 +0300

Climbing the School's Official Website to Achieve Achievements

Crawler Actual Warfare (1) -- Crawling Square System Preface Use tools and third-party libraries Login page simulation Get the post parameter at logon time Verification Code Processing Analysis of Achievement Climbing Preface Some time ago, I participated in the software cup competition, and f ...

Added by The Little Guy on Mon, 05 Aug 2019 08:37:24 +0300

Redemption from Parallel World

Here comes the divine torture. Why is it called redemption? Discuss a "death question" with you first. If your woman ticket or your wife asks you, "I fell into the water with your mother, who will you save first?" Haha, yes, that's the old voice of China, this torture of your heart's century problem! Are you scared? You c ...

Added by Telemachus on Mon, 05 Aug 2019 07:19:48 +0300

JavaSE concurrent programming

Articles Catalogue Concurrent programming Thread Foundation Thread group Atomics JMM (Java Memory Model) Lock mechanism Synchronization strategy Blocking queue Actuator Concurrent programming Concurrent programming mainly involves multi-process and multi-threaded programming, while java usually ...

Added by areid on Sun, 04 Aug 2019 16:32:52 +0300

sql statement memorandum

Structured Query Language (SQL) is a special purpose programming language. It is a database query and programming language for accessing data, querying, updating and managing relational database systems. Add a self-increasing ID field ALTER TABLE tblname ADD COLUMN csmid COUNTER (0, 1) access creates a table with self-increasing fields CREATE T ...

Added by eugene2008 on Sat, 03 Aug 2019 10:03:49 +0300

DOM Document Object Model in JS

DOM (Document Object Model) refers to the Document Object Model Primary values are used to manipulate html documents All nodes have a parent node, and only one node has no parent element (root node) HTML A node can have more than one child node, but a node has and only one parent node DOM methods for J ...

Added by incarnate on Sat, 03 Aug 2019 06:04:38 +0300

Concurrent Programming-Processes (Multichannel Technology)

Concurrent programming Concurrent and Serial What is serial? Serial means that a program is executed from top to bottom, one line at a time, and the current task must be executed before the next program can be executed. Question: Inefficient program execution Occupy memory resources What is concurrency? Concurrency means that multiple pro ...

Added by FrostedFlakes on Fri, 02 Aug 2019 04:27:27 +0300

Choir-Niu Passenger Network [Dynamic Programming Implementation]

There are n students standing in a row, each student has a capability value. Niu Niu wants to select k students from the n students in order. He asks that the difference between the location numbers of the two adjacent students should not exceed d, so that the product of the ability values of the K s ...

Added by danmahoney245 on Thu, 01 Aug 2019 11:17:21 +0300