StringBuilder and StringBuffer in Java
When text is built piece by piece, a mutable buffer avoids the copying that repeated String concatenation forces.
Material for readers past the basics.
145 notes tagged
When text is built piece by piece, a mutable buffer avoids the copying that repeated String concatenation forces.
Java has no true two dimensional array. It has arrays of arrays, which is what makes jagged shapes possible.
Java always passes arguments by value. For objects the value copied is the reference, which explains every result that looks like pass by reference.
A variable arity parameter lets a method accept any number of arguments, and inside the method it is simply an array.
A recursive method calls itself on a smaller problem, and it works only when a base case guarantees the shrinking stops.
Thirty questions on tables, forms, semantic elements, metadata and accessibility. Harder than set one, and still questions only.
What the markup alone can do for speed, with no build tooling: resource hints, image discipline, script loading and the small set of attributes that m...
Markup you can still read in six months. Consistent conventions, meaningful names, shallow nesting and a house style that survives more than one devel...
Consistent formatting, markup linting, live reload and shared settings. A day of setup that pays back on every file afterwards.
Multi cursor editing changes what feels possible in a file. These shortcuts are worth the twenty minutes it takes to build the habit.
Fifteen exercises combining joins, grouping and having, each with the solution and a note on the trap it was designed to expose.
How much portability is worth paying for, which constructs are safe everywhere, and how to isolate the parts that can never be portable.