Charles exposed me to the expression vibe coding, which is when you give AI prompts, clues, and parameters in plain language (your vibes, basically) so that it can generate code to give you what you want. For the relatively simple task of vibe coding five-question quizzes for my quiz/test site, I had been using ChatGPT, which had done a decent job. But ChatGPT outright balked when, tonight, I presented it with a much more ambitious quiz: my Do You Deserve to Vote? quiz. I uploaded the MS Word document with all of the quiz questions and coding parameters... and ChatGPT simply froze. Refreshing did nothing. Re-uploading did nothing. Waiting for minutes did nothing. The whole thing was a waste of time, so I switched over to Grok, which spat out code (janky code) in under a minute, and it didn't slow down when I embarked upon the slow, painful revision/reiteration process. (I might think about subscribing to Grok; I'm already subscribed to ChatGPT.)
Unfortunately, what happened next with Grok was the same thing that normally happens with ChatGPT: I got to a point where almost half of the code was looking good, then Grok began to introduce errors in its subsequent drafts of code that started undoing all of the work it had done. Luckily, I was able to find an earlier draft where Grok had successfully coded three out of six sections of my quiz, so I've got that code saved in Blogger for the moment. I might try manually coding the rest of the quiz myself; so long as the code follows the same pattern in each of these sections, things ought to be okay. But there's also a good chance that I might mess things up worse than Grok had been doing, so I'll need to keep a copy of Grok's best code thus far to use as a jumping-off point for when I work with the AI Thursday afternoon. This may take longer than I'd originally thought. But it'll teach be a lot about coding, vibe coding, and what my and the AI's limits are. So for the moment, there's just the rough draft of a quiz up on my quiz/test site. It's far from perfect, but I'll see what kinks I or Grok can iron out of it in the midafternoon. I'm meeting my ex-boss and his wife around 1 p.m. to see the same tea exhibition at which I'd had my major angina attack in early 2024, a few months before my heart attack. I doubt we'll need more than two hours.
So—a brief interlude a bit after lunchtime (it's actually a fasting day for me), then it's back to the slog. Wish me luck as I try to get what I want through code.





No comments:
Post a Comment
READ THIS BEFORE COMMENTING!
All comments are subject to approval before they are published, so they will not appear immediately. Comments should be civil, relevant, and substantive. Anonymous comments are not allowed and will be unceremoniously deleted. For more on my comments policy, please see this entry on my other blog.
AND A NEW RULE (per this post): comments critical of Trump's lying must include criticism of Biden's or Kamala's or some prominent leftie's lying on a one-for-one basis! Failure to be balanced means your comment will not be published.