• 9 Posts
  • 627 Comments
Joined 1 year ago
cake
Cake day: July 2nd, 2023

help-circle
  • For-loop even number guy can get lost

    I don’t get this. Who cares if they forgot or just didn’t know the better solution? They were able to solve the problem under pressure, even if not in the most optimal way. They even remembered to handle the negative case, which is straight up a good sign (no pun intended). And while it’s slow, it would honestly still be fine to use in production anywhere you’d use typescript, as long as it’s not in a hot spot.

    In my mind this tells me approximately as much about the programmer as if they wrote it using modulo.


  • On the array sort…that is clever but it doesn’t return those values to something you can use; it just sorts them on screen. I respect the cleverness, but yeah, not useful.

    This is not the reason it isn’t useful. The function could just as easily modify an array as print; you could also keep a list (or an atomic integer if that functionality is available) of which have been sorted and spin until it shows that every member has been sorted. Taking n milliseconds to sort an array whose highest element is n, with the cost of all of the thunks, plus the potential for a (very rare) race condition… not so great.

    Regardless, I’d hire either of these programmers if there weren’t red flags elsewhere.









  • First, it’s OK to not cook. If you are getting by alright without cooking, there’s nothing wrong with that.

    Second, I respect you coming here and admitting your fear. Ironically it takes a lot of bravery to do that!

    Third, irrational fears and anxieties are a normal part of the human experience. Everybody has them, so though it can feel like you’re being stupid, you’re really just being human (though some might say that’s two ways of saying the same thing).

    Fourth, I’m not a therapist or medical professional but the treatment for phobias I am aware of are CBT (cognitive behavioral therapy), ACT (acceptance and commitment therapy), and exposure therapy. You can find CBT and ACT workbooks that might be helpful. As for exposure therapy, I think it’s best to work with a professional doing that. Exposure therapy is not just taking the plunge, there’s a process to it. Of course, if you can afford it, talking to a mental health professional is always best.

    Good luck!











  • Even if his quote was historically accurate, it would still be abhorrent. And if you pointed out his mistakes, he wouldn’t have reconsidered his views. He didn’t hate Jewish people because he incorrectly thought they were cowards, he incorrectly thought they were cowards because he hated them.

    none were reasons that merits killing jews

    Yes, because there is no reason that merits killing anyone based on their ethnicity.