Jul. 3rd, 2024

dybr

Jul. 3rd, 2024 08:26 pm
juan_gandhi: (Default)
So, what's up today. July 3rd, nobody at work. I'm continuing my investigations.

Meanwhile, a bot "upgraded" the same project, and now it does not build. Asked Sam about dependencies, she gave me a good advice; ok.
But the code is no deprecated, with an updated library, so, warnings. And I started fixing warnings.

Fixed them. But now Jenkins fails building it. A variety of complaints; one repeating is that the build makes too many docker requests. Really interesting.

And yes, I was investigating the code. I guess now, the programmers are just beginners that read the Red Book (FP in Scala).

Here's a code sample:
 




object Server {
private[this] def recordToString[A, B](record: Record[A, B]): String =
record.headers.toChain.toList
.map(s => s"${s.key()}, ${String.copyValueOf(s.value().map(_.toChar))}")
.toString()

//...

where

class Header... {
def key: String
def value: Array[Byte]
...

(this is from Kafka library)

Kids writing code for banks.

 

Profile

juan_gandhi: (Default)
Juan-Carlos Gandhi

November 2025

S M T W T F S
       1
23456 7 8
9 1011 12 1314 15
16171819 20 2122
23 24 252627 2829
30      

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Nov. 28th, 2025 10:39 pm
Powered by Dreamwidth Studios