Loading comment...
Loading parent story...
Loading comment...
Loading parent story...
Loading comment...
At an elemental level, the materials of a suitcase are more or less identical to an explosive. You won’t easily be able to tell them apart with an x-ray. This is analogous to why x-ray assays of mining ores can’t tell you what the mineral is, only the elements that are in the minerals.
FWIW, I once went through an airport in my travels that took an infrared spectra of everyone’s water! They never said that, I recognized the equipment. I forget where, I was just impressed that the process was scientifically rigorous. That would immediately identify anything weird that was passed off as water.
[1] https://en.wikipedia.org/wiki/Spectral_imaging_(radiography)
No matter how much I tried to force it to stick to a mostly line-by-line port, it kept trying to "improve" the code. At some point it had to undo everything as it introduced a number of bugs. I asked it: "What should I add to your prompt so you won't do this again?" and it gave me this:
### CRITICAL LESSON: Don't "Improve" During Porting
- **BIGGEST MISTAKE: Reorganizing working code**
- **What I did wrong:** Tried to "simplify" by splitting `createStartButton()` into separate creation and layout methods
- **Why it failed:** Introduced THREE bugs:
1. Layout overlap (getY() vs getY() - getHeight())
2. Children not sized (Group.setSize() doesn't affect children)
3. Origins not updated (scaling animations broken)
- **The fix:** Deleted my "improvements" and copied the original Android pattern faithfully
- **Root cause:** Arrogance - assuming I could improve production-tested code without understanding all the constraints
- **Solution:** **FOLLOW THE PORTING PRINCIPLES ABOVE** - copy first, don't reorganize
- **Time wasted:** ~1 hour debugging self-inflicted bugs that wouldn't exist if I'd just copied the original
- **Key insight:** The original Android code is correct and battle-tested. Your "improvements" are bugs waiting to happen.
I like the self-reflection of Claude, unfortunately even adding this to CLAUDE.md didn't fix it and it kept taking wrong turns so I had to abandon the effort.[1] https://github.com/anthropics/claude-code/blob/main/plugins/...
But these open weight models are tremendously valuable contributions regardless.
Who do you know who is currently sitting in a seat of massive power in the US Government, watches TV and says things like, "I need to have that! Why do we not have that already? It will project strength, and all the best governments project strength at every opportunity!"