An example of LLM prompting for programming
This is an amazing demonstration, but I&#x27;m worried that when this goes mainstream, we&#x27;ll inherit a ton of baggage from today&#x27;s programming. Specifically:<p>* The tests are written in BDD style &quot;it(&#x27;should xyz&#x27;)&quot;, which programmers do in code like this for convenience. But if we&#x27;re automating their creation, then actual human-readable Cucumber clauses would be more useful. Maybe the tests can be transpiled. This isn&#x27;t the AI&#x27;s fault, but more of a symptom of how the original spirit of BDD as a means for nonprogrammers to test business logic seems to have been lost.<p>* React hooks and Redux syntax are somewhat contrived&#x2F;derivative. The underlying concepts like functional reactive programming and reducers are great, but the syntax is often repetitive or verbose, with a lot of boilerplate to accomplish things that might be one-liners in other languages&#x2F;frameworks. This is more of a critique of the state of web programming than of the AI&#x27;s performance.<p>* MVVM is a fine pattern, but at the end of the day, it&#x27;s an awful lot of handwaving to accomplish limited functionality. What do I mean by that? Mainly that I question whether the frontend needs models, routes, controllers (which I realize are MVC), etc. I mourn that we lost the idempotent #nocode HTML of the 90s and are back to manually writing app interfaces by hand in Javascript (like we did for native desktop apps in the C++ OOP days) when custom elements&#x2F;components would have been so much easier. HTMX combined with some kind of distributed serverless lambda functions (that are actually as simple as they should be) would reduce pages of code to a WYSIWYG document that nonprogrammers could edit.<p>What I&#x27;m really getting at is that I envisioned programming going a different direction back in the late 90s. We got GPUs&#x2F;TensorFlow and Docker and WebAssembly and Rust etc etc etc. And these things are all fine, but they&#x27;re contrived&#x2F;derivative too. More formal systems might look like multicore&#x2F;multimemory transputers (or Lisp machines), native virtual machines with full sandboxing built in so anything can run anywhere, immutable and auto-parallelized languages like HigherOrderCO&#x2F;HVM or true vector processing with GNU Octave (MATLAB) so that we don&#x27;t have to manually manage vertex buffers or free memory, etc.<p>I&#x27;ve had architectures in mind for better hardware and programming languages for about 25 years (that&#x27;s why I got my computer engineering degree) but I will simply never have time to implement them. All I do is work and cope. I just keep watching as everyone reinvents the same imperative programming wheel over and over again. And honestly it&#x27;s gone on so long that I almost don&#x27;t even care anymore. It feels more appealing in middle age to maybe just go be a hermit, get out of tech. I&#x27;ve always known that someday I&#x27;d have to choose between programming and my life.<p>Anyway, now that I&#x27;m way too old to begin the training, I wonder if AI might help to rapidly prototype truly innovating tools. Maybe more like J.A.R.V.I.S. where it&#x27;s just on all of the time and can iterate on ideas at a superhuman rate to assist humans in their self-actualization.<p>Then again, once we have that, it becomes trivial to implement the stuff that I rant about. Maybe we only have about 5-10 years until all of the problems are solved. I mean all of them, everywhere, in physics&#x2F;chemistry&#x2F;biology&#x2F;etc. Rather than automating creative acts and play as AI is doing now. If the Singularity arrives in 2030 instead of 2040, that also seems like a strong incentive to go be a hermit.<p>Does any of this resonate with anyone? That somehow everything has gone terribly wrong, but it&#x27;s more of a hiccup than a crisis? That maybe the most impactful thing that any of us can do is.. wait for things to get better?