Sam Cook Profile Banner
Sam Cook Profile
Sam Cook

@samcook_

Followers
2,640
Following
1,542
Media
189
Statuses
6,740

Dad, programmer, recovering lawyer, guitarist. SWE @trygamma . Building some cool open source projects in the Go and TypeScript ecosystems.

United States
Joined December 2020
Don't wanna be here? Send us removal request.
Explore trending content on Musk Viewer
@samcook_
Sam Cook
1 year
@aero_wulf Yeah, artistic young adults from past generations were totally normal.
26
79
13K
@samcook_
Sam Cook
10 months
Mandatory Annual Announcement: This isn't how copyright works.
@samcodes_io
Sam Codes
10 months
If you're going to update your footer to 2024 Do this instead:
Tweet media one
16
4
141
23
36
1K
@samcook_
Sam Cook
8 months
@anothercohen Hello I am a reporter from the Washington Times, do I have permission to use this tweet in a story I'm writing about you?
21
7
997
@samcook_
Sam Cook
7 months
@jdcmedlock No, the most insane is when they pull into the shoulder to pass you. Happens all the time where I live. I think you should get automatic jail time for it and lose your license for 5 years.
11
4
624
@samcook_
Sam Cook
8 months
@AnnWog @anothercohen Don't read too much into it. I haven't read a newspaper in a decade and can't keep them straight. They'll all be gone in two years anyway.
1
0
271
@samcook_
Sam Cook
1 year
@billyhumblebrag This isn’t 30k in savings this is a 30k portfolio. Parents should have stated and stuck to this in half a second. Should not even be entertained, was never remotely agreed to.
8
2
229
@samcook_
Sam Cook
5 months
@maccaw Change the language to “secret key” or something. Makes it obvious it’s not a subsequent login but rather core client-side app functionality. Apple reviewers are lazy and tyrannical. Have to help them along. Also more clear to users IMO so win-win.
4
1
218
@samcook_
Sam Cook
2 years
@srsholmes @NanouuSymeon With you up until you claimed MacOS is better than Linux……
7
3
207
@samcook_
Sam Cook
4 months
Gentle reminder to everyone that works with customer data not to casually leak metrics and infra details publicly. An angry customer tweeting publicly about a bill doesn’t terminate your overall confidentiality requirements (probably legally, definitely ethically).
@leeerob
Lee Robinson
4 months
@zemotion @vercel Hey Jingna. First off, congrats on hitting 500K users so quickly. Looks like our systems have sent 12 notification emails to you, and since the traffic all appears to be legitimate, we also reached out directly on June 3rd to connect. The team and I are standing by, ready to
72
30
1K
7
21
191
@samcook_
Sam Cook
1 year
Very happy to introduce , a new TypeScript metaframework built on top of @honojs and @htmx_org 🚀 Quickstart: npx create-hwy @latest 🧵👇
18
19
166
@samcook_
Sam Cook
9 months
@adamdotdev Is script his nickname for you?
3
0
149
@samcook_
Sam Cook
8 months
Since I started writing Go I’ve lost 10 pounds, my wife says I’m handsomer than ever, my chess ranking has went up, and everything I lift feels lighter. Coincidence? I think not.
@AndyJessop33500
Andy Jessop
8 months
I've been building with JS for a looong time. Two weeks ago, I started learning Go, and now JS looks like this to me:
Tweet media one
41
11
223
7
9
123
@samcook_
Sam Cook
10 months
@Gingercappe Hahaha amazing. Publish to npm. Also needs author.isAnon though.
0
0
116
@samcook_
Sam Cook
2 years
The ability of @remix_run to be non-janky without even trying is its greatest superpower Build an app with Next / RQ / TRPC. It's amazing. Really really good experience. But you still need to actively avoid jank Build the same app in Remix— the janklessness is just effortless.
6
6
112
@samcook_
Sam Cook
6 months
My jaw is on the floor seeing people argue “just change your json parsing code to json5” as though built-in JSON.parse(pkgJsonStr) isn’t in a gazillion npm packages that would then need to add a json5 parsing dep.
18
2
111
@samcook_
Sam Cook
1 year
@DynamicWebPaige These topics are exhausting (same as the hours-worked arguments) because people project themselves onto everyone else and assume the average person is basically like them. The rough actual truth is that introverts and self-motivated people work roughly better alone, and vice
2
1
107
@samcook_
Sam Cook
1 year
@ryanflorence It can be simultaneously true that you're a bad shopper and inflation has made everything twice as unaffordable in the last few years. I'm a terrible shopper too. My wife rolls her eyes at my grocery store decisions.
2
0
99
@samcook_
Sam Cook
5 months
@luciascarlet @RoseSilicon You’re putting too much stock in the marketing phrase “rebuilt from the ground up”
1
0
94
@samcook_
Sam Cook
10 months
@samcodes_io Come on, nobody does that. Everyone does it as their copyright footer.
2
0
84
@samcook_
Sam Cook
4 months
@clhubes @needmoarcoffee1 If you don’t intuitively know not to feed a 4-year old 55 gummy bears, learning not to feed a 4-year old 55 gummy bears won’t also teach you the 10,000 other things someone with even bottom 10% adult judgment already knows about how to operate in the world. What else should I put
2
1
84
@samcook_
Sam Cook
6 months
@anerdguynow What do you mean next steps? Next steps implies there’s a problem. Unless you’re saying the other senior dev intentionally lied, in which case that other person should be fired by whoever has that authority.
2
1
77
@samcook_
Sam Cook
2 years
@ThePrimeagen ppl get stuck in tutorial hell because they don't teach you how to think through problems, just how to fix specific ones, which it turns out is not all that helpful in the grand scheme of things
1
3
75
@samcook_
Sam Cook
2 years
@Jason @balajis I also just think he is trying to help people by bringing attention to something he thinks is good for the world
0
0
76
@samcook_
Sam Cook
1 year
@ImSh4yy @AirbnbHelp You’ve got to love when they couldn’t care less as long as it’s private and the moment it’s on Twitter they pretend to care
1
1
73
@samcook_
Sam Cook
7 months
@RobertMSterling Or, the difference between a million and a billion is a billion, with a 0.1% margin of error.
1
1
74
@samcook_
Sam Cook
1 year
@ekzhang1 Literally nothing wrong with this email
0
0
72
@samcook_
Sam Cook
7 months
@jamesqquick This is (part of) why you should ban implicit returns in similar situations. You lose your ability to quickly see problems.
4
0
72
@samcook_
Sam Cook
5 months
@mSykeCodes Congrats, unironically this is the actual worst take I’ve seen on here lol
2
1
64
@samcook_
Sam Cook
9 months
@jherr I love how one half of these comments are the exact opposite of the other half of these comments 😂
0
0
63
@samcook_
Sam Cook
5 months
@ken_wheeler The part everyone skips over is that you can get 95% of the benefits of SSR by inlining prefetched data with your initial document payload while still just shipping an empty div body. No client waterfalls, google parses it just fine. No hydration errors, no Node backend required.
8
0
65
@samcook_
Sam Cook
2 years
Remix nerds – Here's a new @remix_run toolkit I'm calling "remix-easy-mode": Built on zod / superjson, and inspired the TRPC / React Query DX 🚀 Installation: npm i remix-easy-mode zod superjson In early beta so use with caution ⚠️
3
11
64
@samcook_
Sam Cook
11 months
@mattpocockuk A day (otherwise I would have said a week)
2
0
64
@samcook_
Sam Cook
10 months
Fair bit of back and forth in the comments. Here’s a decent summary of my personal bottom line under U.S. law. As always, listen to your own attorneys, not some dude on Twitter.
@samcook_
Sam Cook
10 months
@andrewvijay @BertosonHunter I’m not giving any specific advice here. Listen to your own lawyer(s) about your specific site. Personally, I find the footers unnecessary & most attempts at accuracy in the year are futile. Copyright periods last way way longer than a typical website will have commercial value.
0
2
38
0
0
64
@samcook_
Sam Cook
11 months
I wish the average HTMX enjoyer would adopt this tone. HTMX is wonderful for "many" apps, but "many" doesn't mean "all". Mr. HTMX is the first to admit this. You should too!
@htmx_org
htmx.org / CEO of Sorry, who are you? (same thing)
11 months
some folks are discovering that htmx isn't just a meme & is actually a pretty effective way to develop many web applications and THEY ARE MAD
32
24
575
11
5
61
@samcook_
Sam Cook
2 years
@andreasklinger @Belal_M_Amin @Austen Aka he has found an effective and sustainable method of voluntary wealth redistribution. How shocking and horrible.
1
0
55
@samcook_
Sam Cook
1 year
@DavidKPiano Did you put useEffect in twice on purpose lol
2
0
54
@samcook_
Sam Cook
9 months
@wesbos Lately it has also been writing entire functions (when I already have a block scoped) when I really just want it to auto-complete my prop type defs. Used to handle this fine. Why are both co-pilot and chatgpt getting worse and not better 😭
8
0
55
@samcook_
Sam Cook
3 years
I am beyond stoked to announce that I'll be joining @holaplex tomorrow as a Community Support Engineer (basically frontend dev + Discord/GitHub wrangling) 🔥
4
4
51
@samcook_
Sam Cook
7 months
@anothercohen I want to see more of this consumer energy against garbage websites
0
0
53
@samcook_
Sam Cook
2 years
@Jason @DavidSacks I like you Jason but you were particularly brigadoonable this week.
2
0
51
@samcook_
Sam Cook
1 year
@NoContextBrits Not predictable at all
2
0
50
@samcook_
Sam Cook
2 years
This was a fun one to build. And we're only getting started.
@trygamma
Gamma.io
2 years
We’re proud to present our trustless #Bitcoin ordinals marketplace, revolutionizing the way users create and trade digital assets! This builds upon our 18-month journey in the Bitcoin NFT space.
127
233
730
3
2
48
@samcook_
Sam Cook
2 years
Little known fact, @jamilbtc coded the first version of Gamma on his phone while solo flying a small plane across the US
15
3
45
@samcook_
Sam Cook
2 years
@Jason @DavidSacks To clarify, talking about your attitude, not your takes. Differing takes is fine and makes the podcast better. Being unfair and dismissive and disrespectful to the other besties makes it a tough listen.
5
1
49
@samcook_
Sam Cook
1 year
@mjackson I would usually agree with you Michael (and I truly like and respect DHH regardless), but this was pretty clearly intentional controversy. They launched a product this same day and have published books about finding “enemies” to gain energy. So I think it’s fair game.
4
1
47
@samcook_
Sam Cook
2 years
@Jason FWIW I only saw this video because you posted it.
0
0
48
@samcook_
Sam Cook
8 months
@matthew_d_green Every last aspect of music licensing is FUBAR
0
0
45
@samcook_
Sam Cook
1 year
@webdevMason It is “wrong” in the sense that you wouldn’t do 8+2 and 9-2 to get to 17, you’d do 9+1 and 8-1 to get to 17.
3
0
41
@samcook_
Sam Cook
8 months
@FredKSchott If it's truly just a frontend CDN serving static assets, how could the responsibility possibly lie with the user? There is nothing you can do at that level to protect yourself.
1
0
41
@samcook_
Sam Cook
1 year
@10x_er If the book is actually good, it's worth listening at a slower pace. If it's not good, it's not worth reading in print either.
2
0
41
@samcook_
Sam Cook
10 months
@andrewvijay @BertosonHunter I’m not giving any specific advice here. Listen to your own lawyer(s) about your specific site. Personally, I find the footers unnecessary & most attempts at accuracy in the year are futile. Copyright periods last way way longer than a typical website will have commercial value.
0
2
38
@samcook_
Sam Cook
2 years
@NicoleBehnam @elonmusk You unlearned these?
0
0
35
@samcook_
Sam Cook
5 months
@mjackson Respectfully, this is a bit of a straw man. Taylor was very clear to mention the "single developer" aspect of this.
3
0
37
@samcook_
Sam Cook
10 months
@thdxr Took me until the fourth option to realize this was parody
2
0
36
@samcook_
Sam Cook
1 year
@ThePrimeagen It’s funny, Zuck is probably my favorite tech tychoon, yet Meta is probably the tech company I trust least.
2
2
36
@samcook_
Sam Cook
1 year
@mattshumer_ Playing outside.
3
2
37
@samcook_
Sam Cook
7 months
@fentanylbrownie Nobody other than everyone around me everywhere
1
0
36
@samcook_
Sam Cook
2 years
@ryanflorence @TkDodo @remix_run To bookmark when you’re GitHub surfing or to help give “social proof” to a project you want to see continue growing.
0
0
35
@samcook_
Sam Cook
2 years
“Burnout is more likely downstream of values misalignment than hard work.” Paraphrasing @sarah_edo Amazing point and so true IME
3
4
33
@samcook_
Sam Cook
3 years
@BlakieCodes @cameronmacdev Building a site from a WordPress theme makes you a website builder, perhaps even designer, but not a "developer". That word actually means something in this context.
1
0
32
@samcook_
Sam Cook
8 months
@supabase $25 on a beefy droplet with embedded SQLite, $5 on object storage backups streamed with Litestream
5
0
32
@samcook_
Sam Cook
1 year
Now that’s the stuff @htmx_org
Tweet media one
4
1
30
@samcook_
Sam Cook
9 months
@wesbos Just the tiniest amount of pragmatism over purity would have been nice on just this one issue
2
0
30
@samcook_
Sam Cook
8 months
@PlanetScale It's just @aarondfrancis going through global logs and making recs isn't it?
1
0
29
@samcook_
Sam Cook
2 years
@0xedenau “From his phone” not “from Signal servers”
0
0
28
@samcook_
Sam Cook
2 years
@frantzfries Trucker, but it could be the couple. Low-res uploads make it tough. Top left and bottom right both more obviously AI imo.
0
0
28
@samcook_
Sam Cook
4 months
@SolBeckman_ You're deeply missing the point. You can defend the action by pointing to rules and saying you followed them without leaking confidential data. Think for another 2 seconds.
1
0
29
@samcook_
Sam Cook
3 years
Please read this, as well as the sub-threads it quotes, as well as the @cobie articles it references, to give your market psychology a nice little reset as we begin 2022 And, Happy new year everyone!
@punk6529
6529
3 years
1/ On how to make it in crypto as a normal person. There is one rule only: SURVIVE!
411
3K
10K
0
1
27
@samcook_
Sam Cook
10 months
@ryanflorence Apple Music is roughly malware at this point.
2
0
27
@samcook_
Sam Cook
9 months
Ok I'm officially Go-pilled
6
0
25
@samcook_
Sam Cook
9 months
@karrisaarinen I applaud you for raising this issue and all you did here. I really dislike the framing / implication that it would have OK to spam passive investors as long as the founder said it's OK. Um, no, the investors should have to opt in to their info being shared too.
2
0
26
@samcook_
Sam Cook
1 year
@jhooks It’s real. The meme account is fun but the framework is quite mature if you count its full history from originally being a jquery lib. The ideas are really well principled and the author has been vocalizing & evangelizing the htmx approach for years. More than meets the eye.
0
0
23
@samcook_
Sam Cook
10 months
To be sure, this is highly fuzzy -- but the @PlanetScale team has somehow always struck the "adults in the room" vibe perfectly. At least that's how their comms come across to me. No service is perfect, but I think they really get their comms right. Commendable.
0
0
25
@samcook_
Sam Cook
2 years
@AriDavidPaul They were illegally lent out?
1
0
23
@samcook_
Sam Cook
1 year
@roshanpateI That's actually redundant information once you see Calibri
1
1
24
@samcook_
Sam Cook
8 months
@sean_j_roberts There’s definitely some truth to that but can also swing the other way. When you have no “help” from your IDE you’re really forced to design simple, conventional, easy-to-grok APIs.
3
0
24
@samcook_
Sam Cook
6 months
@kentcdodds I haven't tried Effect yet, so take this with a big grain of salt. But to me at the point you go this deep into "fixing" TS, why not just use another language with better overall perf and design, perhaps even one that can compile down to JS for your frontend eg Gleam, Elm, Reason
5
0
24
@samcook_
Sam Cook
2 years
@manuel_frigerio 95% of my lifetime code output is not reflected on my GitHub profile. This is such an incredibly stupid take.
0
0
24
@samcook_
Sam Cook
1 year
@elonmusk @levie It’s not the worst product decision I’ve seen, but it’s up there
1
0
23
@samcook_
Sam Cook
6 months
@wesbos @BosTypeScript Missed opportunity to call it Boston TS Party
1
0
23
@samcook_
Sam Cook
8 months
I'm convinced the whole space would be way better off if the primary learning path were: 1 -- HTML 2 -- Basic VPS hardening & mgmt / Caddy [This is already a very satisfying place!] 3 -- Basic JavaScript 4 -- Vanilla frontends 5 -- React w/ CSS on a just in time basis as you go
7
0
23
@samcook_
Sam Cook
9 months
@htmx_org Was it an offer to renew Office 365?
3
0
23
@samcook_
Sam Cook
1 year
@phuctm97 People are just realizing that it’s an entirely new framework (app dir) and it’s just not as simple or stable as the alternatives at this point (Remix). Inverse of a year ago, when pages dir was status quo & arguably more stable than Remix (I wouldn’t argue that, but you could).
0
1
21
@samcook_
Sam Cook
3 years
Supabase is 🔥
1
2
23
@samcook_
Sam Cook
2 years
@RepTomEmmer @GaryGensler I can’t believe this needs to be said, but having knowledge today about a past event doesn’t mean you had the knowledge at the time…
4
0
21
@samcook_
Sam Cook
4 months
@delightfulcodes @SolBeckman_ Specific dates, specific metrics, specific freaking account settings around notifications? That's super sensitive stuff. Some people might not care, but that's for the customer to decide, not a PR person.
0
0
22
@samcook_
Sam Cook
1 year
@ryanflorence @thekitze @kentcdodds It’s two sliced watermelons per month
0
0
22
@samcook_
Sam Cook
6 months
@jamonholmgren (1) not a doctor, don’t listen to me (2) I’ve never felt physically better in my life than when I did strict carnivore for a few months (3) probably not from anything special in meat but more about removing garbage in other food sources (4) extreme placebo always possible
4
0
22
@samcook_
Sam Cook
10 months
@ProductHunt Did you really post this (a) without a link to the game and (b) suggesting it was created within 24 hours lol
0
0
22
@samcook_
Sam Cook
9 months
@wagslane Also likely leaky in that it lets you discover email : account-existence mapping
8
0
22
@samcook_
Sam Cook
3 years
@remix_run As much as I supported the idea of charging for Remix, this news instantly flipped me from "very cool, wish them the best" to "OK, actually using this for my next project"
0
0
21
@samcook_
Sam Cook
1 year
Front-end development is fundamentally a defensive job. It might be defense against yourself or it might be against someone else, but the fundamental job is defense.
@trashh_dev
trash
1 year
what went wrong
Tweet media one
139
36
883
5
1
20
@samcook_
Sam Cook
7 months
@1Marc I feel like all course instructors should take this as a sign that just switching to another provider isn’t safe. When you factor in account creation, etc., just running a local sidecar in Docker or whatever really isn’t harder / worse.
1
0
21
@samcook_
Sam Cook
6 months
@BTardust @atro0o @madidiaz @Delta It looks like they dropped it out of the plane while it was in the air
1
0
21
@samcook_
Sam Cook
6 months
@anerdguynow If unintentional then there’s no problem. Of course you say in the moment something like “yes, appreciate the correction Jr, it was 100% your idea” (if that’s true). If the other senior is doing this repeatedly then there’s some weird disconnect that needs to be addressed. I
1
0
21
@samcook_
Sam Cook
2 years
@humblearab @srsholmes @NanouuSymeon Certainly wasn't my insinuation, I just disagree with the conclusion (especially the "by miles" part)
2
0
20
@samcook_
Sam Cook
3 years
🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥 // @MegapontNFT
Tweet media one
0
1
20
@samcook_
Sam Cook
9 months
@Rich_Harris Indeed, and if you tell it something incorrect, it will just go with it, which is a different face of the same problem. Largely useless in this latest (I assume less compute intensive) version — wasn’t this bad say 4-5 months ago
2
0
19