True random (based on wind speed) code-golf
Scientist want to create true random number generator. He already wrote a program which gives him a wind speed based on date and location on Earth and multiply this value to -1 pseudo randomly. Help him to generate a true random number in given range
Y...
Rookie of the Year - Challenges
Repost of 2022, 2021, 2020, 2019, 2018.
For the best challenge written by someone who has not written a challenge prior to 2023.
SEDE query (modified from 2022)
Aira Thunberg
nomination by Seggan
Aira has done something extremely rare for a new user. As I write thi...
Thanks for this @Seggan
unfortunately, Aira my friend decided to quit the platform as I was sending her these questions (she is really happy) and she merged her account with mine.
I would still thank you for appreciating her as a woman and her being an angel in my life to help me cope with autism
@RydwolfPrograms i think for something especially functional the patterns that make those useful should be better done some other way, but in and of itself it's not a bad idea to have truthiness
though you also get cases where committing to one behavior might be confusing
or rather, you make choices that you don't necessarily want to make
like, you could make all optionals truthy if non-empty and falsy if empty but you might also want optionals of truthy-able types to also be falsy if the value contained is falsy
though i think the first choice does win pretty hard there and you could also just not make a choice
come to think of it that's actually a pretty good opportunity to just have a function for contains-truthy
which could even generalize to other containers as kind of an any analogue
yeah honestly there probably aren't any real cases where you create any weird contradictions
There's certainly cases where multiple ways of defining truthiness make sense, but I think we're already kind of used to that from dynamically typed languages, so I think as long as it's consistent within the language and the alternative options are easily available it would be fine