Exponential Backoff in Golang: take two
Apr. 22nd, 2024 10:34 am![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Most important change: float multiplier. Special thanks to
juan_gandhi for this discussion!
https://github.com/aklepatc/backoff/blob/main/backoff.go
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
https://github.com/aklepatc/backoff/blob/main/backoff.go
no subject
Date: 2024-04-22 04:24 pm (UTC)The code does look weird (to me).
no subject
Date: 2024-04-22 04:40 pm (UTC)no subject
Date: 2024-04-22 04:59 pm (UTC)I don't know go; so this piece looks (to me) just weird:
Just the language.
no subject
Date: 2024-04-22 05:13 pm (UTC)Put a long list of function args one-per-line. Thought it would be easier to read...
no subject
Date: 2024-04-22 05:14 pm (UTC)no subject
Date: 2024-04-22 05:18 pm (UTC)no subject
Date: 2024-04-22 05:51 pm (UTC)no subject
Date: 2024-04-22 06:23 pm (UTC)no subject
Date: 2024-04-22 04:44 pm (UTC)Could you tell what your reply would be when receiving a comment like yours? Lol.
no subject
Date: 2024-04-22 05:00 pm (UTC)Depending on who comments. Since I don't know go, and last time I saw it was about 15 years ago... But I bet some Scala code looks much weirder.
no subject
Date: 2024-04-22 05:17 pm (UTC)I always thought that positive comments can be very generic (Looks good to me) but negative ones need to be specific.
So I would do either: "This looks weird to me because..." or "This looks rather strange to me. But I don't really know the language. So maybe just that"...
no subject
Date: 2024-04-22 05:51 pm (UTC)In this case, I got a feeling that this code structure is very unusual. I'll take a look again tomorrow.
no subject
Date: 2024-04-22 05:32 pm (UTC)no subject
Date: 2024-04-22 05:50 pm (UTC):) Но гошечку я так и не знаю. Тут вот забрезжил сейчас Unison.
no subject
Date: 2024-04-22 05:55 pm (UTC)Дайте мне знать если они будут нанимать. Моё количество активных работ постепенно упало с двух до нуля :) Так что я сейчас в активном поиске.
no subject
Date: 2024-04-22 06:20 pm (UTC)Они - это Рунар и Пол. Не знаю, там кто-нибудь ещё участвует или нет.
no subject
Date: 2024-04-22 06:27 pm (UTC)no subject
Date: 2024-04-22 06:29 pm (UTC)Runar Bjarnason, Paul Chiusano. Авторы "красной книги" про функциональную Скалу.
no subject
Date: 2024-04-22 06:33 pm (UTC)Таким большим людям, точно, не будет интересны плебеи (зачёркнуто) "просто программисты", типа меня.
no subject
Date: 2024-04-22 07:04 pm (UTC)Думаю, у них и денег нет. На свои работать.
no subject
Date: 2024-04-22 07:32 pm (UTC)