2017-10-21
Dear recruiter...
2017-10-01
Migrating a project from java 8 to java 9
Now that Java 9 is out, I decided to migrate to it my pet project, which is around 120K lines of java.
The first step is to just start compiling and running against jdk9, without using any of its features yet.
This is an account of the surprisingly few issues that I encountered during this first step and how I resolved them.
Issue #1: Object.finalize() has been deprecated.
2017-09-26
A Hacker's Tale (With a Human Side)
2017-07-17
Grumpy Posts
Here is a list of them:
On JUnit's random order of test method execution
On UUIDs and GUIDs
On scripting languages
Why Oracle sucks
The GWX (Get Windows 10) KB3035583 trojan horse
"By using this site, you agree to the use of cookies."
2017-07-12
Rich Hickey - Simple Made Easy
My notes on the presentation:
"Simplicity is prerequisite for reliability" - Edsger W. Dijkstra
Simple vs. Complex, Easy vs. Hard
2017-06-18
What is wrong with UUIDs and GUIDs
Introduction
Universally Unique Identifiers (UUIDs) otherwise known as Globally Unique Identifiers (GUIDs) are 128-bit numbers that are often used to identify information. In its canonical representation, a UUID looks like this: 2205cf3e-139c-4abc-be2d-e29b692934b0.
The Wikipedia entry for Universally Unique Identifier (⬀) says that they are for practical purposes unique and that while the probability that a UUID will be duplicated is not zero, it is so close to zero as to be negligible. Wikipedia then does the math and shows that if 103 trillion UUIDs are generated, the chance of duplication among them is one in a billion.
Despite the infinitesimally small chances of receiving a duplicate UUID, there exist programmers out there who are afraid of this actually happening, and who will not hesitate to suspect duplicate UUIDs as being responsible for an observed malfunction rather than first look for a bug in their code. Clearly, these folks do not understand the meaning of infinitesimally small chance, so let me try to explain it:
Infinitessimally small chance means practically impossible to happen, and the practically part is only mentioned for scientific correctness: practically, you can disregard the word practically and consider it as simply impossible to happen.
Great. Now, let me tell you why I hate UUIDs.