Ben Frankly: Benjamin Franklin’s Frank Opinions of You.

Reading time ~1 minute

Want to learn more about AWS, Serverless and Projects? Sign up for my mailing list!

I’ve just released another project - Ben Frankly: Benjamin Franklin’s Frank Opinions of You.

A screenshot of the Ben Frankly Project

After reading Benjamin Franklin’s autobiography I noticed how he has a knack for memorably describing people. So I parsed through the autobiography and compiled a selection of those descriptions into another Micro-API using the Serverless Framework.

This API did a few things slightly differently. I’ve tried to make ‘random’ APIs with DynamoDB in the past but it felt super wasteful to use an inefficient DynamoDB scan to return data from the table. Because of that I opted to pre-assign numeric IDs to the data in the table that could randomly be calculated beforehand. Now there’s a relatively minor calculation to create a random item’s DynamoDB partition key and then that ID is used to lookup the item.

There’s still a bit of work to do to make the API handle genders correctly. In the future I’d like an optional gender pronoun selector to automatically overwrite the gendered words. There’s also probably a variety of quotes I’ve missed and things I could add from another of Ben’s writings.

Here’s hoping Ben thinks you’re better than “a worthless fellow, tho' an excellent workman”!