Ivan “CLOVIS” Canet
banner
ivcanet.bsky.social
Ivan “CLOVIS” Canet
@ivcanet.bsky.social
320 followers 230 following 810 posts
Kotlin developer & teacher @ 4SH, learn more about me: ivan.canet.dev Open source at https://opensavvy.dev • @opensavvy.techhub.social.ap.brid.gy Organizing the Kotlin Bordeaux User Group at https://bordeauxkt.io
Posts Media Videos Starter Packs
Do you think there's a max inline depth in Kotlin?
“My happy marriage”

> 2 seasons
> not married
Bluesky compression was not nice with this one :/

You can find high-resolution Mokodee here: gitlab.com/opensavvy/kt...
gitlab.com
I love Java dates

This code fails with
```
UNEXPECTED SERVER ERROR:
Invalid value for MonthOfYear (valid values 1 - 12): 0
```
idk, the scene with dead frogs falling from the sky is forever burned in my memories
That was such a weird movie. I've seen it so many times as a child, it's a very strange memory
Don't hesitate to fork mine, it's in Kotlin itself 👀
Yeah I understand why old people are always complaining about computers not working right

It's actually impressive how bad we are at everything
IntelliJ you're tired, go to sleep
Reposted by Ivan “CLOVIS” Canet
anyways as always tapping the "learned helplessness is a disease" sign. you must never resign yourself to stagnation and rot of mind, body, or soul
i was talking about it with a friend earlier trying to clarify my thoughts because i often say learned helplessness is a disease which i feel like is a core part of my politics in that to me the human condition is action, growth, and change, so stagnation is self-dehumanization, which is very bad!
SEO work is starting to pay off somewhat
Thanks for the links! I updated my article to link to yours too.
Reposted by Ivan “CLOVIS” Canet
I've written a small blog post about how context parameters change API design in Kotlin serranofp.com/blog/context...

Feedback and discussion is more than welcome!
Context parameters and API design
serranofp.com
No, because the receiver of 'write' is the writer, so using xxx.write() is forbidden, xxx has to be added to the scope
Looking at it even more, it's very easy to me to provide a convenience function for 'writeTo' that does the receiver dance, and I think it leads to a better API overall, so 'writeTo' should say as it is
Hm actually, looking at usages, it would be convenient if 'writeTo' was a receiver too…

…but then that becomes an overload issue, since they'd both have the same signature 😮
'write' is more convenient if receiver-based because it is implemented in many places

'writeTo' is only ever called externally, so I think it makes more sense to keep the explicit parameter