• 0 Posts
  • 138 Comments
Joined 2 months ago
cake
Cake day: July 29th, 2024

help-circle




  • The problem with dynamic typing is you can’t always figure out what the type is even with investigation as it can be lots of things based on what is passed or returned. It also allows incorrect values to be passed.

    People will indeed make that readability argument but if the type is not obvious and important to understanding the code then it likely shouldn’t be used there.


  • auto isn’t dynamic typing it’s just type inference. It still has a fixed type you just don’t have to write it. Like var in C#.

    Lambdas are just a way of defining methods in place. It has nothing to do with callbacks.

    But you’re spot on for memory safety. Managing it yourself is risky and if it can be managed at zero cost it seems stupid not to.




  • GetOffMyLan@programming.devtoMemes@lemmy.mlMiss me with that doomer shit
    link
    fedilink
    arrow-up
    7
    arrow-down
    2
    ·
    edit-2
    6 days ago

    There’s loads of options.

    Plenty of science that could potentially save us if invested properly.

    Lab grown meat. Carbon capture. Using said carbon capture for building materials. Nuclear fusion. Outer atmosphere energy generation. Etc.

    There’s also cutting back on our consumerism.

    Once it gets bad enough that it affects the super rich the world’s governments will miraculously and quickly act as one.


  • There’s a trend of blaming all mistakes on autism. It’s kind of like a nothing is my fault type thing. People I know with autism definitely do it sometimes but I get the feeling many people who don’t have it do it as well.

    My son went through a similar phase recently where he decided he believed in God but he only used it to blame everything on God.

    So he’d trip up and say “Thanks God!”.