Playing around with using Notion as a CMS for my personal site just to reduce the friction to publishing. Pretty fun but the whole "blocks" abstraction + pagination stuff makes it a lot of work to extract some basic written content via the API 😅
For real the amount of API requests you have to make to get all of the content for a page is wild. Have to recursively walk every block looking for children and make new requests to get those children. Starting to think this is maybe a bad idea, we'll see 😅
Alright giving up on this, just too much to worry about with the number/rate of API calls, rate limiting, transforming the complex data structure I get back, etc. Still love Notion as Notion though.

Now I'm wishing Bear had an API 😅 Anything similar out there that does?
This is what I do now but it’s too much friction. Creating files, making commits, manually naming and storing image files, etc. It needs to be as easy as tweeting.
Pushing harder on the Notion option again — it looks like there's a bug in the API though where timestamps are not including seconds/milliseconds which is making caching a bit annoying 🤔 Everything is always 00:00.

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Adam Wathan

Adam Wathan Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @adamwathan

Oct 26, 2021
Ooo the Apple Store has the 14" I want for in-store pickup today... I will have the 16" and the 14" today and have to decide which one to keep 😅

Expect lots of pictures!
🤤
Don’t have the new 16” but here’s my 2019 16” next to the new 14”.

When I got the 16” originally it felt like an aircraft carrier but this 14” does feel like a little baby computer now 😅

Overall the design is beautiful in person, it feels extremely pro and industrial.
Read 19 tweets
Oct 15, 2021
What's the actual best floor planning tool I can play around with for redoing my office? Hard to find the good stuff, this whole category is SEO'd into oblivion 😅
Here's where I got with Homestyler which was pretty quick and easy to play with... Wish I could come up with a good way to make it work with the desk in the middle but this doesn't seem terrible.
Hmm maybe this could work, desk not in the true middle but only need access from one side anyways...

Just not sure where to set up the ol' Rocket League station 😅 Image
Read 35 tweets
Jul 30, 2021
Is there any way with CSS grid to say "all rows should have size 'auto', except the last one which should be '1fr'" while relying on implicit rows?

I want every row as short as possible, with the last row taking up the rest of the space, but with an unknown number of rows 🤔
The image above is the outcome I want, but I don't want to have to use `grid-template-rows: auto auto 1fr`, because that breaks if I need another row. Any way to do it without knowing the number of rows?
Put another way, it's easy to make the first row different than the rest:

grid-template-rows: 1fr;
grid-auto-rows: auto;

But how can you make the _last_ row different than the rest?
Read 4 tweets
Jul 3, 2021
Building really great stuff takes a lot more time, attention, and focus than is really possible to understand up front.

It's hard but I've had to learn to say no to even my own best ideas if they mean spinning another plate, or I eventually resent them for getting in the way.
If you want to do a lot of things, focus on things that can be finished.

Write a book, record an album, organize an event, produce a video, give a talk — you can build a rich catalog of work if you are deliberate about doing things that can actually be *done*.
But if you want to do things that can't really be finished (like software), I think the right way to be ambitious is to focus on one thing and make it great.

The sacrifice of saying no to a few fun ideas is not as bad as the sacrifice of never feeling awesome about your work.
Read 7 tweets
Jun 10, 2021
Fun piece of history — here's the first open source code I ever wrote, way back in 2010 🙈

github.com/reaper-oss/sws…

It's a set of extensions for REAPER (DAW software) for editing live drum performances super efficiently + a bunch of other productivity helpers.
Although I'd been programming in some capacity since I was 10-11 and had good exposure to basic concepts like variables, loops, etc., I had no idea that "software design" was a concept, and it never even occurred to me that code could have "quality" 😅
I just had a bunch of feature ideas and had been messing around with some Python scripts, when Tim (the author of the bigger project) saw potential in me, took me under his wing in IRC, taught me C++, and created this stupid `Adam.cpp` file for me to go nuts in ❤️
Read 8 tweets
May 31, 2021
🤔 What's the best way to structure your classes and markup when building UIs with Tailwind CSS?

Here are some of the rules I follow to build things that are consistent, easy to understand, and straightforward to componentize 👇 Image
Sort classes generally from the outside in (in terms of the box model) putting things that affect layout before things that don't, while also trying to group related classes.

This lets you see the things that are going to have the biggest impact quickly. Image
☝️This is a bit of an art, but hoping to automate in the near future!

I've been working on nailing the recommended class order a bit lately — check out my list so far on GitHub:

github.com/tailwindlabs/t…

(Inspired by @mdo's advice on Code Guide! 🙏)
Read 14 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(