David ⚔️ Soards's Avatar

David ⚔️ Soards

@soards.me

UXUI Engineer sometimes i write stuff at https://blog.soards.me i like VueJS & TailwindCSS resident of Louisville, KY

37
Followers
72
Following
87
Posts
14.10.2023
Joined
Posts Following

Latest posts by David ⚔️ Soards @soards.me

mystery solved

11.04.2025 01:59 👍 1 🔁 0 💬 0 📌 0

🤓👉👉

05.03.2025 02:09 👍 0 🔁 0 💬 1 📌 0

👀

10.02.2025 03:05 👍 1 🔁 0 💬 1 📌 0

i immediately suspected mostly because it seemed like an interesting plot device as well as the obvious thing that character would do in that situation

09.02.2025 00:20 👍 0 🔁 0 💬 0 📌 0

To give a example, the Dublin market seems to be set up where be devs outnumber the frontenders, the be folks are mostly python and java, they end up in management more often, and are generally universally shocked by all the churn with fe tech. Vite SPA's and query just work by 5pm there.

25.01.2025 16:49 👍 2 🔁 1 💬 1 📌 0

Most large successful enterprises are now allowing JS on servers at all. They have backends and API written in different languages by different teams. It's ridiculous to think that's going to change any time soon or even that it should.

Full-Stack JS represents such a small part of reality.

25.01.2025 18:05 👍 24 🔁 3 💬 1 📌 0
System prompt tips: Use the system parameter to set Claude’s role. Put everything else, like task-specific instructions, in the user turn instead.

System prompt tips: Use the system parameter to set Claude’s role. Put everything else, like task-specific instructions, in the user turn instead.

anthropic has similar instructions for claude but seems like most don’t follow it

26.01.2025 02:51 👍 0 🔁 0 💬 0 📌 0

oh boy is this topic set to explode my email inbox and social feeds again with alarmist doo doo

05.01.2025 02:10 👍 0 🔁 0 💬 0 📌 0
Preview
GitHub - OpenRouterTeam/ai-sdk-provider: The OpenRouter provider for the Vercel AI SDK contains support for hundreds of AI models through the OpenRouter chat and completion APIs. The OpenRouter provider for the Vercel AI SDK contains support for hundreds of AI models through the OpenRouter chat and completion APIs. - OpenRouterTeam/ai-sdk-provider

curious if u have tried the OpenRouter integration for even more LLM options? github.com/OpenRouterTe...

02.01.2025 15:58 👍 0 🔁 0 💬 0 📌 0

OMITB is a high bar tho

02.01.2025 03:15 👍 1 🔁 0 💬 1 📌 0

and i thought prettier’s default formatting of ternaries was 💩

30.12.2024 02:29 👍 1 🔁 0 💬 0 📌 0

we’re cooked…

30.12.2024 02:25 👍 0 🔁 0 💬 0 📌 0

same, and i was feeling slightly guilty about it (which is dumb) so thanks for sharing

28.12.2024 00:38 👍 1 🔁 0 💬 0 📌 0

what is your “poor man’s bookmark” on bsky? i usually just DM it to myself in Slack

27.12.2024 02:14 👍 0 🔁 0 💬 0 📌 0

recent shows i enjoyed in no particular order:
- The Penguin
- Only Murders in the Building
- What We Do in the Shadows
- Wyatt Earp & the Cowboy War
- Mr. McMahon

24.12.2024 03:45 👍 0 🔁 0 💬 0 📌 0
Post image

Donald Trump absolutely HATES the “President Musk” meme with a passion.

Let’s keep spreading it.

22.12.2024 02:59 👍 16148 🔁 6985 💬 574 📌 329
What Happened to the World's Largest Tube TV?
What Happened to the World's Largest Tube TV? YouTube video by Shank Mods

What happened to the world’s largest CRT? @shankmods.bsky.social went on a quest to find the last surviving Sony 43” tube TV, tracked down from one of only two known photos of the 440-pound behemoth.

22.12.2024 18:11 👍 138 🔁 32 💬 15 📌 4
Happy end of year! Prompt during the holidays with 2M free 🎁 tokens!

Happy end of year! Prompt during the holidays with 2M free 🎁 tokens!

this is fun. @bolt.new givin away 2M tokens for end of year. what should i generate?

21.12.2024 15:02 👍 1 🔁 0 💬 0 📌 0
Error Handling and Validation

- Handle errors and edge cases at the beginning of functions.
- Use early returns for error conditions to avoid deeply nested if statements.
- Use guard clauses to handle preconditions and invalid states early.
- Avoid unnecessary else statements; use if-return pattern instead.
- Implement proper error logging and user-friendly error messages.
- Consider using custom error types or error factories for consistent error handling.

Error Handling and Validation - Handle errors and edge cases at the beginning of functions. - Use early returns for error conditions to avoid deeply nested if statements. - Use guard clauses to handle preconditions and invalid states early. - Avoid unnecessary else statements; use if-return pattern instead. - Implement proper error logging and user-friendly error messages. - Consider using custom error types or error factories for consistent error handling.

someone asked how i feel about early returns. well, i keep this in my copilot-instructions. big fan

21.12.2024 14:55 👍 0 🔁 0 💬 0 📌 0

i used the trial Cursor plan. CoPilot Edit is comparable for 1/2 price. i disable the CoPilot autocomplete and use free Supermaven instead (much faster). Before CoPilot introduced Edit I was using the Cline extension (formerly Claude Dev) which is also nice, but you need to provide your own API key.

18.12.2024 17:05 👍 0 🔁 0 💬 0 📌 0

very entertaining!

18.12.2024 15:50 👍 0 🔁 0 💬 1 📌 0

> Your architecture will only work if it solves for your problems, utilizing your resources, values, and contingencies. It needs to be authentic, consistent, and internally coherent.

yes!

18.12.2024 15:50 👍 0 🔁 0 💬 0 📌 0

good read. i wasn't nearly as repulsed by the original chesky interview, but i did find myself thinking that the proposed CEO involvement in every aspect of everything didn't really seem realistic or even useful in most scenarios.

18.12.2024 15:50 👍 1 🔁 0 💬 1 📌 0

i ❤️ mechanical pencils. I'm partial to 0.9mm lead.
these are my favorites ✏️
www.amazon.com/gp/product/B...
www.amazon.com/gp/product/B...
www.amazon.com/gp/product/B...

18.12.2024 06:49 👍 1 🔁 0 💬 0 📌 0

and don't under estimate the power of a good .cursorrules or copilot-instructions.md file. there a few good directories you can use as a start cursor.directory or cursorlist.com it's so useful to be able to declare your preferred coding style, frameworks/libraries, naming conventions, & other rules

18.12.2024 05:25 👍 1 🔁 0 💬 0 📌 0

hell it even gets stuff wrong sometimes but there'll be a little useful piece in there like, "oh, i didn't know that method existed. cool, ima use that!"

18.12.2024 05:16 👍 0 🔁 0 💬 0 📌 0

true, i've had success generating new or boilerplate stuff being vague. what i was describing is more for just being lazy lol. like if i know exactly what needs refactoring but i don't want to actually copy/paste the template, create props, etc etc.

18.12.2024 05:16 👍 0 🔁 0 💬 1 📌 0

i've also been trying to embrace "learning how to program differently." it's not my first instinct. but i'm starting to enjoy it more. i get best results when i give very specific instructions like "componentize this section of this file, use this library" & then follow up w/ more small iterations.

18.12.2024 04:58 👍 2 🔁 0 💬 1 📌 0

it's convenient on web apps that don't have a bottom nav, but seems unnecessary on a mobile app with a bottom nav. and i'm more used to it being on the right, but bsky already has another floating add new (primary) button in that space. the secondary floating button on left feels odd.

18.12.2024 04:47 👍 2 🔁 0 💬 0 📌 0

right, i think it's partially because that's what i'm used to on 🐦, but as everyone else already said, floating scroll to top with notification dots seem like unnecessary clutter

18.12.2024 04:39 👍 0 🔁 0 💬 0 📌 0