Ancestors

Toot

Written by Henrik Jernevad on 2024-12-04 at 21:31

Thankfully this is not production code. 😄 #adventofcode #kotlin

=> View attached media

=> More informations about this toot | More toots from henrikjernevad@mastodon.social

Descendants

Written by samir, a very hard worker on 2024-12-04 at 21:44

@henrikjernevad Correct. This is much, much better than most production code.

TBH, I think this is absolutely fine. Perhaps you’d want a big comment explaining the requirements at the top (or put it in a test case),

=> More informations about this toot | More toots from samir@functional.computer

Written by Henrik Jernevad on 2024-12-04 at 22:07

@samir Hehe, I guess you're right. Maybe it's just that I don't solve these kinds of problems for a living. 😁

=> More informations about this toot | More toots from henrikjernevad@mastodon.social

Written by Gabriel Pettier on 2024-12-04 at 22:03

@henrikjernevad I'm happy i managed to make it into a loop, but yeah, same idea, you just unrolled it by hand 😆

=> View attached media

=> More informations about this toot | More toots from tshirtman@mas.to

Written by Henrik Jernevad on 2024-12-04 at 22:10

@tshirtman Yeah, i thought of doing something like your solution. It seems more elegant. This was just the first that came to my mind. 😊

=> More informations about this toot | More toots from henrikjernevad@mastodon.social

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113596686447529304
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
777.240771 milliseconds
Gemini-to-HTML Time
0.864202 milliseconds

This content has been proxied by September (3851b).