Today's WTF software engineering…

The application I work on has a feature where the train conductor can inspect tickets using their verification code. The application supports the code generated by the old sales system but it should now start supporting also the verification codes from the new sales system. Now, you have the right to ask are the codes from these 2 systems specified in the same way. The answer is, obviously, no.

The old verification code is, as per specification, the RFC4648 Base32-encoded version of the ticket ID (which is an integer). The new one, while being a Base32-encoded version of the booking ID (which is connected to the ticket ID), has some extra characters (in this case, a dash) sprinkled here and there to make it easier to read. Furthermore, the old system's ticket inspection API requires the ticket ID to be used while new system's API requires that we pass the verification code as is to the API.

At the moment the application does the conversion from the Base32-encoded code to the ticket ID, but I thought it would be easier to just pass the code to the server where the server decides to which system the (possibly converted) information should be forwarded. Sounds easy, doesn't it? Well, except that all those Base32-libraries for NodeJS I tested do not seem to convert the code correctly (from the ID to the code nor vice versa). Or, more likely, the Base32-library I use on the application does not comply with RFC4648 as it claims it would.

If the customer would not be anal about alcohol in their premises, I would have started drinking well before 10AM today…

I hope you sent a list of errors in the data while quoting that statement.

Oophf… Not nice.

Yep. Millions and billions, they are the same, aren't they?

//

Because they can make the numbers look a lot bigger.

Look, I made that number this huge! Give me a raise!

//

Something like that. :)

I wish I had evenings like that. Today shouldn't be as hectic as yesterday, but there's still a lot on my to-do list for tonight.

Hectic evening today. First I left from work to get the boy from the daycare. Then I warmed up food for the whole family. After the dinner I drove my wife and the firstborn to a school for an information sharing event1. Next I drove the younger daughter to her new hobby. While she was there, I went to the grocery store with the youngest. Now I am waiting for the younger daughter at the parking lot. We still need to handle laundry and empty the dishwasher before, but I think I will outsource those tasks to someone else.


  1. The event was about applying to the art-focused education the school gives, and the firstborn would like to apply for that.

As if Google would care for the "users" of the service…

Yep. Soon there will be an ad once in a minute…