• Johanno@feddit.org
    link
    fedilink
    arrow-up
    1
    ·
    3 months ago

    The language is as important as architecture and stuff.

    Pick the right language for the right task.

    Performance? Don’t use python.

    Everything else? Use python because everyone does.

    /s

  • AldinTheMage@ttrpg.network
    link
    fedilink
    arrow-up
    0
    ·
    3 months ago

    That’s why we use JavaScript on the front end, JavaScript on the back end, and you can streamline it even more by using JavaScript for the db layer too. After all, if you have too much data to be reasonably parsed in a single .json file, you are probably just architecting wrong.

      • Lucy :3@feddit.org
        link
        fedilink
        arrow-up
        0
        ·
        3 months ago

        Average Rust code:

        macro_rules! sum {
            ( $initial:expr $(, $expr:expr )* $(,)? ) => {
                $initial $(+ $expr)*
            }
        }
        
        fn remove_prefix<'a>(mut original: &'a str, prefix: &str) -> &'a str
        
        let mut up = 1;
            'outer: loop {
        

        Hell I don’t want to know what you define as ugly then.

  • Gonzako@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    3 months ago

    I like using python just cuz I can quickly get it working. I wish I had the time to undust C and try getting that to do what I want but my work cares more about iteration and speed to implement than speed of the program itself.

    • Damarus@feddit.org
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      3 months ago

      Python has many great aspects, unfortunately it’s missing strong static typing.

      • jjjalljs@ttrpg.network
        link
        fedilink
        arrow-up
        0
        ·
        3 months ago

        Most of the code at my current job doesn’t even have the optional type annotations. You just see like def something(config). What’s config? A dict? A list? A string? Who the fuck knows.

        Unfortunately most of the developers seem to have a very pre-modern take on programming and aren’t interested in changing anything.

  • Digit@lemmy.wtf
    link
    fedilink
    English
    arrow-up
    0
    ·
    3 months ago

    But, Haskell…, it’s so well thought out, so evolved, the best of all functional programming in one, the ability to handle infinite lists, the lazy evaluation, the strict type checking, the compiler that catches whole classes of bugs, the curt syntax, the ability to breathe it like pure thought, the clarity like maths…

    Okay, sorry, I better leave the room too.

  • AnarchoSnowPlow@midwest.social
    link
    fedilink
    arrow-up
    0
    ·
    3 months ago

    Programming languages, much like the jackass in the middle, are tools. Different tools are for different things. The right tool for the job can make your day. The wrong tool can make you question your entire career.

      • MotoAsh@piefed.socialBanned
        link
        fedilink
        English
        arrow-up
        0
        ·
        3 months ago

        A tool of a person is a fool who is being used by someone else. They might not be useful to you, but to who ever makes the koolaid they’re drinking, they’re a very good tool.

        • CanadaPlus@lemmy.sdf.org
          link
          fedilink
          arrow-up
          0
          arrow-down
          1
          ·
          3 months ago

          I think that’s the basic idea, but in practice it’s used for people who are just generally dumb as well.