chalsprhebaodu
Joined 3 years ago
Joined 3 years ago
I have spent hours and hours and hours and hours trying to get ChatGPT to be a little less apologetic, long-winded, to stop reiterating, and to not interpret questions about its responses as challenges (i.e when I say “what does this line do?” ChatGPT responds “you’re right, there’s another way to do it…”).
Nothing and I mean NOTHING will get ChatGPT with GPT-4 to behave consistently. And it gets worse every day. It’s like a twisted version of a genie misinterpreting a wish. I don’t know if I’ve poisoned my ChatGPT or if I’m being A/B tested to death but every time I use ChatGPT I very seriously consider unsubscribing. The only reasons I don’t are 1) I had an insanely impressive experience with GPT-3, and 2) Google is similarly rapidly decreasing in usefulness.
2. Pushing screens to schools may have been accepted under the impression they weren’t worse than learning on paper.
FreeD
function* operation() {
//@ts-expect-error `string` is not assignable to `number`!
let count = yield* createString();
return count.toExponential()
}
Is this a typo? How does the compiler know that count should be a number?I recognize that there’s still wired audio connectors but you know full well that the experience is not great because the industry wanted to remove audio jacks.
Until you accept this, you will be holding yourself back as a JavaScript developer.
If you need objects with encapsulated state and methods, use classes.
OOP does not magically introduce baggage or complexity.
Your proposed solution is still OOP. Coming up with your own OOP framework will introduce baggage and complexity.
Classes are highly optimized in modern JS engines.
Classes can be transpiled to performant code for legacy JS engines.
There are times when classes are not the right choice, but avoiding classes when they’re the obvious right choice is a clear indicator that a developer is unwilling to actually learn JavaScript.
Edit:
Your example code also has a bug, where your methods don’t actually mutate the properties of the returned object.
Please take the leap and just learn to use JavaScript classes!
HTML: Turing-complete Machine Language
Also, there are tools to look for old practices and suggest modern ones.