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

help-circle

  • Yeah vaping will have its time. I bet they’re already sitting on evidence that it fucks you up.

    Prohibition does work very well for kids though. Most people start young as when you’re older you know the issues.

    So they are keeping it for people already exposed and trying to stop younger people starting in the first place.

    They raised the age to 18 when I turned 16 and it dramatically cut the amount we had access to.

    It’s not like the old alcohol probation. Plus smoking isn’t even fun like drinking. It’s just gross and bad for your health. And most people don’t drink because of addiction. It’s a different kettle of fish.

    But they should be doing the same for vaping.










  • The reason is the vast majority of places use c# to avoid this stuff. So performance is often not the first priority

    The complexity it adds takes away from the readability and maintainability. Which is often the priority.

    But in a hot path where you need optimization these are a good send as previously you had to use raw pointers and completely side step all the safety of the language.

    I would say 90% of c# developers will never touch these. It’s more for library and framework writers.

    I believe most of these features are driven by what the Microsoft Devs need to write asp.net and EF.







  • Tbh as an experienced programmer I knew exactly what it was straight away. And I don’t know rust. I would imagine the others are similar.

    The reason that example is simpler is because JSON is literally JavaScript Object Notation.

    It’s also not the same thing. HashMap have type parameters. So you can only add strings to that HashMap whereas you can add anything in js. Does that code even compile?

    You can also do “text”.to_string() which simplifies it more.

    I feel you’re quite inexperienced and once you do more in different languages you’ll begin to realise why things are like this.

    Rust is a compiled language with static typing so these things are required for the compiler to do its job.

    It’s also a performance focused language and would blow ts/js out of the water completely on that metric.

    Languages are just tools and they all have advantages and disadvantages. You use the right tool for the job.