Four ways to create singleton pattern

This is a question for my recent interview There are several ways to create a single example of the interviewer's question. I answered the lazy man and the hungry man. He told me that there are two kinds. In fact, I still vaguely remember two kinds. I just can't remember, and my heart silently tears.... ...

Posted by Birdmansplace on Sun, 28 Jun 2020 22:54:54 -0700

Eclipse configures hadoop development environment

Hadoop stepping on the pit (3) Eclipse configures hadoop development environment Environmental Science windows 10 java 1.8 Namenode (Hadoop 1-ali) alicloud (CentOS 7.3) 120.26.173.104 hadoop version 2.8.5 Eclipse installation Enterprise version needs to be installed. For network reasons, offline installation package is recommended https://www.e ...

Posted by Duodecillion on Sun, 28 Jun 2020 22:17:50 -0700

I found an IDEA BUG by debugging concurrent linkedqueue. Eclipse has no problem

This slag wants to analyze Doug Lea's idea of writing high concurrency code, so I found our leading actor, concurrent linked queue, to whip it. To tell you the truth, I've finished all the drafts, but I've almost got a kick in the door Looking at the problem directly, the results of running idea in Debug and non Debug modes are different How d ...

Posted by prbrowne on Sun, 28 Jun 2020 22:18:23 -0700

Hbase client programming (Eclipse)

Hadoop stepping on the pit (4) Hbase client programming (Eclipse) Environmental Science For the installation and configuration of Hbase and the configuration of Eclipse, please refer to the previous two articles The version of hbase used in this series is 1.4.13 The selected hadoop version of this series is 2.8.5 Please pay attention to the per ...

Posted by Quest on Sun, 28 Jun 2020 21:59:57 -0700

Understanding of parallel pipeline

Ideas sharing Now there are two variables i,j. to calculate the result value of (i+j)*i/2, we can first find that each step of the calculation depends on the result of the previous step. For example, we have to add, then multiply, and then divide. It seems that we can't split it into parallel. This is ...

Posted by d00dle on Sun, 28 Jun 2020 21:46:56 -0700

Learn Java design mode again: actual memo mode "simulate the scenario of profile rollback during the online process of Internet system"

Author: little brother FuBlog: https://bugstack.cn -Original series of special articles Precipitation, sharing, growth, so that they and others can have a harvest! 😄 1, Preface Can't it be an excuse for R & D? Sometimes the function complexity is high and it is difficult to realize, sometimes the construction period is short and the impleme ...

Posted by emmbec on Sun, 28 Jun 2020 21:45:05 -0700

I found a bug in IDEA by debugging concurrent linkedqueue, and vscode is duplicated. eclipse has no problem

This slag wants to analyze Doug Lea's idea of writing high concurrency code, so I found our leading actor, concurrent linked queue, to whip it. To tell you the truth, I've finished all the drafts, but I've almost got a kick in the door If you look at the problem directly, the result of idea running i ...

Posted by subalan on Sun, 28 Jun 2020 21:18:57 -0700

java design pattern Decorator Pattern

Decorator mode Reference documents: http://c.biancheng.net/view/1366.html   In real life, it is often necessary to add new functions or beautify the appearance of existing products, such as house decoration, photo frame and so on. In the process of software development, sometimes you want to use s ...

Posted by satyac46 on Sun, 28 Jun 2020 20:19:16 -0700

Two implementation methods of java Dynamic agent

Last article we wrote about static agents Agent mode of design mode [1] static agent Let's talk about java's dynamic proxy today. 1, Why use dynamic proxy In fact, the dynamic agent makes up for the shortcomings of the static agent. The static agent needs to write a proxy class for each proxy object, ...

Posted by shiznatix on Sun, 28 Jun 2020 20:14:24 -0700

Node.js With ProtoBuffer, realize a redis from zero

Write at the beginning If you want to learn the wheel making technology, you can see my previous collection of original articles: https://mp.weixin.qq.com/s/RsvI5AFzbp3rm6sOlTmiYQ If you want to get 3700G of free learning materials or join the technology exchange group (no advertising), you can use the end of the article + my wechat to focus ...

Posted by wutanggrenade on Sun, 28 Jun 2020 18:08:35 -0700