All lowecase with no dot at the end. Chefs kiss.
Why not PHP or Rust? Make that “AI” work…
Laugh all you want, I once made something like that work. Not with one prompt of course. More like two days of prompting, but still… I’m sure if I was doing it by hand it would take me a week of work at least
Was it a basic-bitch database on the most normal hardware and software frameworks with no weird compatibility requirements?
And no less than a small city’s water usage consumed in the process!
“Make no mistakes” gives big “do not hallucinate” energy.
“Generate an image with no dog in it.”
It’s possible it reduces the probability of things like wrongly answered stack overflow questions from being used, so it might actually work a bit.
Kinda like how with image generation, you get vastly better results by adding a negative prompt such as “low quality, jpeg artifacts, extra fingers, bad hands” etc, because the dataset from boorus actually do include a bunch of those tags and using them steers the generation to do thing that don’t have features that match them.
The better way rather than using a vague “make no mistakes” is to feed a template of stylistic preferences like “only var type this, only structures like this, we avoid certain structures or variable types” - as the context window is repeatedly compressed during work, “make no mistakes” probably gets contorted to, “mistakes! make!” then, “MISTAKES!!!”, like “NO, money down!”
Bonus points if the style is stored in the repo as a template, so when the change is done you can just simply go, “ok, now read that style doc again and fix what you re-f’d up”. Sometimes it’ll even go re-read the style doc itself of its own volition.
Using an LLM for dev is like directing an intern on 5 espressos to complete a coding task, but dumber.
But this remarks seem to increase the quality of LLM outputs.
seem to
The most relevant words in that sentence.
I guess that’s suiting to nearly everything AI related 😅
All lowercase with no dit at the end. Chefs kiss.
All the function parameter and returns types are going to be “any”.
Hey. There could also be some
Record<string, any>.
- Rename every file from *.js to *.ts
- Set the compiler options
{ "checkJs": false, "allowJs": true, "noEmitOnError": false, // so the compiler compiles code it can’t prove right yet. Reset this after you’re done migrating } - Install type packages for dependencies that don’t bring type information out of the box, for instance
npm i -D @types/d3 - Add
// @ts-nocheckto the beginning of every file. - Go through your project file by file, remove the comment from (4) and add types until the errors are gone. And probably fix some errors along the way.
Abbreviated from “TypeScript Cookbook” by Stefan Baumgartner.
Just stop at 4.
Ta da! It’s typescript.
I was gonna say “salt bae some
anywherever there are squiggles”.
Your way seems more… MethodicalSome LLM is going to be trained on your idea and enact high levels of malicious compliance.
Not my idea. I literally cited the source.
It’s a war of attrition.
The good content is sometimes in the comments.
This is my colleague and I will have to clean up the crap, because he doesn’t understand what’s in his own commits.
Fire him. I’m a teacher and I’ve got some wonderfull and talented students that can’t find a job because companies are affraid to hire juniors because of idiots like him.
I’m not his manager. He is a good designer though, so I’m fine as long as he stays with his css and photoshop.
Got it, eye wheel mak know miss steak!
Somebody clue me in on Typescript. I’m somewhat familiar with scripting, PowerShell guy here.
Is JavaScript plus static type checking and a few other syntax enhancements. It is much easier to maintain software with static type checking. The typescript compiler outputs JavaScript
It’s a superset of JavaScript. The big add is static typing, reducing the chance of runtime type errors. It compiles to vanilla JavaScript for distribution. Other new features include enums, interfaces, and generics for more type safety.
Genuine question: is it really a superset if it’s not still valid javascript? Isn’t it more of an abstraction layer on top of javascript?
In practice people don’t use Typescript as a superset since they have stricter compiler settings, which would make valid JavaScript fail to compile.
Superset means all valid JavaScript is also valid Typescript. (At least, so long as you don’t have compiler setting on that requires all variables to have a type declared.)
It’s basically just a programming language based on and inclusive of JavaScript, but with extra features.
Javascript but types ( I haven’t used it)
deleted by creator








