Set 9: Implementing a set of ui component libraries for pc-side vue from scratch (Pager Components)

Episode 9: Implementation from scratch (Pager Component) This episode locates: Pager is also an old friend. Remember when I first learned js, writing a pager required 300 lines of code. If I could get back through it, I would have to teach myself design patterns. As the status of mobile phones has been improved, most people spend more time onl ...

Posted by baby_g on Mon, 05 Aug 2019 18:10:25 +0200

The expansion process of synchronized lock (lock upgrade process) in java Concurrent note 4

The expansion process of synchronized lock (lock upgrade process) in java Concurrent note 4In this paper, we discuss the expansion process of bias lock (batch bias, batch revocation), lightweight lock, heavyweight lock and lock (that is, the upgrading process of lock) through a large number of example codes and hotspot source code analysis. Let ...

Posted by forsooth on Mon, 05 Aug 2019 06:10:51 +0200

ES6 ES2015 Learning Notes Generator for JavaScript Continuation

A simple generator example: function* somewords() { yield "hello"; yield "world"; } for (var word of somewords()) { alert(word); } yield method is executed once for each call to the.next() method How to turn off the generator: Let's first learn about the characteristics of the generat ...

Posted by shantred on Sun, 04 Aug 2019 05:31:19 +0200

Assembly Language Experiment 3

I. Experimental Purpose _Master assembly programming specifications, familiar with the programming environment. II. EXPERIMENTAL CONTENTS Write subroutines to convert lower-case letters into upper-case letters in strings (see Textbook Experiment 11). _2. Write No. 0 interrupt processing program to d ...

Posted by monkeymade on Sat, 03 Aug 2019 11:13:07 +0200

Java Core. IV. Objects and Classes

IV. Objects and Classes 4.1 Overview of Object-Oriented Programming Relationships among 4.1.4 Categories Classification: uses a, has a, inheritance (is a) rely on Methods of one class manipulate objects of another class The most common relationship, the most obvious relationship The design should follow the principle of minimizing dependency ...

Posted by jolly on Sat, 03 Aug 2019 09:09:05 +0200

[Analysis of C++11] std::function and std::bind

Catalog [Analysis of C++11] std::function and std::bind std::function callable object wrapper std::function basic usage std::function/std::bind and some thoughts on abstract factory and factory method [Analysis of C++11] std::function and std::bind std::function callable object wrapper C+ ...

Posted by JimD on Sat, 03 Aug 2019 05:46:30 +0200

29. Java Foundation - Log4j Configuration and Use

I. Introduction Examples 1. Configure dependencies in maven's pom file as follows: <!-- log4j support --> <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.17</version> </dependency> 2. Create the lo ...

Posted by dvonj on Thu, 01 Aug 2019 08:12:05 +0200

Dynamic proxy parsing

I. What is the Agency Model Definition of proxy pattern: The proxy pattern provides a proxy object for an object, and the proxy object controls the reference of the original object. Generally speaking, the agency model is a common intermediary in our life. Classification of Agent Patterns: Agent Patterns are divided into Static Agents and D ...

Posted by BoxingKing on Thu, 01 Aug 2019 05:52:27 +0200

The fifteenth Generic of Java Foundation

Chapter 15 Generics General classes and methods can only use specific types: either basic types or custom types. If you want to write code that can be applied to many types of code, this rigid restriction will impose great constraints on the code. In object-oriented programming languages, polymorphism is a generalization mechanism. Generics imp ...

Posted by jbog91 on Thu, 01 Aug 2019 04:39:13 +0200

java constant folding

Original Link: https://www.cnblogs.com/zhenghengbin/p/9683990.html Constant Folding in java Why did I write a blog post because I read an analysis of the final keyword yesterday.But there was a problem that was never solved, so I asked ...

Posted by cheald on Thu, 01 Aug 2019 04:01:52 +0200