If chatgpt cost money, I would pay for it. It's too useful for my work and one beautiful side effect I noticed is that it'll give me momentum.
That analysis paralysis you get sometimes before going on a long code run? Gone when the initial idea burst chatgpt gave me. It's a wonderful wonderful product. I'm floored at how good it is, and how useful it has become so quickly to my workflow.
That's my main takeaway so far. It helps me get started. Having a piece of code that might be wrong but that I can refactor is easier than starting from blank.
Not GP, but I used it the other day to start a simple web app:
Please write a javascript for testing pronunciation. The app should have the following features:
1. Store a static list of Chinese characters.
2. When the user clicks start, show the user a single character from the list, and wait for them to pronounce it out loud. Use the web speech API to recognize the character, and compare it with the character displayed.
3. If the characters match, repeat step 2. If not, give the user one more chance, before continuing.
4. Keep an internal record of which characters the user got right and wrong, and how many times.
var characterList = ["汉", "字", "编", "程", "语", "言"];
var correctCharacters = [];
var incorrectCharacters = [];
var numAttempts = 0;
function startTest() {
var character = characterList[Math.floor(Math.random() * characterList.length)];
document.getElementById("displayCharacter").innerHTML = character;
var recognition = new webkitSpeechRecognition();
recognition.onresult = function(event) {
var pronunciation = event.results[0][0].transcript;
if (pronunciation === character) {
correctCharacters.push(character);
startTest();
} else {
numAttempts++;
if (numAttempts < 2) {
document.getElementById("prompt").innerHTML = "Incorrect. Please try again.";
} else {
incorrectCharacters.push(character);
numAttempts = 0;
startTest();
}
}
}
recognition.start();
}
document.getElementById("startButton").addEventListener("click", startTest);
That analysis paralysis you get sometimes before going on a long code run? Gone when the initial idea burst chatgpt gave me. It's a wonderful wonderful product. I'm floored at how good it is, and how useful it has become so quickly to my workflow.
I'd pay for it _today_.