Wassssap!
How are y'all doing? I hope you had a good one. I have a bit of a cold but besides that, I'm happy with things. Anyway, let's boogie!
Was this forwarded to you? You can subscribe here!
Writing Components That Work In Any Frontend Framework
Why Signals Are Better Than React Hooks
React Server Components, without a framework?
Minimalist Affordances: Making the right tradeoffs
I've been slowly but surely working through my to-do list this week. It's a small thing, but I've been so swamped lately that I just haven't had time! Little things like cleaning, emails, holiday decorations, donating clothes, doing laundry, that sort of thing.
When I do my task tracking, I use an app I built called todometer for getting everything down and The Sukha for "flow state" style working. I've talked about both a bunch in this newsletter before, but I'm saying it again, they're super useful!
This week's sponsor is Brainstory! Brainstory is a collaborative AI tool to help you think through ideas.
It's not generative AIโit's iterative AI. Brainstory helps you verbally talk out what you're thinking, whether it's a conference talk, a blog post, a bug in your code, a company memo, a character sheet, a side project... anything you need. Then, it makes it easy for anyone to walkthrough your thoughts and give you pointed feedback. Everyone gets to think smarter, not harder.
Give Brainstory a try for free at brainstory.ai!
Last week, I had you score words. Awesome work Varenya, Saad, Josh, Jonnie, Muhammad, Ten, Josh, Max, Miguel, Ann, Neil, Will, Martin, Jan-Magnus, 413, Karthick, Frances, and Chase!
This week's question:
Given a list of tasks, where each task has a duration, and a limited amount of available time to work, write a function to return the tasks that can be completed within the given time, without re-ordering the original list of tasks. Try to maximize the number of tasks that can be completed!
Example:
const tasks = [
{ name: 'Task 1', duration: 4 },
{ name: 'Task 2', duration: 2 },
{ name: 'Task 3', duration: 7 },
{ name: 'Task 4', duration: 5 },
{ name: 'Task 5', duration: 1 },
{ name: 'Task 6', duration: 3 }
];
const timeToWork = 6;
> doTasks(tasks, timeToWork)
> ['Task 2', 'Task 5', 'Task 6']
things that aren't doing the thing
Spain lives in flats: why we have built our cities vertically
Fossil Full Size keyboard with MT3 2048
Why the Human Brain Perceives Small Numbers Better
The shovel was a ground-breaking invention.
That's all for now, folks! Have a great week. Be safe, make good choices, and eat well!
Special thanks to Gabor, IceSloth, Ezell, Sebastiรกn, Ben, and Kinetic Labs for supporting my Patreon and this newsletter!
cassidoo
website | twitter | patreon | github | twitch | codepen | polywork | mastodon