Skip to content
Alessandro Lacava
  • Home
  • Blog
  • Articles
  • Talks

Writing 52 posts

The blog

Notes on programming, software design, and the occasional unexpected discovery.

CSS24 Nov 2006

How to add scrollbars to a block (e.g. a <div> element)

If you need to customize a list box, the HTML element might not be enough. In that case, you might want something that simulates the behaviour of . Here is the code for a custom list box:…

Read article ↗
JavaScript20 Nov 2006

Sorting an array of objects with the sortBy method of Prototype

Here is an example of how easy it is to sort an array of objects using the Enumerable.sortBy method of the Prototype framework:

Read article ↗
Aphorisms11 Oct 2006

Why you shouldn't be concerned about optimization

When you were at university or taking a programming course, you—like me—were probably taught about the importance of optimization. In the real world, though, you should strive to write good…

Read article ↗
Java10 Oct 2006

How to select any character across multiple lines in Java

You can do that using the following pattern in the static compile method of the java.util.regex.Pattern class. The pattern is (.|n|r)? which means: any character (the .) or (the |) n or r.…

Read article ↗
← Newer posts
Page 9 of 13
Older posts →
Alessandro Lacava

Software, words, and the ideas in between.

GitHub ↗LinkedIn ↗X / Twitter ↗Email ↗
© 2026 Alessandro Lacava
RSS feedPrivacy and cookies