Jul. 28th, 2023

dybr

Jul. 28th, 2023 07:12 pm
juan_gandhi: (Default)

 Woke up at half past three, having figured out one problem and the required solution.

Our codebase, for a bunch of servers, is still in Scala 2.11 - and why? Because it uses Play framework, and Play had changed _a_lot_ between Scala 2.11 and Scala 2.12 - you need to rewrite tons of your app code to use the new framework. Assholes, right? So, what did Jo Price (ubiquitous) did? He rewrote some of the adapter code to Scala 2.12, but not all. And so tons of server code needs a lot of rework. Now, with dozens of servers, how much time will it work? It's been about 5 years since they started trying. I guess we need several more years to be done.

No Way. We need a proper adapter, so that the production code hardly even notices that something changed in the library. It's not the production code business to react to each version change by rewriting.

And I guess I almost know how.

So I fell asleep, and then most of the day I was just thinking. And experimenting, because updating the existing adapter project codebase, without a ready use case, makes not much sense.

Eventually I figured. I take one project (which I was in the process of upgrading to Scala 2.12), and keep all the adapter changes there. That's what I'm doing now. 

Besides, I decided to write a table: project/scala version/play version/planned upgrades. I started collecting this information, and filling the table, when suddenly another google spreadsheet popped up. The one that has exactly the same data, and existed since god knows how long. Mahesh was the last to update it. Asked Mahesh. He said, he just updated it.

So, interesting secrets, right?

Anyway; and another funny thing.

Friday are usually "tidbit days", meaning, you don't work on production code, but spend time fixing this and that, refactoring, improving, cleaning up. And Karen asked me whether I spend my time doing this. I said, yes, and I did some yesterday. And she said: cool, create a jira case for what you did, add it to the current sprint, and report done. We'll get more points.

This is what I appreciate! I was a trade union organizer in the USSR, and I know how to earn points. Well, same on stocks (market was nice today). So, ok, I guess things will go smoother from now on. I can provide them with jira points effortlessly, while doing good stuff.

 

Profile

juan_gandhi: (Default)
Juan-Carlos Gandhi

December 2025

S M T W T F S
  12 3 4 56
78910111213
14151617181920
21222324252627
28293031   

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Dec. 8th, 2025 09:30 am
Powered by Dreamwidth Studios