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

help-circle
  • After reading a lot of comments in this thread, I’m not sure I know what spaghetti code is. I thought spaghetti code was when the order of execution was obfuscated due to excessive jumps and GOTOs. But a lot of people are citing languages without those as examples of spaghetti code. Is this just a classic “I don’t like this programming language, and I don’t know much about it.” Or is there something I’m missing?


  • stingpie@lemmy.worldtoAutism@lemmy.worldKinda...
    link
    fedilink
    arrow-up
    2
    arrow-down
    2
    ·
    12 days ago

    I don’t understand the perspective that people should be more lazy. When people have lazy coworkers, they tend to suffer since they have to go above and beyond to get a task done. It’s like having a group project in school, and there’s the one guy that just does the bare minimum, so you have to work twice as hard so your grade doesn’t go down.

    And if everyone simultaneously became lazy, that would be a disaster too. You don’t want hospitals or firefighters to suddenly decide they want to just run down the clock instead of doing the best job they can.

    If you look at it only through the perspective of the morality of labor, it makes sense to say the rich are lazy and so it’s fair for the poor to be equally lazy, but when you look at the larger picture, it’s a lot less cut and dry.

    The truth is, our current standard of living is based on the amount of work people do. If everyone suddenly became less productive, we would enter a recession or an economic depression.



  • You always have to package good people with secret shames so suspicious players can gauge how good or evil they are. What people feel they need to hide is a good measure of what they consider acceptable. For example, a lawful good character could be ashamed by ignoring a person asking for help, but a lawful evil character might be ashamed that they indiscriminately murdered adults & children.








  • I typically work backwards from observations of people and extend my conclusions to a logical extreme. Like, people want smart conversational AI that can feel, etc. But they also want AI that can take over the worst jobs and prevent people from suffering through them (like robots displacing child slave cobalt miners). Taking this to it’s logical conclusion, we get a world where people design conscious robots, and force them into slavery in order to displace human slavery.


  • That’s not what I’m saying at all. What I’m trying to say is that I can’t think of any way a program working with numeric types could start outputting string types. I could maybe believe a calculator program that disables exceptions could do that, but even then, who would do that?





  • Honestly, an MCU taking any more time than a couple milliseconds to boot is embarrassing. What exactly is taking so much time to load & set up? The rp2040 can run at 200mhz, and only has ~250 kb of ram. A one second boot up time would be equivalent to filling the entire memory with zeros 66 times. (Using all twelve channels of the DMA) And if you’re talking about setting up the OS, that would be around 800 instructions per byte. It just doesn’t make sense how that much time could be wasted.