to me method names are imperatives, like when we order the dog to walk.
dog.walk() = "Dog, walk!"
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.
to me method names are imperatives, like when we order the dog to walk.
dog.walk() = "Dog, walk!"
I don't python, but I know there's tons of ()
why is there so much () and other empty brackets?
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, though.
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.
Okay, cool, thanks! :D
It's not theDog.walks(), it's 狗.走()
Conjugate this you anglocentrist fuck!
狗。走。了()
There you go, you canine-centric bastard
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
UTF-16 is fine for the vast 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
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
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.
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
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
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));
[lady for lady in ladies if lady.is_single] just doesn't have the same bop.
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
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.
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.
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)
it's list comprehension syntax, not generator syntax
It is kinda funny we spent all these centuries turning english into a less-debatable notation called "math" to write algorithms in, only to then reverse that and get stuff like vibe-coding
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
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.
I would imagine the class would be aDog and when you instantiate it the variable would be theDog.
theDog sounds more like a reference to a singleton than one of many instances. I think thisDog fits better.
Why are you using Python instead of Rust.
Actually this is why I find python so hard. Might need to refer to his teachings
Anon reinventing "human language programming".
And that brings us back to BASIC.
That Pepe is cursed
I forgot about it for a few minutes when going through comments.
I just fucking EXPLODED when I saw it again lmao
Cunning linguist, he he. I wonder if they're friends with Colonel Angus.