Ad
  • Custom User Avatar

    "Nobody said this was the moral thing to do. It's just an exercise, get over yourself."

    Software has so much potential to change the world for the better, yet I see so many developers doing things that I would consider ethically questionable. (Or, like the two devs who deigned to comment on my post, doing nothing at all, according to their GitHub pages.)

    I think it's important to remind myself that I have a choice in what problems I solve. I'm not saying y'all can't do this exercise if you want to. All I said was that I'm skipping it because I'd never want to expend energy helping a creepy dude sabotage a relationship that he's probably jealous of his friend for having. And if I happen to remind other people that they have a choice in what they work on, cool, but at no point have I tried to tell anyone else what to do, nor will I.

  • Custom User Avatar

    And that's how I learned about Matrix. Thanks!

  • Custom User Avatar

    Being abusive to a friend who is happy in a relationship isn't a problem I want to solve. This is a creepy premise, and I'm skipping it.

    https://images.duckduckgo.com/iu/?u=http%3A%2F%2Fmedia-cache-ak0.pinimg.com%2F736x%2Fe8%2Ff6%2F85%2Fe8f68586c05e9c608bf08efa1daeb752.jpg&f=1

  • Custom User Avatar

    That's a clever use of the #sort_by method.

  • Custom User Avatar

    This may be a one-line solution, but there's too much going on in this one line. I'd recommend breaking it out for readability.

  • Custom User Avatar

    I did something similar, but did .map(&:to_i) for shorthand.

  • Custom User Avatar

    I like that you extracted the duplicate code into its own method. It's a very clear method name as well, so kudos.