also I just realized that Brazil did NOT make a programming language entirely in Spanish and call it “Si” and that my professor was making a joke about C… god damn it

this post is probably too nieche but I feel like Lemmy is nerdy enough that enough people will get it lol

  • squaresinger@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    15 hours ago

    Makes sense what you are saying.

    When it comes to programming languages, I like to think of them as tools for a job. All languages have advantages and downsides.

    For server software Java is by far the best (especially if it’s supposed to scale). For web frontends it’s TypeScript. For very simple scripts that mostly call other tools it’s bash. For more complex scripts, non-performance-critical data processing and small projects it’s Python. For microcontroller work, C. For working on more performant microcontrollers C+Lua. For tests Groovy is surprisingly helpful. For game development GDScript or whatever your chosen environment supports.

    The rest is just syntax. It doesn’t really matter whether I use curly braces or indentation.

    I do like the old if-endif block style, but sadly that doesn’t really exist in mainstream languages anymore. Lua is the only thing that’s kinda similar, but they only use “end”, negating the advantage of being able to easier see where the “for” ends in a sea of “ifs”.

    I guess bash does something similar too, but “fi” and “esac” really break my fingers (and then they don’t even do “elihw”).