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

October 2025

S M T W T F S
    1 23 4
5 67891011
12131415161718
19202122232425
262728293031 

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Oct. 8th, 2025 02:07 pm
Powered by Dreamwidth Studios