Sign in

Peter Kellner

@pkellner.bsky.social
2.3K followers 579 following 190 posts

Pluralsight author focusing on React. Silicon Valley Code Camp organizer.

PostsRepliesMedia
Peter Kellner @pkellner.bsky.social · 25/05/2026
@karaswisher.bsky.social @profgalloway.com @pivotpod.bsky.social I can’t believe that you said the Supreme Court stays away from interfering with state supreme courts. Bush v Gore? I can’t think of a more consequential override. How is this different?
020
Peter Kellner @pkellner.bsky.social · 21/02/2026
I often check to see what’s new on the React blog, and it would be nice to see some positive news instead of always seeing this. react.dev/blog/2025/12.... @react.dev
react.dev
Denial of Service and Source Code Exposure in React Server Components – React
The library for web and native user interfaces
020
Peter Kellner @pkellner.bsky.social · 27/01/2026
peterkellner.net/2026/01/09/u...
peterkellner.net
Understanding React's useEffectEvent: A Complete Guide to Solving Stale Closures | Peter Kellner's Blog
React 19.2's useEffectEvent hook eliminates the useRef workaround pattern for accessing latest state in Effects. Learn when and how to use it.
010
Peter Kellner @pkellner.bsky.social · 26/01/2026
peterkellner.net/2026/01/09/u...
peterkellner.net
Understanding React's useEffectEvent: A Complete Guide to Solving Stale Closures | Peter Kellner's Blog
React 19.2's useEffectEvent hook eliminates the useRef workaround pattern for accessing latest state in Effects. Learn when and how to use it.
000
Peter Kellner @pkellner.bsky.social · 31/12/2025
Updating passwords to mysql use to be a hassle until AI helped writing all those crazy scripts. best practices is one user/password per catalog. That's a lot of users and passwords! peterkellner.net/2025/12/31/a...
peterkellner.net
Using AI to Create Secure MySQL Password Rotation Scripts (Without Exposing Secrets) | Peter Kellner's Blog
How to leverage AI assistants to build password management scripts while keeping your actual credentials completely private.
010
Peter Kellner @pkellner.bsky.social · 09/10/2025
Learnings From Coding with AI (Claude Code): This may be my last in this series (if anyone is listening). At ReactConf, I learned a lot (including from @leerob.com) and have switched From CC to Cursor. So far, the honey moon is going great! I need a new name "Learnings From ??:" Suggestions?
000
Peter Kellner @pkellner.bsky.social · 08/10/2025
@caledhwa.bsky.social you don’t look like a fat biker.
media.tenor.com
a man riding a bike down a street with a drum that says gimbrinhas
ALT: a man riding a bike down a street with a drum that says gimbrinhas
110
Peter Kellner @pkellner.bsky.social · 08/10/2025
Learnings From Coding with AI (Claude Code): I wish Claude Code was like a junior programmer in that when you teach it something, it remembers the technique for the next time. for me, it's like groundhog day, everyday.
120
Peter Kellner @pkellner.bsky.social · 07/10/2025
Learnings From Coding with AI (Claude Code): It's hard to believe there isn't some thinking going on here. Claude admits its fallacies.
011
Peter Kellner @pkellner.bsky.social · 02/10/2025
Only in New York, at JFK checking in, told the lady that my extra bike charge of $200 was nothing compared to the hotel for 450 last night. She said they should’ve bathed you for that much.
000
Peter Kellner @pkellner.bsky.social · 28/09/2025
Learnings From Coding with AI (Claude Code): "Are you again adding useEffect when you should be calculating values form existing state, and understanding that state changes cause un-needed re-renders?". I'm so tired of saying this even though I have it clearly in my `claude.md` file.
011
Peter Kellner @pkellner.bsky.social · 27/09/2025
Learnings From Coding with AI (Claude Code): When seeing context available at the bottom get low (like less then 5%), don't think about asking another question that might lead to "compacting...". Nothing ever comes out right for me after compacting. Do: /clear and restart conversation fresh.
000
Peter Kellner @pkellner.bsky.social · 27/09/2025
Learnings From Coding with AI (Claude Code): I use to have more faith and even wanted a more headless experience with CC. Now, I've learned to watch it carefully and constantly type feedback as it does stuff. It apprecaites it :). CC: "now I understand the problem better, thanks for clarifying"
000
Peter Kellner @pkellner.bsky.social · 24/09/2025
Learnings From Coding with AI (Claude Code): Not exactly a learning, but I wish Claude Code would learn from what I tell it. I makes the same mistakes over and over and over. Maybe @anthropic.com will someday, or someone else like @openai.com will.
020
Peter Kellner @pkellner.bsky.social · 24/09/2025
Learnings From Coding with AI (Claude Code): "I see the issue! The isPaused prop only affects the DISPLAY - it doesn't actually stop the status checking". Always be extra extra clear when asking for updates. It just changed the button labels, not the functioning
010
Peter Kellner @pkellner.bsky.social · 20/09/2025
Learnings From Coding with AI (Claude Code): Does it bother anyone else that CC iterates until it gets a successful compile and then declare it working? (that is, when node and typescript at least). I have to explicitly tell it to write tests which it often doesn't like to do.
100
Peter Kellner @pkellner.bsky.social · 19/09/2025
Hey follow claude code travellers @anthropic.com, I've been posting "Learnings From Claude Code" for quite a while and not getting much/any traction. Any suggestions?
100
Peter Kellner @pkellner.bsky.social · 19/09/2025
Learnings From Coding with AI (Claude Code): "The problem is in phase1-metadata-discovery.ts. Someone added a misguided "optimization" that blindly adds all child folder metadata paths". Guess who "someone" was
010
Peter Kellner @pkellner.bsky.social · 18/09/2025
Learnings From Coding with AI (Claude Code): When I find a code problem, I make CC build a test to demonstrate the problem and the failure. Then I make it fix that test to work. Then iterate on this: " Hmm, my test isn't reproducing the exact bug."
000
Peter Kellner @pkellner.bsky.social · 08/09/2025
Learnings From Coding with AI (Claude Code): Claude Code does not think like us. I find it often undoes what I asked it to do in a previous context if my next request touches that. It doesn't remember why it did, it just does again as if it were a robot (wait, it is a robot)
000
Peter Kellner @pkellner.bsky.social · 16/08/2025
Me: Never ever ever have code that "adds a small delay". that is just really bad programming style, indicating the developer is an idiot and lazy which you are not. Claude Code: You're absolutely right. Let me fix this properly by removing that terrible delay.
000
Peter Kellner @pkellner.bsky.social · 16/08/2025
Learnings From Coding with AI (Claude Code): To those who think serious architecture skills are not need to build apps with AI, read this planning doc I wrote for a refactor. It took an initial rough prompt of what I wanted, then about 20 refinements. gist.github.com/pkellner/06b...
gist.github.com
A plan I created in Claude Code to do a significant refactor
A plan I created in Claude Code to do a significant refactor - REFACTOR-HIERARCHY-JS.md
030
Peter Kellner @pkellner.bsky.social · 15/08/2025
Learnings From Coding with AI (Claude Code): If you are using Claude Code (like me and paying $200/month), and you are not using context7, you are missing out on the lastest features in the packages you use (like React, Node and Next.js)
100
Peter Kellner @pkellner.bsky.social · 30/07/2025
React is still king! @react.dev
010
Peter Kellner @pkellner.bsky.social · 30/07/2025
Who (besides me) did not know that with @nextjs code like this: import Image from 'next/image' export default function Page() { return ( <Image src="s3.amazonaws.com/my-bucket/x.png” width={500} height={500} /> ) } The image goes thru your own server?
110
Peter Kellner @pkellner.bsky.social · 13/07/2025
Learnings From Coding with AI (Claude Code): CC can create complex architectures and still needs humans to help. I posted a long paragraph of good senior guidance, and it responded: "You're absolutely right! The current architecture is indeed convoluted. Your proposed solution is much cleaner:"
000
Peter Kellner @pkellner.bsky.social · 09/07/2025
Learning From Coding With AI (Claude): OMG! started using Claude Code. OMG OMG OMG!!! I've paid the $200. I'd pay more. I can't believe how much this makes what I was doing with cutting and pasting feel like I was living in ancient times. Mind blown.
react.dev
010
Peter Kellner @pkellner.bsky.social · 17/06/2025
Learning From Coding With AI (Claude): Todays learning is that for relatively new tech like React's useActionState, react.dev/reference/re..., even when you give claude the doc link, it still really screws up the implementation adding all kinds of crazy extra useState and useEffect calls.
react.dev
useActionState – React
The library for web and native user interfaces
010
Peter Kellner @pkellner.bsky.social · 16/06/2025
WhooHoo! conf.react.dev here I come.
conf.react.dev
React Conf 2025 | October 7-8 | Henderson, Nevada & online | Join us!
010
Peter Kellner @pkellner.bsky.social · 06/06/2025
@karaswisher.bsky.social and @profgalloway.com I was so sure you were going to continue today when you use the professional wrestling analogy, and point out this is all staged just like that. I was expecting Scott to say check who made money when the stop dropped.
000
Peter Kellner @pkellner.bsky.social · 01/06/2025
Learning From Coding With AI (Claude): Turns out openai o3 now offers zip downloads for individual files. Big time saver! I don't think Claude can do that yet. Especially for things like REST API routes in next.js. Win for openai!
000
Peter Kellner @pkellner.bsky.social · 28/05/2025
Patiently waiting to see if I win the lottery and get to buy a ticket to React Conf in Vegas.
media.tenor.com
a cartoon drawing of a person pressing a f5 key
ALT: a cartoon drawing of a person pressing a f5 key
000
Peter Kellner @pkellner.bsky.social · 28/05/2025
Learning From Coding With AI (Claude): Code generation often gives you more than you ask. I just had ai build me a simple wrapper around loading data so I could refresh easily. Claude decided to see if my query changed, and if not, don't refresh. Others may have changed the data (my point)
000
Peter Kellner @pkellner.bsky.social · 27/05/2025
@karaswisher.bsky.social why did you let @profgalloway.com get away with equating the importance of a person with whether they get a PSA test. Scott quoted a doctor who would never do that. Tons of sources! Very disappointed. www.renalandurologynews.com/news/men-old...
renalandurologynews.com
Men Older Than 70 Years Continue to Be Overscreened for Prostate Cancer
A nationwide survey finds that many older men are overscreened for prostate cancer, despite more harm than benefit with age.
010
Peter Kellner @pkellner.bsky.social · 27/05/2025
Hey @ricky.fm , are you taking "issues" or bug reports with good repros on ViewTransitions? I'm loving them but have some odd behavior that is likely me somehow, but on the outside chance it's not, love to file a clean issue (not completely isolated into simple example, but will if helps).
100
Peter Kellner @pkellner.bsky.social · 15/05/2025
Learning From Coding With AI (Claude): It's easy to get lazy and watch Claude generate engineering debt. I keep adding new rules, but I'm up to over 37 rules now and that seems to be more than it can follow. It violates them all the time compared to when I had fewer.
000
Peter Kellner @pkellner.bsky.social · 15/05/2025
Wow! sometimes, you when don't pay attention for a year or so to a market... this happens .... Exclusive WD Red® Bundle Deals Buy 2 WD Red® 26TB^ Drives for $999.98.**
000
Peter Kellner @pkellner.bsky.social · 13/05/2025
Learning From Coding With AI (Claude): Always double check that AI doesn't throw things away. me: what did you do with all the nice compare stuff claude: You're right, I inadvertently removed the nice comparison view functionality...
100
Peter Kellner @pkellner.bsky.social · 11/05/2025
Learning From Coding With AI (Claude): What AI excels out is things like "create a react component that views JSON in a collapsible way only showing shorter content directly, but providing an expando icon for larger sections.
000
Peter Kellner @pkellner.bsky.social · 03/05/2025
Learning From Coding With AI (Claude): Todays aha is that when reviewing React code Claude created, I find it odd, and not at all best practices, but gets the job done. For example, it sprinkled in getElementById calls thought a form. Clever, but very odd.
010
Peter Kellner @pkellner.bsky.social · 02/05/2025
Learning From Coding With AI (Claude): When Claude goes off the rails.... don't follow it.
010
Peter Kellner @pkellner.bsky.social · 28/04/2025
Learning From Coding With AI (Claude): OK, not just about Claude. I've found it useful to have both OpenAI and O3 as well as Claude. O3 tends to be better at "just fix one file" where as Claude seems to be better at integrating a bunch. When one is over limits, I go to other and work on diff code.
000
Peter Kellner @pkellner.bsky.social · 18/04/2025
Sometimes, with TypeScript, using "as" is the work of the devil. Just sayin...
020
Peter Kellner @pkellner.bsky.social · 18/04/2025
Learning From Coding With AI (Claude): When Sonnet 7 puts some state changing code in a JavaScript finally block, don't say to yourself "I guess that is OK". instead say "Bad Claude, Bad!"
claud.io
Claudio Ciaravolo :: Psichiatra :: Creattivo :: Legend buster :: Autore :: Scrittore
Claudio Ciaravolo è psichiatra di nascita e napoletano di professione.Di religione catodica. Creattivo a tempo pieno.Lavora poco e si diverte molto.
000
Peter Kellner @pkellner.bsky.social · 17/04/2025
Just learned this JavaScript console.log trick from Claude. No need to mention name twice! (go DRY)
010
Peter Kellner @pkellner.bsky.social · 17/04/2025
Learning From Coding With AI (Claude): AI can get lazy with variable naming causing major code debt if not careful. For example, I had a have tables lessons and courseItemLessons. Claude decided to do this: const lessons : courseItemsLessons[]; Hours of grief to fix updated logic later.
000
Peter Kellner @pkellner.bsky.social · 16/04/2025
Learning From Coding With AI (Claude): AI will generate a huge amount of insecure code without even a note telling you that. I just asked it to create a bunch of CRUD REST API's, and then it occurred to me, none of them are secure. Note to self: Pay more attention!!!
010
Peter Kellner @pkellner.bsky.social · 16/04/2025
Learning From Coding With AI (Claude): Stick to popular patterns because AI has the most experience with them. For example, I love to CRUD with React RSC's, but AI is so so much better at building REST services then it is React Server Functions and Actions.
001
Peter Kellner @pkellner.bsky.social · 24/03/2025
This is a good reason never to send private information like bank account numbers or Social Security numbers as text messages. www.nbcnews.com/news/us-news...
nbcnews.com
AT&T says hackers stole records of nearly all cellular customers' calls and texts
The data contains records of calls and texts between approximately May 1 and Oct. 31, 2022, and on Jan. 2, 2023.
010
Peter Kellner @pkellner.bsky.social · 13/03/2025
First presentation in a really, really long time. www.meetup.com/sandiegosoft...
meetup.com
(1) AI Engineering with React (2) Coding Vibes and (3) SvelteKit Layouts, Tue, Mar 25, 2025, 5:30 PM | Meetup
A couple of lightning talks, followed by the main event: (1) Lightning Talk 1: Creating a SvelteKit Layout Engine with Grant Hulbert (2) Lightning Talk 2: What's your Codi
130