Message from @dunce
Discord ID: 257467148815826944
wat
wut wat ?
too bad miller isn't there
```python
class Duck:
def quack(self):
print("Quack, quack!");
def fly(self):
print("Flap, Flap!");
class Person:
def quack(self):
print("I'm Quackin'!");
def fly(self):
print("I'm Flyin'!");
def in_the_forest(mallard):
mallard.quack()
mallard.fly()
in_the_forest(Duck())
in_the_forest(Person())
```
he loves quacks
Get your duck typing out of here
meh dune is the only one who get my jokes 😦
I bet you prefer EAFP over LBYL
wow
I went there
dude, do I need to remember you that I mostly do C ?
I really dislike Python
I think I even prefer PHP
No I'm pulling your leg
😦
then pull my 3rd one, at least i'll have fun too
No pls
meh
I tried
I had a function composition question on a maths paper last week
well, I like composition but mostly in non oriented language like C
what was your question ?
Gimme a sec to remember
I do use it a bit in other language like C++, haskell, ocaml, etc but I use it extensively in C
it's much more clear than trying to reinvent the wheel and try to simulate OOP or worse, a big old monolithic program
reminds me a student had an intersting question about ADT implementation in C
It was something like f(x) = 2x - 3
g(x) = x^2 + 2
Prove gf(x) = 4x^2 - 12x + 11
And then another part was write fg(x) as a single function
oh that's basic function multiplication
good old times
hope you aced that stuff 😃
Yeah
it's really too bad I can't really do these kind of stuff here
a lot of people would love it, but there are some that don't come from a scientific background
My year as a whole seems to have done shit on the maths papers we did though
I got highest in my class and that was only 65/80
for example I have a really good student that only had a master in philosophy before coming in my school
I doubt he would have any interest in those kind of stuff
Too academic for me