• argh_another_username@lemmy.ca
    link
    fedilink
    arrow-up
    30
    ·
    6 days ago

    I worked with one of the authors of the Brazilian SQL. It was exactly what it looks, every reserved word translated to Brazilian Portuguese.

    • fibojoly@sh.itjust.works
      link
      fedilink
      arrow-up
      3
      ·
      5 days ago

      Oh shit, I’d never get anything done, as I’d imagine my lovely friend’s accent reading this shit out. Selecione * de tbl_minha-tabela onde nome não é nulo Hahaha! I love it!

      • argh_another_username@lemmy.ca
        link
        fedilink
        arrow-up
        2
        ·
        5 days ago

        That reminds me, I had to modify a program written in VB once. The guy who created it wrote every table, every column, every view in Portuguese, WITH ACCENTS! It works, we simply have to put everything between brackets, but it doesn’t add anything to clarity. It looks awful and seems pedantic.

  • dick_fineman@discuss.onlineBanned
    link
    fedilink
    arrow-up
    6
    ·
    4 days ago

    I prefer to code by yelling at Chat GPT, copy-pasting to Grok, telling Grok Chat GPT said it couldn’t write cleaner code, then going back and forth between the 2 with fake insults from the other until one declares a Jihad on the other. I think it’s called “vibe coding”.

  • palordrolap@fedia.io
    link
    fedilink
    arrow-up
    22
    arrow-down
    3
    ·
    6 days ago

    Pretty sure druckef should be drucked. printf means print (to) file. “File” is valid German, but it is non-standard and “Datei” seems to be the preferred form.

    I could also argue that that d should be capitalised, but I’m already overstepping my bounds considering I know very little German.

    I wouldn’t want to say which should take precedence between C’s preference for all-lowercase keywords and functions and German’s Rule to capitalise all Nouns.

    • A_norny_mousse@feddit.org
      link
      fedilink
      arrow-up
      11
      ·
      6 days ago

      DDP has the following data types: Zahl (long), Kommazahl (double), Buchstabe (char), Text (string), Wahrheitswert (bool) und Listen (list)

      Gottimhimmel, that would drive me crazy, and I’m German.

      The code screenshot is pretty nice though. Actual grammar in there, full sentences that “Goethe would be proud of”.

    • Yaky@slrpnk.net
      link
      fedilink
      arrow-up
      13
      ·
      5 days ago

      Why? Programming language isn’t a natural language. In fact, I think not knowing English makes it easier, since you cannot attach any preconceived notions, assumptions, or word order to keywords. I learned some Pascal, Visual Basic and whatever GameMaker used at the time without being fluent in English.

    • MrScottyTay@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      4
      arrow-down
      1
      ·
      5 days ago

      Foreign? For some these languages are native. Foreign is relative.

      (I’m just being pedantic, i understand that relatively to you - and me - this is foreign)

  • vrighter@discuss.tchncs.de
    link
    fedilink
    arrow-up
    2
    ·
    4 days ago

    you need to compile c with a c++ compiler to be able to define macros for keywords iirc. But I did do this once to translate c to my native language, Maltese. It was cursed

      • schnurrito@discuss.tchncs.de
        link
        fedilink
        arrow-up
        5
        ·
        5 days ago

        It doesn’t fit very well in this context, the idea behind “beinhalten” is that the subject “includes” the object (i.e. the object is part of the content of the subject), but the #include command in the C preprocessor isn’t about describing that kind of situation, it’s a command “I want to include one file in another”, a better verb in German for that is “einbinden”. (I realize this isn’t a very good explanation, but I’m a native speaker of German and can tell you that no one would use the verb “beinhalten” in this context.)

        The previous commenter’s German teacher likely prefers “enthalten” instead of “beinhalten”, which has the same problem in this context though.

      • ornery_chemist@mander.xyz
        link
        fedilink
        arrow-up
        2
        ·
        5 days ago

        Maybe incorrect rebracketing? It’s supposed to be be-inhalten, not bein-halten. Otherwise maybe a writing style thing…

    • boonhet@sopuli.xyz
      link
      fedilink
      arrow-up
      4
      ·
      5 days ago

      I must be old because I remember that as being the standard form until Java popularized

      <visibility> <static?> <type> <name> {
      

      I mean I’m not that old, but I was reading more C and C++ books and tutorials when I was a kid, because “ew Java”