- Java Arrays
An array is a fixed-size, indexed block of values that all share one type. It is the simplest container Java has, it is what ArrayList is built on, and the moment you need it to grow you should stop using it. Creating an array Two things to fix in your head now. The size is permanent — an int[5]…
- Java For Loop
A loop runs a block repeatedly. Java has four, but the choice between them is nearly mechanical: if you are walking a collection, use for-each; if you are counting, use a classic for ; if you do not know how many times, use while . This post covers all four and the two mistakes everyone makes at…
- React Native – Safe Areas, Notches and the Keyboard
The screen is not a rectangle you own. A notch, a camera cut-out, the home indicator and rounded corners all eat into it, and the amounts differ per device and orientation — so they cannot be constants. `useSafeAreaInsets`, where the navigation header already handles it for you, and `KeyboardAvoidingView`, which needs different behaviour on each platform to work at all.
- Spring Boot – Aspect-Oriented Programming
Cross-cutting concerns without copying the same five lines into forty methods. Pointcuts, @Around advice and a real timing aspect over the service layer — plus the proxy rule that catches everyone: a self-invocation inside the same class never goes through the proxy, so the aspect simply does not run.
- Java Conditional Statements
Conditionals are how a program chooses. Java gives you three tools — if , the ternary, and switch — and switch changed substantially in recent versions, in a way that removed the language's most notorious source of accidental bugs. if , else if , else The branches are tested top to bottom and the…