First time I've heard about "hedonic treadmill". Found a little bit of information about the concept, very interesting, but can't seem to find a similar concept/translation in spanish.
84 karma · joined July 8, 2019
public static List<int> Sieve(int n)
{
bool[] arr = Enumerable.Range(0, n).Select(i => true).ToArray();
Enumerable
.Range(2, (int) Math.Sqrt(n) - 2)
.ToList()
.ForEach(i => { if (arr[i]) Enumerable.Range(0, (n - (i * i)) / i).ToList().ForEach(j => arr[j * i + (i * i)] = false); });
return arr.Select((b, i) => b ? i : 0).Where(i => i > 0).ToList();
}"The compiler is written in TypeScript, but don't let that put you off — it's basically just JavaScript with type annotations."
https://zpbappi.com/curiously-recurring-template-pattern-in-...
Spot on! Great analogy.
If you feel like this is happening, it is time for a change.
Thanks for that, made me reflect on how stupid it sounds but how common it is.