<story><title>Build your front end in React, then let ChatGPT be your Redux reducer</title><url>https://spindas.dreamwidth.org/4207.html</url></story><parent_chain><item><author>mintplant</author><text>Hi HN! I&amp;#x27;ve been playing around with ChatGPT a bunch since it came out. This experiment has a little bit of a backstory. Some friends and I were out at a pho restaurant; one of us put the whole bill on his card, so the rest of us needed to figure out how much to Venmo him. We were talking about how many bill-splitting apps there are, and I made a joke about doing it with ChatGPT. Then I actually tried it out.&lt;p&gt;I OCR&amp;#x27;d the text with Google Lens, described who had what, and after a bit of prompt engineering (e.g., adding &amp;quot;Be sure to get your math correct&amp;quot; to make the AI&amp;#x27;s arithmetic check out, and convincing the AI to split shared items evenly), it totally worked: &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;gist.github.com&amp;#x2F;spinda&amp;#x2F;967322dda1c04d9864f3efd45addca13&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;gist.github.com&amp;#x2F;spinda&amp;#x2F;967322dda1c04d9864f3efd45addc...&lt;/a&gt;&lt;p&gt;Then I started experimenting with describing a hypothetical check-splitting app to the AI, and asking it to feed me JSON commands to update the UI in response to messages from me telling it what the user was doing. The results were promising! And then the similarity to the Redux data loop jumped out, and I built this generic plugin to wire ChatGPT up to apps for real.</text></item></parent_chain><comment><author>Gigachad</author><text>Cool project, but it reminds me of one of the golden rules of AI “if you can solve it with a simple rules based system, you should”&lt;p&gt;Having to tell chatGPT to make sure it gets it’s math right is not confidence inspiring.</text></comment>
<story><title>Build your front end in React, then let ChatGPT be your Redux reducer</title><url>https://spindas.dreamwidth.org/4207.html</url></story><parent_chain><item><author>mintplant</author><text>Hi HN! I&amp;#x27;ve been playing around with ChatGPT a bunch since it came out. This experiment has a little bit of a backstory. Some friends and I were out at a pho restaurant; one of us put the whole bill on his card, so the rest of us needed to figure out how much to Venmo him. We were talking about how many bill-splitting apps there are, and I made a joke about doing it with ChatGPT. Then I actually tried it out.&lt;p&gt;I OCR&amp;#x27;d the text with Google Lens, described who had what, and after a bit of prompt engineering (e.g., adding &amp;quot;Be sure to get your math correct&amp;quot; to make the AI&amp;#x27;s arithmetic check out, and convincing the AI to split shared items evenly), it totally worked: &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;gist.github.com&amp;#x2F;spinda&amp;#x2F;967322dda1c04d9864f3efd45addca13&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;gist.github.com&amp;#x2F;spinda&amp;#x2F;967322dda1c04d9864f3efd45addc...&lt;/a&gt;&lt;p&gt;Then I started experimenting with describing a hypothetical check-splitting app to the AI, and asking it to feed me JSON commands to update the UI in response to messages from me telling it what the user was doing. The results were promising! And then the similarity to the Redux data loop jumped out, and I built this generic plugin to wire ChatGPT up to apps for real.</text></item></parent_chain><comment><author>quadcore</author><text>Pretty sure you&amp;#x27;ve invented something here. A coolest form of copilot. A new way of programming. This is really lispy, this is really cool. Love it 10 times.</text></comment>