Open Menu
AllLocalCommunitiesAbout
lotide
AllLocalCommunitiesAbout
Login

Anon is a linguist

⁨241⁩ ⁨likes⁩

Submitted ⁨⁨1⁩ ⁨day⁩ ago⁩ by ⁨alias_qr_rainmaker@lemmy.world⁩ to ⁨greentext@sh.itjust.works⁩

https://lemmy.world/pictrs/image/ea9a415b-840b-4294-bac3-dbfdd43cb55b.png

source

Comments

Sort:hotnewtop
  • FinjaminPoach@lemmy.world ⁨4⁩ ⁨minutes⁩ ago

    Actually this is why I find python so hard. Might need to refer to his teachings

    source
  • Jankatarch@lemmy.world ⁨33⁩ ⁨minutes⁩ ago

    It is kinda funny we spent all these milleniums turning english into a less-debatable notation called “math” to write algorithms in, only to then reverse that and get stuff like vibe-coding

    source
    • alias_qr_rainmaker@lemmy.world ⁨18⁩ ⁨minutes⁩ ago

      vibe coded algorithms probably won’t be the way your boss wants them coded but they still work. and i don’t code for a living so i’m just like <shrug>

      source
  • Tetragrade@leminal.space ⁨5⁩ ⁨hours⁩ ago

    Javascript users be like.

    try {
        mysteryBox?.open?.();
    }
    catch() {
        console.error("fuck");
    }
    

    Rust users be like.

    let discord_kitten = femboys
        .iter()
        .map(|b| Bottom { thigh_highs: true, ..*b })
        .filter(|b| b.girth<5.0)
        .reduce(|top,b| top %= b);
    

    C# users be like.

    // from the Unity turoial IDK what this does
    RegistrationHandler.SingletonInjectionHandler.InjectSingleton<IInjectedSingleton>(new InjectedSingleton(RegistrationHandler.SingletonInjectionHandler.SingletonType.Player));
    
    source
  • renzhexiangjiao@piefed.blahaj.zone ⁨1⁩ ⁨day⁩ ago

    to me method names are imperatives, like when we order the dog to walk.

    dog.walk() = “Dog, walk!”

    source
    • Camille_Jamal@sh.itjust.works ⁨7⁩ ⁨hours⁩ ago

      I don’t python, but I know there’s tons of ()

      why is there so much () and other empty brackets?

      source
      • yetAnotherUser@discuss.tchncs.de ⁨6⁩ ⁨hours⁩ ago

        It’s calling a function without a parameter.

        You know how in math you had something like:

        f(x) = x²

        Not all functions need parameters though. The function:

        f(x) = 2

        does not even use the provided x! So just leave it out:

        f() = 2

        Similarly, you could give a function two parameters:

        f(x, y) = x + y

        Programmers use functions to primarily organize their code. Otherwise it would get very unreadable very quickly. Those function are usually a bit more complicated than a single line, like.

        Dog.walk() would call the walk() function of “Dog”. Some valid code could be:

        Dog.walk()
        wait(10)
        Dog.stop()
        

        This code would make the dog walk for 10 seconds assuming every function used is actually defined somewhere.

        source
    • alias_qr_rainmaker@lemmy.world ⁨1⁩ ⁨day⁩ ago

      i know that’s how you’re supposed to read it…and guess what…it’s wrong

      source
      • JackbyDev@programming.dev ⁨3⁩ ⁨minutes⁩ ago

        How do you tell a dog to walk? “Dog, walks!” or “Dog, walk!”

        source
      • Tetragrade@leminal.space ⁨5⁩ ⁨hours⁩ ago

        Image

        source
      • Camille_Jamal@sh.itjust.works ⁨7⁩ ⁨hours⁩ ago

        Elaborate?

        source
  • fibojoly@sh.itjust.works ⁨1⁩ ⁨day⁩ ago

    It’s not theDog.walks(), it’s 狗.走() Conjugate this you anglocentrist fuck!

    source
    • farting_gorilla@lemmy.world ⁨6⁩ ⁨hours⁩ ago

      狗。走。了()

      There you go, you canine-centric bastard

      source
    • Camille_Jamal@sh.itjust.works ⁨7⁩ ⁨hours⁩ ago

      HAHAHAHA

      I love how evil this is

      Don’t speak any chinese languages (or is that japanese?) but I do know that most words don’t have a direct translation to english

      HAHAHAHHAHAHAHAHAAAAAAAA I’M STEALING THAT IDEA!

      I’m forced to learn french because I’m in canada, so if I get corrected I can chuck a phrase of similar meaning with no direct translation

      God I love doing stuff like this

      source
    • alias_qr_rainmaker@lemmy.world ⁨23⁩ ⁨hours⁩ ago

      does chinese code take up less space? wait how many bytes does it take to encode a chinese character? is it just UTF-8 or is it something else

      source
      • fibojoly@sh.itjust.works ⁨22⁩ ⁨hours⁩ ago

        UTF-16 is fine for the cat majority of Chinese characters. It has been standard since 2008 for C++ (at least for code that wants to be running on windows; Microsoft moved everything to w_string back then).
        C# uses UTF-16 natively for strings.
        Dunno about other languages

        source
  • BleakBluets@lemmy.world ⁨1⁩ ⁨day⁩ ago

    Code I review be like:

    Buffalo_buffalo::buffaloBuffalo.buffalo(Buffalo.buffalo)
    

    p.s. I’m on mobile and this is a shitpost. I did not put a lot of thought into this code. Feel free to suggest a more accurate representation.

    source
    • alias_qr_rainmaker@lemmy.world ⁨22⁩ ⁨hours⁩ ago

      buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalobuffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalobuffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo buffalo

      that’s ruby

      source
    • Bosht@lemmy.world ⁨1⁩ ⁨day⁩ ago

      NoIDontThinkIWill.gif

      source
  • rtxn@lemmy.world ⁨1⁩ ⁨day⁩ ago

    [lady for lady in ladies if lady.is_single] just doesn’t have the same bop.

    source
    • alias_qr_rainmaker@lemmy.world ⁨1⁩ ⁨day⁩ ago

      list comprehensions aren’t changed much. but a statement like dog = Dog(name=“fido”) is transpiled to the dog is now a Dog with name ‘fido’

      the language uses backticks for strings. it handles nested stringly nicely because of it

      source
    • lemmyman@lemmy.world ⁨1⁩ ⁨day⁩ ago

      Can I just say that as someone who only codes tangentially to my work, code and documentation that uses the same word 2 or 3 times in an expression, when they mean different things, is such an immense pet peeve lf mine when learning something new.

      object Object(object);

      Statements dreamed up by the utterly deranged.

      source
      • rtxn@lemmy.world ⁨1⁩ ⁨day⁩ ago

        That’s just Python’s generator syntax. Not all that difficult to parse once you get a feel for it. Plus syntax highlighting helps.

        [OUTPUT_ITEM for INPUT_ITEM in INPUT_ITERABLE if CONDITION]
        
        source
  • jaykrown@lemmy.world ⁨14⁩ ⁨hours⁩ ago

    Why are you using Python instead of Rust.

    source
  • iAmTheTot@sh.itjust.works ⁨1⁩ ⁨day⁩ ago

    fuckoing

    source
    • alias_qr_rainmaker@lemmy.world ⁨1⁩ ⁨day⁩ ago

      meh, close enough

      source
      • Camille_Jamal@sh.itjust.works ⁨7⁩ ⁨hours⁩ ago

        I’m sorry, but I can’t take you seriously if you critique something out of your area of expertise OR if you are correcting language and you, yourself, mess up.

        If how python works is not close enough to english for op, why is “fuckoing” close enough?

        PYTHON ISN’T EVEN MEANT TO FOLLOW ALL ENGLISH RULES???

        source
  • lauha@lemmy.world ⁨1⁩ ⁨day⁩ ago

    I would imagine the class would be aDog and when you instantiate it the variable would be theDog.

    source
    • green_copper@kbin.earth ⁨13⁩ ⁨hours⁩ ago

      theDog sounds more like a reference to a singleton than one of many instances. I think thisDog fits better.

      source
    • alias_qr_rainmaker@lemmy.world ⁨1⁩ ⁨day⁩ ago

      “the dog” maps to dog, the = maps to “is now”, and Dog() maps to “a dog”, and (name=“Dog name”) maps to “with name dog name”

      So no, you’re wrong, lmao

      I’ve already written the transpiler

      source
  • m0darn@lemmy.ca ⁨1⁩ ⁨day⁩ ago

    I feel like I’m walking into a trap here but:

    This pedant is using an adjective as an adverb.

    (…)you don’t conjugate your verbs right.

    source
    • alias_qr_rainmaker@lemmy.world ⁨23⁩ ⁨hours⁩ ago

      right is informal american english for “correctly”. i don’t give a shit about prescriptive rules of grammar, they’re all bullshit. every last rule was created by some holier-than-thou pedant. i’m only interested in descriptive rules, i.e. grice’s maxims (the thing that finally made me understand how to get over my autism)

      source
      • m0darn@lemmy.ca ⁨1⁩ ⁨hour⁩ ago

        Honestly I agree, I only pointed it out because of the irony of a pedant insisting others ought to use words according to their formal definitions while misusing formal English.

        “Right” is a bad word to end a sentence with

        “Right” is a bad word with which to end a sentence because it can be mis-parsed as as an invitation to agreement.

        source
      • Camille_Jamal@sh.itjust.works ⁨7⁩ ⁨hours⁩ ago

        (the thing that finally made me understand how to get over my autism)

        What do you mean get over your autism? You’re still autistic, you may have gained social skills or something similar, but you’re still autistic.

        <gen> also idgaf how incorrect my grammar and spellings are as long as it’s readable </gen>

        also I use tone indicators kinda like HTML tags because I find they help me more that way, so they might help someone else more that way.

        I do not care if you use formal, informal, american, canadian, australian, british, or a different english than any of those, as long as what you’re saying is comprehensible

        source
      • deadbeef79000@lemmy.nz ⁨21⁩ ⁨hours⁩ ago

        grice’s maxims

        usingenglish.com/…/grices-conversational-maxims.h… for those, like me, who did not know what Grice’s Maxims are. It’s a short read.

        source
        • -> View More Comments
  • Feyd@programming.dev ⁨1⁩ ⁨day⁩ ago

    en.wikipedia.org/wiki/Larry_Wall

    source
    • alias_qr_rainmaker@lemmy.world ⁨1⁩ ⁨day⁩ ago

      perl is garbage and larry wall is barely fluent in english. that man does NOT know how to name things.

      source
      • bus_factor@lemmy.world ⁨1⁩ ⁨day⁩ ago

        With the Lingua::Perligata module you can write your perl in Latin instead. My coworker says it’s more readable that way if you know Latin.

        source
        • -> View More Comments
  • einlander@lemmy.world ⁨1⁩ ⁨day⁩ ago

    And that brings us back to BASIC.

    source
  • EldenLord@lemmy.world ⁨1⁩ ⁨day⁩ ago

    That Pepe is cursed

    source
    • Camille_Jamal@sh.itjust.works ⁨7⁩ ⁨hours⁩ ago

      I forgot about it for a few minutes when going through comments.

      I just fucking EXPLODED when I saw it again lmao

      source
  • DickFiasco@sh.itjust.works ⁨1⁩ ⁨day⁩ ago

    Cunning linguist, he he. I wonder if they’re friends with Colonel Angus.

    source
  • Philharmonic3@lemmy.world ⁨1⁩ ⁨day⁩ ago

    Fuckoing

    source