Yo whatup

  • 0 Posts
  • 104 Comments
Joined 1 year ago
cake
Cake day: September 28th, 2023

help-circle
  • Ah, r/unpopularopinion one of the subs I almost never visited cause 90% of the stuff on there was just plain stupid.

    For my part, I don’t think there’s a large gulf between racist opinions on the two platforms, just on decorum regarding slurs.

    Yeah. I’d probably make the argument that 4chan is just open about the racism while other platforms like reddit have at least some enforcement leading to it being less blatant.


  • I mean like most of us I came from Reddit. If I knew which sub the post was in I’d have a pretty solid opinion but as is I’d assume they probably got downvoted to hell for some unfair reason. Happened to anyone active on occasion so it wouldn’t be surprising. Since it has so many up votes I can’t imagine, without the context of the particular sub, that they weren’t just getting piled on.








  • Yup, libraries should usually let the consumer chose what to do with an error, not crash the program without a choice in the matter. The only real exception is performance critical low level code such as the core of a graphics or audio driver. Though in those cases crashing also often isn’t an option, you just power through and hope things aren’t too screwed up.



  • It’s complicated. Paul isn’t really a good guy, but he’s not really a bad guy either. He’s just a dude. He’s a dude who has limited vision into the future from which he cannot escape. He’s not using his future vision to pick the bad choices he’s trying to pick the best ones he can and the hand he’s dealt kinda just sucks.




  • Smart pointers model ownership. Instead of (maybe) a comment telling you if you have to free/delete a returned pointer this information is encoded into the type itself. But that’s not all, this special type even handles the whole deleting part once it goes away.

    Since they model ownership you should only use them when ownership should be expressed. Namely something that returns a pointer to a newly allocated thing should be a std::unique_ptr because the Callie has ownership of that memory. If they want to share it (multiple ownership of the object) there’s a cheap conversion to std::shared_ptr.

    How about a function that takes in an object cause it wants to look at it? Well that doesn’t have anything to do with ownership so make it a raw pointer, or better yet a reference to avoid nullability.

    What about when you’ve got a member function that wants to return a pointer to some memory the object owns? You guessed it baby raw pointer (or again reference if it’ll never be null).




  • Traister101@lemmy.todaytoMemes@lemmy.mlYes, but
    link
    fedilink
    arrow-up
    1
    ·
    7 months ago

    ReVanced is a modded YouTube (and others) app. IE normal YouTube but you fuck with it locally to skirt what got the original Vanced guys. Adblock, OLED black theme same old thing Vanced provided. I’ve used NewPipe very little but I’d summerise a comparison as ReVanced has better user experience (thanks to Google making the app) and you can sign in/get notifications ect




  • Traister101@lemmy.todaytoProgrammer Humor@programming.devwait what
    link
    fedilink
    arrow-up
    1
    arrow-down
    1
    ·
    edit-2
    8 months ago

    Looking at code on somebody else’s screen is entirely missing the point of using tabs over spaces. The entire point is that mine looks like how I want and theirs looks like how they want even though the file is identical. We can each have wildly different tab width and it’ll look wildly different to each of us when we program. That’s again the point.

    Code formatters are great! I love them. Using tabs over spaces is objectively a better formatting option. One of my favorite features in code formatters is that they’ll swap out spaces to tabs for you insane people who insist on mashing the space bar to indent.