It’s not theDog.walks(), it’s 狗.走()
Conjugate this you anglocentrist fuck!
Anon is a linguist
Submitted 3 weeks ago by alias_qr_rainmaker@lemmy.world to greentext@sh.itjust.works
https://lemmy.world/pictrs/image/ea9a415b-840b-4294-bac3-dbfdd43cb55b.png
Comments
fibojoly@sh.itjust.works 3 weeks ago
alias_qr_rainmaker@lemmy.world 3 weeks 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
fibojoly@sh.itjust.works 3 weeks 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
farting_gorilla@lemmy.world 3 weeks ago
狗。走。了()
There you go, you canine-centric bastard
Camille_Jamal@sh.itjust.works 3 weeks 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
BleakBluets@lemmy.world 3 weeks 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.
Bosht@lemmy.world 3 weeks ago
NoIDontThinkIWill.gif
alias_qr_rainmaker@lemmy.world 3 weeks 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
rtxn@lemmy.world 3 weeks ago
[lady for lady in ladies if lady.is_single]just doesn’t have the same bop.alias_qr_rainmaker@lemmy.world 3 weeks ago
list comprehensions aren’t changed much. but a statement like
dog = Dog(name=“fido”)is transpiled tothe 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 3 weeks 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.
rtxn@lemmy.world 3 weeks 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]
fushuan@lemmy.blahaj.zone 3 weeks ago
All the lady in there are the same lady, it’s being used for different things as the other comment answered you but it’s the same box of information, if you will.
iAmTheTot@sh.itjust.works 3 weeks ago
fuckoing
alias_qr_rainmaker@lemmy.world 3 weeks ago
meh, close enough
Camille_Jamal@sh.itjust.works 3 weeks 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???
lauha@lemmy.world 3 weeks ago
I would imagine the class would be aDog and when you instantiate it the variable would be theDog.
alias_qr_rainmaker@lemmy.world 3 weeks 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
green_copper@kbin.earth 3 weeks ago
theDogsounds more like a reference to a singleton than one of many instances. I thinkthisDogfits better.
Feyd@programming.dev 3 weeks ago
alias_qr_rainmaker@lemmy.world 3 weeks ago
perl is garbage and larry wall is barely fluent in english. that man does NOT know how to name things.
bus_factor@lemmy.world 3 weeks 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.
Tetragrade@leminal.space 3 weeks 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));
m0darn@lemmy.ca 3 weeks 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.
alias_qr_rainmaker@lemmy.world 3 weeks 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)
deadbeef79000@lemmy.nz 3 weeks 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.
Camille_Jamal@sh.itjust.works 3 weeks 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
m0darn@lemmy.ca 3 weeks 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.
TheTiltster@feddit.org 3 weeks ago
Writes “I have a PhD in linguistics. I am literally a cunning linguist, and literally all of you are fucking stupid […].”
Also writes “fuckoing”.
LOL
Jankatarch@lemmy.world 3 weeks 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
alias_qr_rainmaker@lemmy.world 3 weeks 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>
jaykrown@lemmy.world 3 weeks ago
Why are you using Python instead of Rust.
einlander@lemmy.world 3 weeks ago
And that brings us back to BASIC.
EldenLord@lemmy.world 3 weeks ago
That Pepe is cursed
Camille_Jamal@sh.itjust.works 3 weeks ago
I forgot about it for a few minutes when going through comments.
I just fucking EXPLODED when I saw it again lmao
DickFiasco@sh.itjust.works 3 weeks ago
Cunning linguist, he he. I wonder if they’re friends with Colonel Angus.
ZILtoid1991@lemmy.world 3 weeks ago
Anon reinventing “human language programming”.
FinjaminPoach@lemmy.world 3 weeks ago
Actually this is why I find python so hard. Might need to refer to his teachings
Philharmonic3@lemmy.world 3 weeks ago
Fuckoing
renzhexiangjiao@piefed.blahaj.zone 3 weeks ago
to me method names are imperatives, like when we order the dog to walk.
dog.walk() = “Dog, walk!”
alias_qr_rainmaker@lemmy.world 3 weeks ago
i know that’s how you’re supposed to read it…and guess what…it’s wrong
Tetragrade@leminal.space 3 weeks ago
Image
JackbyDev@programming.dev 3 weeks ago
How do you tell a dog to walk? “Dog, walks!” or “Dog, walk!”
Camille_Jamal@sh.itjust.works 3 weeks ago
Elaborate?
Camille_Jamal@sh.itjust.works 3 weeks ago
I don’t python, but I know there’s tons of ()
why is there so much () and other empty brackets?
yetAnotherUser@discuss.tchncs.de 3 weeks 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:
This code would make the dog walk for 10 seconds assuming every function used is actually defined somewhere.