• 3 Posts
  • 462 Comments
Joined 3 年前
cake
Cake day: 2023年7月1日

help-circle





  • Wirlocke@lemmy.blahaj.zonetoProgrammer Humor@programming.devOOP at home:
    link
    fedilink
    arrow-up
    6
    arrow-down
    1
    ·
    edit-2
    1 个月前

    I’ve moved away from Classes in general unless it truly makes code more streamlined. The main language I was taught in highschool was Java and it’s just so liberating not needing to turn everything into an object.

    But recently I’ve used a Class specifically for Inheritance. I’m making an extension to Pytorch and almost everything in Pytorch uses Tensors as a medium. I made a new kind of tensor that inherits the Tensor class to add specific restrictions on how it behaves. Because of this, this new tensor object can be used with any of the preexisting pytorch functions while also validating the results, reverting to a Tensor if it becomes invalid.

    Even in this situation though, all my programming logic rests in it’s own static functions, and the class contains functions that call the static version. The only actual logic the inherited object handles is validating the data.

    Because of this, I feel like inheritance is most useful when you’re inheriting someone else’s code to make it compatible with their library. I don’t think I’ll ever inherit my own objects because that’s how you end up with Java.


  • Wirlocke@lemmy.blahaj.zoneto196@lemmy.blahaj.zoneRule
    link
    fedilink
    English
    arrow-up
    5
    ·
    edit-2
    1 个月前

    I’m not so worried about how tiny we are as much as I’m worried how small the max speed of mass is (speed of light). If space warping drives end up impossible then the vast majority of what you can see at any position in the universe is already unreachable for that observer. Viewing eternity through onesided glass.












  • I’m not sure what you mean, I don’t think I’ve seen a single isekai protag try to go back to Earth unless you count the “trapped in VR” ones.

    I’m always a little disappointed by how quickly the regular world becomes irrelevant in the story. The intrigue is from how a person from a modern nonmagical culture interacts with a medieval magical culture.

    But from the isekais I’ve seen, I’d say you could replace half of them with a person with amnesia and nothing would change.


  • Wirlocke@lemmy.blahaj.zoneto196@lemmy.blahaj.zoneJar opener rule
    link
    fedilink
    English
    arrow-up
    58
    arrow-down
    2
    ·
    edit-2
    1 个月前

    I’m assuming they are a trans girl, so the mom saying she needs “a man’s help” was misgendering her. OP basically affirmed that because they are not a man they cannot help and gave back the jar unopened. Given the pettyness one can assume that the mom misgendering OP is a frequent occurrence.