An interview was asked about ArrayMap, the principle and source code analysis in detail

1, Foreword In SparseArray detailed explanation and source code analysis, we are familiar with the basic usage, characteristics and implementation principle of SparseArray. There is also an equally important data structure ArrayMap in the toolkit of the Android SDK. Its purpose is to replace HashMap when the amount of data is small, such as hu ...

Posted by signer on Wed, 19 Jan 2022 07:47:22 +0100

Research - jdk1 Research on the source code of HashMap under 7

Source code analysis jdk1 HashMap under 7 We all know that the bottom layer of hashmap version 1.7 is composed of array and linked list. Today, let's analyze the source code ourselves~ It's a little long. I don't talk much nonsense. I'll start the analysis directly~ Attribute declaration //Initialization capacity static final int DE ...

Posted by killfall on Wed, 19 Jan 2022 02:48:28 +0100

Core principles of spring cloud RPC: RxJava responsive programming framework, transformation operator

Conversion operator This section introduces three conversion operators of RxJava: map operator, flatMap operator and scan operator. map operator The map operator accepts a conversion function, applies the conversion function to each element in the message flow ejected by Observable, and the converted result pops up from the message flow. The ...

Posted by diddy1234 on Tue, 18 Jan 2022 19:18:56 +0100

Web mobile web development, use of CSS inline style

Get geographic location information using HTML5 How to use HTML5 geolocation For example, geoml5 supports more precise location functions on modern handheld devices, especially HTML5. First, we need to check whether the user's device browser supports geographic positioning, and if so, obtain geographic information. Note that this feature may ...

Posted by tozanni on Tue, 18 Jan 2022 17:31:34 +0100

Here comes the squid game. Now let's start. Let's see what level you've passed.

Here comes the squid game. Now let's start. Let's see what level you've passed. Without the aid of IDE, see whether your human flesh compiler can compile the correct results. Scala-like functions fun hello() = { println("Hello, World") } hello() a). Does not compile b). Prints "Hello, World" c). Nothing d). Something el ...

Posted by TRUSTINWEB on Tue, 18 Jan 2022 14:36:33 +0100

Are you still returning ApiResult? ✋ duck: No, let's look at the best practices for API error handling ✔ ️

Why did you write this article? I believe many Java developers have used objects like ApiResult to wrap Api return types in projects, which is better than not wrapping anything, but is this really the best way? It is not a best practice to uniformly return ApiResult. We must constantly think about optimization, just like the Rethinking Best P ...

Posted by luketheduck on Tue, 18 Jan 2022 03:37:48 +0100

Awesome, front-end automated test framework cypress

automated testing In order to ensure software quality and reduce repetitive testing, automated testing has been widely used. Automated testing is a testing method that uses specific software to control the testing process and compare the difference between the actual results and the expected results. By automating the test, we can transform ...

Posted by jdnet on Mon, 17 Jan 2022 12:24:58 +0100

web development technology training school, how should front-end development prepare for interview

function call Syntax: FN call(obj,…args)Function: execute fn, make this obj, and pass the following n parameters to fn Function.prototype.myCall = function (obj, ...args) { if (obj == undefined || obj == null) { obj = globalThis } obj.fn = this let res = obj.fn(...args) delete obj.fn return res } value = 2 let foo = { ...

Posted by korion on Mon, 17 Jan 2022 10:51:49 +0100

SpringBoot basic learning

reference resources Crazy God says springboot Introduction to SpringBoot Review what Spring is The lightweight Java development framework is created to solve the complexity of enterprise application development and simplify development. How does Spring simplify Java development In order to reduce the complexity of Java development, Spr ...

Posted by olechka on Mon, 17 Jan 2022 06:26:14 +0100

web development source code, module notes that a qualified junior front-end engineer needs to master

Concept: Redis is an open source high-performance key value pair database developed in C language. features: There is no necessary connection between the dataThe internal uses single thread mechanism to workHigh performanceMulti data type support String type stringList type listHash type MapCollection type SetOrdered collection type Sorted ...

Posted by Mce on Sun, 16 Jan 2022 19:04:38 +0100