Introduction to creating Dojo parts

translate https://github.com/dojo/framework/blob/master/docs/en/creating-widgets/introduction.md Dojo encourages writing simple, modular components, called components, that only fulfill a single responsibility in the high demand for applications.Components are designed to be combined and reused in a variety of scenarios and connected in a re ...

Posted by Megahertza on Wed, 07 Aug 2019 20:12:50 -0700

Java design pattern optimization - singleton pattern

Overview of Singleton Patterns Singleton pattern is an object creation pattern used to generate specific instances of a class. Using the singleton pattern ensures that only one instance of the singleton class is generated throughout the system. There are two main benefits: For frequently created objects, the creation time after the first inst ...

Posted by cedricm on Wed, 07 Aug 2019 06:06:39 -0700

throw and throws in Java

I. Packaging Background: When defining an attribute for users, attributes modified with public cannot restrict the value of attributes, so encapsulation is needed. ublic class Student { private int age;//Set access permissions to make their values controllable public void setAge(int age) { ...

Posted by freedomsam on Wed, 07 Aug 2019 04:24:54 -0700

spring event mechanism

In the process of software development, sometimes we encounter the need to decouple the specific business so that each module is only responsible for the corresponding processing logic. For example, in our abstract business logic, there is a driver responsible for the destination. Now our business syste ...

Posted by w00kie on Wed, 07 Aug 2019 00:43:03 -0700

Visualization of Crime Data in San Francisco

Referring to Gao Nan's posts, they are purely for learning. The links are as follows: https://www.zhihu.com/question/33783546/answer/775946401 Here, the visualization of data is realized mainly through folium. This is a niche library, but there are some functions to be used, still need to understand. I ...

Posted by zhTonic on Tue, 06 Aug 2019 21:36:07 -0700

Spring Boot 2.x: The Correct Play of Swagger 2

Introduction to Swagger 2 Simply put, Swagger2 was born to solve the pain point of API document maintenance when front-end and back-end developers communicate. It can be perfectly integrated with our Java program and can be used in conjunction with Spring Book, another of our development tools. Start using Step 1: Import the POM file & ...

Posted by danrl on Tue, 06 Aug 2019 19:06:20 -0700

Virtual Dom Details-

With the advent of Vue and React and the growth of many frameworks, virtual DOM has gradually become a topic we often discuss and discuss.What is virtual DOM, how virtual DOM is rendered, what is the difference between virtual Dom of Vue and virtual DOM of React, etc.... A series of topics are under discussion.For this reason, I also made some ...

Posted by lkq on Tue, 06 Aug 2019 11:07:28 -0700

day10 object-oriented programming

Articles Catalogue Process-oriented Advantages and disadvantages: Object-oriented Advantages and disadvantages: Object-oriented programming Special class attributes Class Namespaces and Objects, Instance Spaces inherit single inheritance multiple inheritance polymorphic Private Attributes encapsul ...

Posted by seanrock on Tue, 06 Aug 2019 04:43:22 -0700

Feature Selection of Python Sklearner Learning

Feature Selection of Python Sklearner Learning Articles Catalogue Feature Selection of Python Sklearner Learning 1. Removing low variance features 2. Univariate feature selection 2.1 Univariate Feature Selection Tool Class 2.2 score_func parameter description 2.2.1 for regression: 2.2.2 For ...

Posted by Celadon on Tue, 06 Aug 2019 02:36:16 -0700

ArrayList&CopyOnWriteArrayList of Java Common Collection Classes

ArrayList is a single-threaded data structure, which is prone to unpredictable errors in a multi-threaded environment. So the Java class library provides us with CopyOnWriteArrayList for multithreading. Let's first look at ArrayList, which has the following properties private static final int DEFAU ...

Posted by MorganM on Mon, 05 Aug 2019 23:54:50 -0700