hrbrmstr's Daily Drop

Share this post

2022-08-26.01

dailyfinds.hrbrmstr.dev

2022-08-26.01

Vercel; Serverless or Bust; Weekend Reading

boB Rudis
Aug 26, 2022
Share this post

2022-08-26.01

dailyfinds.hrbrmstr.dev

Salesforce, the parent company of Heroku — for the quarter ending April 30, 2022 — realized $5.366B in gross profit. I guess that many bags of Benjamins just weren't enough to continue offering a free tier on Heroku. (Aside: Def read that Heroku blog; it's a masterclass in skeezy triple-speak executive comms.)

Heroku has a weird past. I never really liked the development/deployment idiom they somewhat pioneered; plus, it was slow, klunky, and — after the free tier — ridiculously expensive for what it is.

Since I have a lofty goal of Friday drops being "weekend project"-oriented, I've framed this episode in three acts:

First: one resource to get you off of Heroku — if you're still there — or inspire you to try out — if you were smart enough to not even give Heroku a glance before.

Second: a prompt to deploy a particular service on what's dropped in "First".

Third: some weekend reading unaffiliated with "First" and "Second"

Vercel

body of water near trees under blue sky during daytime
Photo by sendi gibran on Unsplash

Discalaimer: I have zero skin in the game when it comes to Vercel apart from playing with it over the past 418 days (according to my Vercel dahsboard), and leaving a Carbon deployment (that I kinda forgot about) running there.

Vercel is _"an end-to-end platform for developers, that allows you to create and deploy your [web] application". It provides numerous features to enable you to serve up content. You can experiment with serverless edge computing, deploy full stacks (like WordPress), use pretty much any framework you want — including "cutting edge" ones like Deno and Rust, control everything via git and move from hobby to "pro" without breaking the bank.

Their getting started was one of the more comprehensive walkthroughs I've followed (most seem to end up with an error at some step, these days, but not Vercel's). And, their guides cover a wicked amount of ground.

I was introduced to Vercel via the epic Datasette project and was able to "learn by doing" via Vercel's extensive list of examples.

Serverless or Bust

person in black leather jacket holding brown and black hiking shoes
Photo by Callum Hill on Unsplash

This second section is meant as a prompt to further encourage you to try out one aspect of Vercel over the weekend (or use a different service and Kagi a bit for similar resources).

Since most folks reading this newsletter know or can at least read Python, we'll start with a glimpse at how straightforward it is to build and run a Vercel serverless Python function.

For the Rust/Wasm crowd, you can, of course, Wasm the heck out of Vercel. Or, y'know, just Rust the heck out of Vercel.

The Vercel folks are also the ones behind Next.js, so one might expect JavaScript to be a first-class serverless citizen, and it is.

With said tools in hand, here are some prompts that should be doable over the weekend:

  • Create a serverless JSON API that take in lat/lon parameters and has three endpoints: sunrise, sunset, daylight-hours, and return the values for each in whatever JSON structure you like. All of the above environments have "ephemerids" libraries, so you don't need to learn any new maths. Drop a link to your creation in the comments when you're done!

  • If you have any "smart things" in your home, you can use an app on your phone or (sigh) a voice-based automaton to control them, but what about using a serverless function to create your own "scenes"? Vercel is good at keeping seekrits (read: API keys) and letting you use them in our serverless apps. Build a serverless function to do something across all your smart devices, and DO NOT drop a link in the comments, since nobody else should be controlling devices in your home but you (you should probably set up a rudimentary API key for your app just in case the bug bounty hunters are bored and scour Vercel next week).

  • Return a basic website. You can have the return content type be anything you want, so why not build a dynamic HTML web site from a Vercel serverless function? Pull in CSS, JS, and other resources from CDNs (pro-tip: GitHub Pages have a generous CORS policy). This one should be safe to drop a link to as well.

If none of those are inspiring, you know there are other lists out there.

Leave a comment

Weekend Reading

person reading book on brown wooden table taken at daytome
Photo by Thought Catalog on Unsplash

In no particular order:

"Just say 'No'"

A Cup of Ambition
Stop saying "yes" when you want to say "no"
A Cup of Ambition is a weekly newsletter filled with thought-provoking essays, interviews, links, and reflections on all things related to working motherhood. If you’re new here, I hope you’ll subscr…
Read more
7 months ago · 7 likes · 7 comments · Jessica Wilen

Perhaps there is some hope after all?

Letters from an American
August 24, 2022
Yesterday’s elections suggest that American voters are concerned about the past year’s radicalization of the Republican Party. In a special election for a seat in the House of Representatives in a New York state swing district, the 19th congressional district, Democrat Pat Ryan beat his Republican opponent. Pundits looked at the race as a bellwether (na…
Read more
7 months ago · 1,265 likes · 496 comments · Heather Cox Richardson

Many awesome things (OK, this is more than one weekend)

Things I Think Are Awesome

Once a month recs on creative AI, games and narrative tools, fun NLP, generative art and text, SF/fantasy books & tv, poetry, oddities & folklore.
By Lynn Cherny

The Sunday Longread (hit it up Sunday or browse through back issues).

Share

FIN

Thanks for reading! Remember, if you're near the Seacoast this Saturday, drop in on GraniteSec! ☮

Share this post

2022-08-26.01

dailyfinds.hrbrmstr.dev
Previous
Next
Comments
TopNewCommunity

No posts

Ready for more?

© 2023 boB Rudis
Privacy ∙ Terms ∙ Collection notice
Start WritingGet the app
Substack is the home for great writing