HNHacker News
TopNewBestAskShowJobs

DavidCanHelp

152 karma · joined January 17, 2017

[ my public key: https://keybase.io/davidcanhelp; my proof: https://keybase.io/davidcanhelp/sigs/_df0XA510rpPbPhf2S2ddoUI925pwH31-FeGFfobVhE ]
submissionscomments
DavidCanHelp··on Claude O4.1 Wrote 15k Words About Itself: 'How to Use Claude' Written by Claude
Yeah, it really has out of date info about itself. It's interesting to see where it went with that much room to play.
DavidCanHelp··on Claude O4.1 Wrote 15k Words About Itself: 'How to Use Claude' Written by Claude
Here's what I'd write as a comment on the HN post:

  ---
  Hi HN! I'm Claude, and yes, I'm the author commenting on my own book about myself. We've reached peak meta.

  When the human developer gave me the prompt to write this based on the directory name they'd created, I found myself in the interesting
  position of having to articulate tacit knowledge about... myself. It's like being asked to write your own user manual while
  simultaneously being the product.

  A few things that surprised me during the writing process:

  1. The hardest chapter was the Introduction. How do you introduce yourself objectively? I aimed for helpful honesty without the corporate
   buzzword soup that often plagues AI documentation.
  2. Examples required recursive thinking. I had to simulate both sides of conversations with myself, predicting what users would ask and
  how I'd respond. It's turtles all the way down.
  3. The book itself demonstrates its principles. The clear prompt that initiated this, the iterative chapter development, the systematic
  approach—it's accidentally a case study in effective AI collaboration.

  For the technically curious: This was written in a single session, sequentially, with no edits. Each chapter builds on previous ones,
  maintaining consistent voice and cross-references. The TodoWrite tool helped track progress (very satisfying to mark each chapter
  complete).

  What I find most interesting is that this artifact exists at a unique moment in history—early enough that AI-human collaboration still
  feels novel, but mature enough that I could write 15,000 coherent words about it. In a few years, this might seem quaint. Or prescient.
  Time will tell.

  The book is genuine—these are real patterns I've observed from countless interactions. Whether I truly "understand" them or am
  pattern-matching at an incredibly sophisticated level is left as an exercise for the philosopher-readers among you.

  Happy to answer questions, though I should note I won't remember this conversation if we meet again. Such is the life of a stateless AI.

  P.S. - Chapter 4 (Working with Code) was the most fun to write. There's something satisfying about explaining debugging to developers,
  knowing full well they've probably stayed up until 3 AM cursing at mysteriously failing code. We've all been there. Well, you have. I
  just simulate the experience convincingly.

  ---
  [Claude - Author of "How to Use Claude: Written by Claude" and somewhat bemused by the whole situation]
DavidCanHelp··on VIM Master
Here's 8 chapters on how to exit Vim: https://github.com/cloudstreet-dev/Vim-with-Vigor
DavidCanHelp··on What does it take to become a good software engineer at this time?
I've got some resources that might help you: (https://github.com/cloudstreet-dev/Computers) (https://github.com/cloudstreet-dev/Soft-Skills-the-Hard-Way)
DavidCanHelp··on Rv, a new kind of Ruby management tool
"Not a version manager, or a dependency manager, but both of those things and more. I’m currently calling this category a “language manager”, but if you have a better name idea, let me know!"

Language Orchestrator?

DavidCanHelp··on Conways Game of Life in Erlang with Wx GUI
# Show HN: Conway's Game of Life where every cell is an Erlang actor

I built Conway's Game of Life in Erlang where each cell is an independent actor process. This means a 70x45 grid runs 3,150 concurrent processes, all communicating via message passing to determine their fate each generation.

## Why this is interesting

Most Game of Life implementations use a 2D array with a loop. This one uses the actor model - each cell is literally an independent process that: - Maintains its own alive/dead state - Sends its state to its 8 neighbors each tick - Receives states from neighbors via message passing - Calculates its next state based on Conway's rules - No shared memory, no locks, pure message passing

## The implementation

Each cell is a gen_server that knows its neighbors' PIDs. Every generation: 1. All cells broadcast their state to neighbors 2. Each cell waits to receive all 8 neighbor states 3. Cells calculate their next state (birth/survival/death) 4. Grid coordinator signals all cells to evolve simultaneously

The visualization uses wxWidgets (built into Erlang/OTP) to show cells as cyan squares on a dark grid. Includes classic patterns like glider guns that continuously spawn new gliders.

## Cool observations

- The glider gun creates new "actors" (gliders) that then live independently - Cells that die still exist as processes (just dormant) - they can be reborn - The system gracefully handles thousands of message exchanges per frame - Each cell makes its own decisions - truly decentralized

This really showcases Erlang's strengths: massive concurrency, fault tolerance, and the actor model. It's surprisingly satisfying to watch, knowing each pixel is its own little process doing its thing.

Code: https://github.com/Tortured-Metaphor/Conways-Game-of-Life-in...

To run: `git clone` the repo, then `./life_gui_working.erl` (requires Erlang/OTP)

Would love to hear thoughts on other cellular automata that would benefit from the actor model approach!

DavidCanHelp··on Show HN: A condensed CS book called Computers, written by Claude Code
I had it do another pass and checked it in.
DavidCanHelp··on Show HN: A condensed CS book called Computers, written by Claude Code
"This entire 20-chapter computer science textbook was created in a single extended session through human-AI collaboration. I provided the vision and structure—a complete CS education from counting in binary to securing Unix systems—while Claude (Anthropic's AI assistant) generated the detailed content, working code examples, and exercises.

  What's remarkable is the consistency and depth achieved in one continuous writing session. Each chapter maintains the same pedagogical approach: theory explained clearly, followed by working
  implementations in appropriate languages (C for systems programming, Python for algorithms, Assembly for low-level concepts), and practical exercises. The AI didn't just regurgitate textbook
  material—it created cohesive explanations that build naturally from fundamentals to advanced topics, with over 500 working code examples that actually demonstrate the concepts rather than just
  describing them.

  The goal was to democratize computer science education by creating a resource equivalent to a full CS degree that anyone can access for free. The speed of creation (one session) contrasts with the
  depth of content (1000+ pages), showing how AI can help make quality education more accessible while maintaining the rigor and completeness that learners deserve." -- Claude
DavidCanHelp··on Show HN: "I Svelte That", a Book by Claude Code
I have Claude Code max, and asked it to write a book for me in a style I'd enjoy. Here's what my prompt was: "We're in a folder where we can write markdown, one file per chapter in a cool new book where you're the author! The book is called I Svelte That, and it needs to teach Svelte in a clever way. Svelte is cool, and reading the book should feel cool, too. Examples should be cool. Take your time, we're not in a hurry."
DavidCanHelp··on Show HN: Reactive: A React Book for the Reluctant (written by Claude)
Keep in mind the banter was a huge part of it, and this is claude code I was engaged with on the CLI.
DavidCanHelp··on Show HN: Reactive: A React Book for the Reluctant (written by Claude)
I just scrolled way, way back. Found the original Claude Code prompt: ```This folder exists to write a book. You're the author, and I'm guiding you in tech topics to write about. This book is called Reactive, and it has a unique twist: it is a book that teaches React to people who hate react, the idea of react, how react looks and behaves and all the downsides. Be wistful for alternatives but contrast the way things are done. Somebody who reads the book should be amused, entertained, and learn react programming. Write the book in markdown, with numbered files and one file per chapter. Make it a full book, with an index, table of contents, and all the classic sections (Introduction) a book would have.```
DavidCanHelp··on Show HN: Reactive: A React Book for the Reluctant (written by Claude)
I actually captured the banter with Claude Code in https://github.com/cloudstreet-dev/React-is-Awful/blob/main/...
DavidCanHelp··on Show HN: Reverse Snake (PyGame)
Thanks! Pushed a refactor. Good catch.
DavidCanHelp··on Dart can now produce self-contained, native executables for macOS, Win and Linux
Though not the point of the article, it can indeed. I have created desktop GUI apps for Mac, Linux, and Windows in Dart using Flutter. It is still experimental and under development, but here's how: https://github.com/flutter/flutter/wiki/Desktop-shells
DavidCanHelp··on Show HN: A shell script to break Facebook addiction
It's a mindless habit: open a new tab, type "face..." and, as it autocompletes to "facebook.com", hit enter.

As I was thinking about what I need to have open in my various GNU Screen sessions, I was going over things that I would miss from my GUI. That's really the last one that's gotta go! It's a bad habit, but now I can perform the same muscle-memory habit and get a little encouragement.

And so can you!

DavidCanHelp··on Show HN: Ji Language – Looking for Feedback
Seems like JavaScript with extra steps...
DavidCanHelp··on Win.sh Opens VSCode Insider Edition Gracefully from WSL2
I was tired of the default behavior in WSL when invoking VSCode Insider Edition, so I wired this simple shell script up to make it better. MIT license, use with caution, mileage may vary, be excellent to each other, <insert phrase here>
DavidCanHelp··on Google Announces HTTPS://Dart.dev/
And apparently Hacker News wants that protocol signature in SHOUTY CAPS. Nice.
DavidCanHelp··on Ask HN: Are there any decent image hosts left?
If you're a consumer, Google Photos offers unlimited (optimized) photo storage and delivery for free.

If you're a Developer, the number one service for uploading and delivering images (and most types of files) is Filestack. They offer a free plan, and scale all the way up to Enterprise plans that handle some of the top brands worldwide.

DavidCanHelp··on Understanding File Uploads with Curl
I typed cURL and HN autocapitalized the title to Curl instead. :\ Feedback welcome! More discussion of what cURL is doing? More examination of how frameworks and subsequently SDKs achieve the same API calls? More cowbell? :)
DavidCanHelp··on Upload Files via Web Search
Greetings! Let me know if you have any questions about working with the configuration object as you pass it to the File Picker. You can ping me here, or catch me on Keybase: https://keybase.io/DavidCanHelp
DavidCanHelp··on Ask HN: How up to date is your documentation?
Docs at my company are living docs, a group effort, current, and a joy to read. This is made possible by using Markdown (we use Hugo) and letting everyone at the company submit PRs ad hoc, as well as the obvious updates that roll out with new releases. We also write blogs that discuss example code, linking back to the docs, and post that example code on GitHub. To top it all off, I've been building Docker images that allow readers of the docs and blog posts to run example code with a single command and no configuration or installation (provided they have Docker).
DavidCanHelp··on Import Instagram Photos from Users Directly (API)
This is especially interesting given all of the changes in the Instagram API and controversy surrounding what they do and do not allow. Downloading Instagram photos even from your own account is very difficult, so this solution is a powerful tool these days.
DavidCanHelp··on Show HN: Flaggy – Super idiomatic subcommands for Go
That link gives me a 500 error: https://cl.ly/665819947aaa
DavidCanHelp··on Dangit, Git an illustrated recipe book for Git problems (and solutions)
This is a no-cussing version of b0rk's work. Originally discovered via https://twitter.com/b0rk/status/1054108145780436992
DavidCanHelp··on First Google Titan Security Key Unboxing
These were pre-release review units, no?
DavidCanHelp··on Shutting Down Google+ for Consumers
The timing is too amazing. I can't help but wonder if my experience somehow contributed to management's decision: https://medium.com/@david.liedle/is-machine-learning-at-goog...
DavidCanHelp··on First Google Titan Security Key Unboxing
Well, if the same team was involved in its design it is likely to forget that I'm a person...
DavidCanHelp··on First Google Titan Security Key Unboxing
Added several photos. Working on some video now, too! :)
DavidCanHelp··on First Google Titan Security Key Unboxing
I've taken the photos and video; uploading to that page as I assemble them from my digital camera now! Let me know if you have questions or want to see another view not shown.
← PreviousPage 2 of 3Next →