
LEGO
Functions are the LEGO blocks of Software.
You start with individual little LEGO blocks and snap them together. And after a bit of playing around you've finished a giant tower or a pirate ship ... or a progam.
Of course there are higher levels of abstraction that make up sophisticated software and that distinguish coding from software engineering, but at the lowest level, it's all functions.
Sharing the building blocks
The frustration with LEGO (as with programming) is not having the right building block when you need it.
But what's great about software is that you can copy it for (almost) free.
And that's what we've decided to do.
As we build functions in our day to day work to overcome the challenges we face, we thought we'd publish our building blocks so you can use them too.
For Example
The other day we had to write a function that would let you use the latest Claude3 model.
Yep, the one from the French guys that are challenging OpenAI's ChatGPT.
It's pretty good!
So we wrote the claude3 function to help with that. It's super straight forward: You give it a prompt - and it returns the response.
claude3("What is the most sold LEGO brick of all time?") = "The most sold LEGO brick is the 2x4 LEGO brick, which has been in production since 1958 ..."
You can try it on func.live/functions/claude3.
And now you have one of our LEGO blocks. Have fun building with it.
Let's chat 💬
I hope you find that useful, and would love to hear your thoughts. What other building blocks do you want/need? Email me on andi@wakeflow.io or whatsapp me on +447500172268.
All the best, Andi
P.S.
I made that image at the top with Dalle3, using the func(live) command line tool like so:
> npm i func-live-cli -g
> func dalle3 "Building blocks being stacked"
> _
Now you try!