[personal profile] sassa_nf
I don't know, do people really use debuggers for real code?

https://github.com/oracle/helidon/blob/355f646492e6529734a5b1a2aa50422bf8c75a5a/common/reactive/src/main/java/io/helidon/common/reactive/MultiFlatMapPublisher.java#L198-L235 - the bug here, to my mind, is best described as a type-level bug.

Not a variable of the wrong type, more like part of the computation has the wrong type.

I am not sure how a debugger can help, even if one can find a way to coax the code go through the problematic code path. (But first one would need to realize it is problematic, right?..)

The only assurance you can have, is a formal proof. The next best thing is code review.

Date: 2020-08-29 03:12 pm (UTC)
juan_gandhi: (Default)
From: [personal profile] juan_gandhi

Using Scala might have helped them, but well... Seems like since people just don't know much about functors, they know even less about monads.

And the code is barbaric. Debug or not, how would one test it. Hopeless.

Date: 2020-08-29 07:56 pm (UTC)
juan_gandhi: (Default)
From: [personal profile] juan_gandhi

Well, lack of education is a sad fact of life. Another problem with it is that you can't explain to them anything.

Date: 2020-08-29 09:57 pm (UTC)
juan_gandhi: (Default)
From: [personal profile] juan_gandhi

It was a non-constructive proof.

Date: 2020-08-29 10:39 pm (UTC)
juan_gandhi: (Default)
From: [personal profile] juan_gandhi

I see. Maybe it's hard to convince the management that it's important. A couple of weeks ago I created a case named "race condition in..." - and then they wanted me to prove it is one. I did not care, I just wanted to walk around and provide a solution (retry).

Then they wanted me to "investigate and reproduce". Refactoring not allowed, so I can't seriously even test the huge method. So I said, ok. Then another guy decided to tweak that method, to "make it better". For some reason, he was allowed to do it. Did not help. Now it's called "race condition".

If it were like 10 years ago, I would have been totally pissed off. Now I just smile at those guys (like dr. Freud, kind of). Who cares, actually.

Date: 2020-08-30 02:10 pm (UTC)
juan_gandhi: (Default)
From: [personal profile] juan_gandhi

:) Yes, it's all psychology and hormones. (And some "negative" experience.)

Profile

sassa_nf

January 2026

S M T W T F S
    123
45678910
111213141516 17
18192021222324
25262728293031

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 20th, 2026 08:21 pm
Powered by Dreamwidth Studios