9

lambda lambda lambda!

So I was tasked with porting a bunch of code to a new set of libraries a few years ago. I didn't have a whole lot of experience with the framework at the time. I just fixed issues with what I thought should be in there. I mean it compiles right?

Fast forward 4 years:
Coworker: Uh, Demo, this printing code doesn't work. A customer is complaining.
Me: I didn't work on that.
Coworker: Yes, you did...
Me: Oh, yeah, I remember that. I just guessed. I didn't know what I was doing back then. It looks like I am not waiting for the printer. I will put a lambda in there to notify when the printer is ready. Then another lambda inside of that to delete objects when that is done. Hey! I put a lambda inside lambda!
Coworker: Thanks, it works now.

Talking to my boss later. I had just explained how I fixed the issue:
Me: I put a lambda inside a lambda! Wait, I have a new goal. Putting a lambda inside a lambda inside a lambda!
Boss: Uh, I am not sure that is a "good" goal...

Comments
  • 3
    Lambdas are a powerful drug. You go down that path, in 3 months you'll be defining control flow primitives as functions. In 6 months, you'll be bashing your head into the wall trying to understand the formalization of a typeclass. Before you realize it, someone will ask a question involving monads and you'll go "Oh, Monad is a simple case, really.".
  • 3
    You really whipped the lambda’s ass!
  • 2
    @Lensflare is three lambdas a sign of Half Life 3?
  • 3
    @lorentz oh, I noticed Godot has first class functions and lambdas now in Godot 4. I remember you had issues with the language, but I could not remember the reasons. I have been using map and filter on lists. Which is nice.
  • 1
    @Demolishun yeah I've been playing with them a while, it's like it's a whole new language
  • 0
    I’m stupid, do u mean aws lambdas or regular lambdas?
  • 1
Add Comment