this post was submitted on 13 Dec 2025
169 points (96.7% liked)

Greentext

7454 readers
721 users here now

This is a place to share greentexts and witness the confounding life of Anon. If you're new to the Greentext community, think of it as a sort of zoo with Anon as the main attraction.

Be warned:

If you find yourself getting angry (or god forbid, agreeing) with something Anon has said, you might be doing it wrong.

founded 2 years ago
MODERATORS
 
all 30 comments
sorted by: hot top controversial new old
[–] renzhexiangjiao@piefed.blahaj.zone 33 points 15 hours ago (1 children)

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

dog.walk() = "Dog, walk!"

[–] BleakBluets@lemmy.world 20 points 10 hours ago* (last edited 10 hours ago) (2 children)
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.

[–] Bosht@lemmy.world 4 points 10 hours ago

NoIDontThinkIWill.gif

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

[–] rtxn@lemmy.world 18 points 16 hours ago (2 children)

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

[–] alias_qr_rainmaker@lemmy.world 7 points 16 hours 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

[–] lemmyman@lemmy.world 1 points 10 hours ago* (last edited 10 hours ago) (1 children)

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 of mine when learning something new.

I'm already struggling with everything else about it, and now I have to parse out which lady is which and what the hell each one is supposed to be

object Object(object = object);

Statements dreamed up by the utterly deranged.

[–] rtxn@lemmy.world 2 points 10 hours ago* (last edited 10 hours ago) (1 children)

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_EXPRESSION for ITEM in INPUT_ITERABLE if CONDITION)
[–] ryannathans@aussie.zone 1 points 10 hours ago

it's list comprehension syntax, not generator syntax

[–] fibojoly@sh.itjust.works 17 points 9 hours ago* (last edited 9 hours ago) (1 children)

It's not theDog.walks(), it's 狗.走()

Conjugate this you anglocentrist fuck!

[–] alias_qr_rainmaker@lemmy.world 3 points 2 hours ago (1 children)

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

[–] fibojoly@sh.itjust.works 1 points 1 hour 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

[–] iAmTheTot@sh.itjust.works 15 points 14 hours ago (1 children)
[–] alias_qr_rainmaker@lemmy.world -2 points 14 hours ago

meh, close enough

[–] Feyd@programming.dev 8 points 16 hours ago (1 children)
[–] lauha@lemmy.world 8 points 12 hours ago (1 children)

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

[–] alias_qr_rainmaker@lemmy.world -1 points 12 hours 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

[–] m0darn@lemmy.ca 3 points 8 hours ago (1 children)

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.

[–] alias_qr_rainmaker@lemmy.world 2 points 2 hours ago (1 children)

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)

[–] deadbeef79000@lemmy.nz 1 points 14 minutes ago (1 children)

grice’s maxims

https://www.usingenglish.com/articles/grices-conversational-maxims.html for those, like me, who did not know what Grice's Maxims are. It's a short read.

[–] alias_qr_rainmaker@lemmy.world 2 points 12 minutes ago

believe it or not i can't remember how it all works even though i was completely obsessed with it in college. i knew how much it could benefit me if i started applying the maxims to every single thing i heard and said, which i did.

[–] einlander@lemmy.world 3 points 12 hours ago

And that brings us back to BASIC.

[–] EldenLord@lemmy.world 2 points 13 hours ago

That Pepe is cursed

[–] DickFiasco@sh.itjust.works 1 points 9 hours ago

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