Jump to content

Coding Experiments

From Slow Like Wiki
Revision as of 06:00, 29 December 2025 by Robert.adlington (talk | contribs) (Created page with "== Setup == This was surprisingly easy. I already had a personal github, but needed to install the iOS app. Once that was done, Claude Code walked me through linking to it. CC will create a branch and do its work, but then I need to manually create a PR to merge that branch to main. This is probably a good guardrail for real development work == Triangle Generator == I started in a very informal manner, getting CC to generate a random right angled triangle and to provide...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Setup

This was surprisingly easy. I already had a personal github, but needed to install the iOS app. Once that was done, Claude Code walked me through linking to it. CC will create a branch and do its work, but then I need to manually create a PR to merge that branch to main. This is probably a good guardrail for real development work

Triangle Generator

I started in a very informal manner, getting CC to generate a random right angled triangle and to provide various information (angles, lengths, sin, cos, tan, etc) about it. Then, dictating additional prompts into my phone, I went through various iterations, adding additional triangle types (isosceles, equilateral, scalene), additional info (circumcenter, incenter, centroid, and orthocenter) and improving the UI. The appropriate display of angle and side names and values in the canvas area seemed to cause many issues, and in several iterations the display of the triangle was clearly incorrect, through calculated values seemed to be right.

Random Robby

This time, I'm going to be more formal, and spec out what I want and ask CC for a plan before building:

Prompt:

I want to create a page to generate random outcomes. The screen should show a logo "Random Robby" and below it, five six-sided dice rolling for two seconds and then each settling randomly on one side. A button, "Go" should allow me to roll again. The user can choose to roll from one to five dice, and for the dice to have from two to ten sides. If two sides are chosen, then the animation should show coins flipping. It should be optimized for mobile. Make a plan to code this, giving justifications for technology and coding choices.