https://www.youtube.com/watch?v=LguOA6HS1es
it took this homo multiple DAYS to make a fucking text spinner because he insisted on doing it the """modern""" TDD way
and the solution he ended up with was was fucking terrible
this is what i came up with in ~5 minutes
struct Spinner
{
static constexpr char States[]{'-', '\\', '|', '/'};
std::chrono::milliseconds Speed{ std::chrono::milliseconds{500} };
void Update()
{
thread_local auto firstUpdateTime = std::chrono::system_clock::now();
std::cout << States[ ( (std::chrono::system_clock::now() - firstUpdateTime) / Speed ) % sizeof(States) ];
std::cout << std::flush;
std::cout << '\b';
}
void Clear()
{
std::cout << "\b \b";
}
};
Spinner s;
while(true) s.Update();
s.Clear();
made with 0 testing, 0 refactoring, 0 best practices, and most importantly without some gay modal keyboard typing it on a gay floating anime themed terminal window on some sperg meme linux distro.
Yet im the unemployed one.
I fucking hate women for making the world like this.