OCP 17 Exam - chapter 3 notes
Chapter 3 notes “watch indentation and braces”, e.g. in the following example count is always incremented if (count < 2) System.out.println("Good day"); count++; “pattern matchin...
Chapter 3 notes “watch indentation and braces”, e.g. in the following example count is always incremented if (count < 2) System.out.println("Good day"); count++; “pattern matchin...
Chapter 2 notes unary = 1 param, binary = 2 params, ternary = 3 params numeric promotions rules: always to larger data type, e.g. short -> int integral type is promoted to...
Chapter 1 notes: source file must have at most one public type import that specifies class name takes precedence over import with * if there are two classes with the same name e.g....
Motivation: The goal is to more effectively measure your performance and impact on a project by categorizing your work in a consistent way. Background: In the past, I used to prefix my commits a...
NOTE: Originally posted on https://blog.cronn.de/en/java/2023/07/14/named-capturing-groups-in-jdk-20.html TL;DR Since JDK 11 there haven't been any significant changes to Regex API. In JDK 20 a ...
I really enjoy asserting collections with AssertJ. Usually it’s safer and simpler to use containsExactlyInAnyOrder rather than asserting individual elements (collection.get(0)) - even if there is o...
I’m excited to share with you a new tool that I’ve been using to help protect my eyes while working on my computer. It’s called safe-eyes-cli and it’s inspired by the popular Safe Eyes application....
This is series of “cheatsheet” articles, which gather tips, hacks, useful commands for given tool. Commands Run docker docker run -it --rm -p 3000:3000 -e "DEFAULT_STEALTH=true" -v '/tmp/pdf:/us...
TL;DR In fact, in Playwright v.1.31.1 there are three ways to configure an HTTP proxy: chromium.launch browser.newContext page.setExtraHTTPHeaders, but works only on Firefox Today I was...
@CsvSource used with text blocks is really awesome! Similarly to validation files, it can be used to create easily readable tests with readily visible inputs and outputs placed side by side. For e...