Sam Lewis

Sam Lewis

@saml.dev

https://saml.dev Dad, software engineer, woodworker, and UNC swammer. 💼 building Android at Google. 🏠 Atlanta GA 📺 https://youtube.com/@samldev

220 followers103 following554 posts

Sam Lewis reposted

Sam Lewis reposted

The contact that provides PHPxATL with our meetup space (a recruiter) has a PHP position open in Tampa FL. Let me know if you might be interested and I'll connect you!

Here’s the finished product up on the wall! Still need to order a paint pen, apparently that’s the best for writing on top of polyurethane

Sam Lewis@saml.dev

Working on a growth chart for my wife’s bday, made out of white oak. I made a jig from random scraps to get straight consistent lines with my router. Making jigs is one of the most satisfying parts of woodworking

gah, iphone 13 pro display died this morning. It's still on, but the display won't come on. do I spend ~$300 to repair or upgrade for $1k? 🤦‍♂️

my son is 1 year old, he just wrote this. we have so much to learn from kids: ,.mc .,mc v. cv cv cv vc..cv .,mc v,mcmcm…..c cmmcv vcvcm,cm cvm,.m c.. mvvvc, m cm m mc m ,b.fffgghhjjg,dk ,. /c /./ ./. hhhgfgdcbjhg xcc

Aaaaand single-file executable Inertia SSR with Svelte is alive! 🎉The hard part was getting Bun to understand Svelte, if you use React this is probably very easy. Once import.meta.glob is supported it'll be a nothingburger no need for node on your server, just scp and ./ssr 🤤

Sam Lewis@saml.dev

Nerd sniped myself, and I have Inertia SSR working with Bun. Haven't gotten it built into a binary yet but it seems plausible without being too painful (now that I got the plugin figured out) Here's a gist of the Bun plugin to get Svelte Inertia SSR working gist.github.com/saml-dev/4ff...

Nerd sniped myself, and I have Inertia SSR working with Bun. Haven't gotten it built into a binary yet but it seems plausible without being too painful (now that I got the plugin figured out) Here's a gist of the Bun plugin to get Svelte Inertia SSR working gist.github.com/saml-dev/4ff...

gist.github.complugin.jsGitHub Gist: instantly share code, notes, and snippets.
Sam Lewis@saml.dev

Turns out this was not as simple as I had hoped 😂 time boxing it now, probably not enough ROI tbh

My favorite thing about Go is how easy it is to deploy a single binary. I wondered if I could switch Inertia SSR from a node process to a binary with no external dependencies... you can. I have it working locally with no changes to Inertia itself. Just a few changes to ssr.js

My coworker just said the funniest thing. We were talking about kids, he’s got 4 ages 10-20. I have one kid, 19 months old, and said I’ve already thought about how challenging teenage years will be. His response:

“Average stress levels go down. P90 stress goes up (crashing the car, getting your girlfriend pregnant)” P90 stress is such a perfect way to encapsulate that concept, I’m still laughing 🤣 🤣 🤣

Working on a growth chart for my wife’s bday, made out of white oak. I made a jig from random scraps to get straight consistent lines with my router. Making jigs is one of the most satisfying parts of woodworking

Great find at the lumber yard today 😍 figured sapele for a great price. I don’t have a project in mind, what should I make with it? I might make a serving board for my sister for Christmas but would still have 2/3 of the board left

Okay so I've got a decision to make. I'm taking over the HOA site for my new neighborhood, and it's currently a wordpress site that is slow and expensive. I want to just rewrite it in Laravel, but obviously someone with 0 programming knowledge wouldn't be able to just take it over

We plan to be in this house for many years, like 20+. Do I rewrite in Laravel and just leave the passing of the torch for future sam? I could also just keep maintaining it even if we move for a small fee or something

If you ever watch a couple YouTube videos on a random topic and then the algorithm won’t stop recommending those videos to you (like how to fix your dryer) just go to your watch history and remove those videos. Problem solved

They could make an episode of Modern Marvels about my son’s process of eating all the applesauce off his toast without eating any toast

Sam Lewis reposted

Today, I’m extremely excited to introduce @litebase.com! Something I've been working on for a while that I'm proud to ship. Following along as I build a new type of database.

Litebase@litebase.com

Introducing Litebase – an open source distributed database built on SQLite and backed by distributed file systems and object storage. Please follow along as we build a new type of database. litebase.com/blog/introdu...

I met so many awesome people at Laracon today. Some that I knew from the internet, and some total strangers. I’m forcing myself to say hi to as many people as I can and it’s been great! So glad I came

The more places I travel, the more I understand why people always mention how many trees Atlanta has when they fly in. So many desert-y climates!

I watched The Dark Knight on my flight to Denver and the end credits literally started 1 second before the wheels hit the ground. Very satisfying start to the trip #LaraconUS

Wow I just stumbled on this page while doing some support on a Github issue. The Obsidian plugin I wrote for writing your own custom js scripts for your notes has 46k downloads! I don't even use Obsidian anymore but pretty cool 😂 www.obsidianstats.com/plugins/cust...

obsidianstats.comCustomJS - An Obsidian plugin to allow users to reuse code blocks across all devices and OSesObsidian Plugin: CustomJS - An Obsidian plugin to allow users to reuse code blocks across all devices and OSes by Sam Lewis. Latest version: 1.0.21 released on a year ago

Sam Lewis reposted

Update: PHPxATL this Wednesday is CANCELLED. RSVPs are unusually low for this meetup (possibly due to Laracon in a couple weeks) so we are going to cancel this one and regroup in September. Apologies for the short notice and we’re looking forward to seeing you again soon!

So tonight I discovered I can directly access route model bindings inside a FormRequest, but it feels sort of icky since the FormRequest doesn't necessarily *know* it's being called from a route that has the model bound. what do you do in this situation? 🤔