Posts
MijazzChan
Cancel

Just like I said in this post, These patterns are pretty easy/simple, but it really helps me a lot especially when managing to understanding Java’s underlying design pattern through reading Java...

Intro PECS stands for Producer extend Consumer super. The PECS mnemonic captures the fundamental principle that guides the use of wildcard types. Although the way it works may seem a little bit c...

Builder Pattern Simple Builder Pattern without considering Hierarchy Generic Type Builder Pattern (suits to class hierarchies) ...

Inspired by Spring’s excellent dependency injection way of handling bean validation, after reading some official java documentations and Spring Docs, I decided to find a way of achieving the purpos...

Keywords in this post are as follows. Spring Boot Bean Validation JSR-303/349/380: Bean Validation Related Topic JSR Java Annotation Processing Custom Annotation Java Reflection API (ja...

Go to this gist for original files. # -*- coding: utf-8 -*- # @Author: MijazzChan, 2017326603075 # @ => https://mijazz.icu # Python Version == 3.8 import os import pandas as pd import numpy...

Intro Inspired by a stackoverflow answer which is more than a decade old. StackOverflow-Answer1, StackOverflow - Answer2 @Jon Skeet there provide a way of measuring how much memory do byte, int a...

Array Generator Secure.Random / ThreadLocalRandom public static final ThreadLocalRandom randStream = ThreadLocalRandom.current(); public static int randomInt(int from, int to) { ...

Current network architecture Visual diagram Just a sketch. So-called safe LAN, in which there will be no unexpected public traffic inbound under normal circumstances. In local LAN, us...

Key Word java.lang.NoClassDefFoundError: org/codehaus/janino/InternalCompilerExceptionProblem Description Versions Overview Java - OpenJDK8 Spark - 2.4.7 Spring Boot - 2.4.1 (Dep...