• 0 Posts
  • 72 Comments
Joined 2 years ago
cake
Cake day: June 13th, 2023

help-circle


  • I think this is just a picky optimization.

    The first one runs the constructor to instantiate a new string, then gets its class (which is presumably a static property anyway). The second doesn’t have to run any constructor and just grabs the static class name from the type.

    Maybe there’s more implementation nuance here but it seems like an opinionated rule that has zero effect on performance unless that code is being called thousands of times every second. And even then the compiler probably optimizes them to the same code anyway.




  • A full stack developer is either a back end developer that has no business writing front end code but does it anyway, or they’re a front end developer that has no business writing back end code but does it anyway.

    Or they’re perfectly capable of doing both because they’re at a startup that’s years away from running at scale or having to worry about performance and security.


  • I think I’m at my wit’s end with “smart” things.

    Roomba? It takes less time to just vacuum the place than it does for the fucking vacuum to realize it’s been humping the same chair leg for most of its battery charge.

    Assistants?

    “Hey Google, open the bedroom blinds”

    “Sorry, that device hasn’t been configured yet”

    “Hey Google, open the bedroom blinds”

    “Sure, turning 2 lights on”

    “Hey Google, open the bedroom blinds”

    “Sure, opening the blinds”


  • I was coming around a bend on a really wide, “gentle“ road behind a business park. It had no cars parked on the street and was wide open with little traffic.

    Come around the corner and see, right in the middle of the road, a driving school car flipped on its roof. No other cars around, no hazards. Just a perfectly placed car on its head, even pointed down the road as though some movie prop guys had installed it.

    Standing beside it was a very bored and sad looking cop directing traffic. I think he was tired of every passing car taking a picture as they drove by.


  • My apartment complex has a Facebook group that serves the same purpose. It’s kind of a mess.

    Last week someone posted their security camera footage showing some homeless guy (in his-vis) casing their patio. The neighborhood watch quickly confirmed this scumbag had been poking around the property for days. A police report was created. People went out looking for him.

    A couple hours later, the maintenance guy replies to the thread saying the guy is a contractor fixing damaged decks. There are signs up everywhere about it. People got email notifications. And yet they still found a way to create a panic and also waste the cops’ time.

    Any time there’s a “popular” thread in that group, it’s always something like that.

    My advice is to never join any online community with your neighbors. It’ll just scare you by how fucking stupid the average person is.








  • The universal problem is that there’s no shared definition of what a downvote represents. Is it “this is spam and should be removed”? “I don’t like this”? “This doesn’t belong here”? “I want to see less of this”? “I disagree”?

    That’s not even a Reddit problem - it’s innate to any social media voting apparatus. Extend it to Facebook, even. Does the laugh reaction mean I’m laughing with you or at you?

    Most comments and posts I’ve downvoted have been because I accidentally swiped too far right and my upvote changed to the downvote action and I didn’t even notice. So those downvotes don’t even mean anything!

    I think the right answer is to stop worrying about votes. Even if they all mean the same thing they’re still meaningless. It’s better to change your post and comment sorting setting than to try to social engineer a way out of it.





  • The most common thing I’ve seen are projects where it acts like a screen or control panel on the wall. Something that’s a fixture or art project.

    You don’t need it for anything like music or games - your new phone will be more convenient and run those things better anyway.

    A friend of mine stuck an old tablet on the wall and connected it via Bluetooth to his keg system. It gave him a permanent status readout on his beer temperature and how much was left in each keg. It just had a power cable plugged in all the time so it didn’t need to be charged.