What Is A Foo?
A diss poem on dynamically typed programming languages.
- by JimLynchCodes
??
That function defined right there on line 2...
the argument that it accepts is a foo.
A foo, you say? It takes a foo?
I'm sure even what is a foo, are you?
What's its shape? What's it do?
What the heck is a foo?
It is a class? or a function? or just the value true?
Maybe a pointer to a variable that holds the value forty-two?
I'd have to read the entire call stack of functions to really know what's a foo!
And even then, I'm reverse engineering based on what other things do.
I just want to know- what's the type of this foo?!
I wish it was there in the code, for me to read and for you.
So I can ctrl + click and jump right to where we've defined the type for foo.
领英推荐
Then I'll have a full understanding, all the way through.
So please, don't write obscure code where your colleagues haven't a clue,
what to make of these arguments, and what even to do,
when all you have is a name that means nothing, like "foo".
If you try Rust or TypeScript you might yell, "Yeaahooo!!"
The static typing is a breath of fresh air and morning dew,
that makes things very difficult to misconstrue!
So I hope you will join us, hope you can see too,
that it is essential that we all agree on just what is a foo.
And if you have any troubles that you can't quite get through,
we have plenty of engineers who would love to help you!
Just reach out to the team at Evaluates2.
thank you.
??