If value is foo, then the intent here is {{foo}} would be replaced. But sometimes the $ is a regex character. But because it's a string, is it using the string form of replaceAll or regex form?
AI tends to be multilingual and sometimes it's thinking in the wrong language, so this is the vibe code version of 10 + 10 = 1010.
The docs can be ambiguous on this, so ideally read the source. Or heck, tell AI to read it for you, but someone has to read it, and it becomes another gotcha for engineers to understand, vibe code or not.
Junior devs seem to just trust it now, because they literally don't know better.
I think junior devs often don’t realize they should be reading the source of the libraries they use.
LLMs can't help you if you want to skip the learning|training phase. They will present you something that you can't judge because you lack the qualification to do so. You don't learn how to play piano by only listening to it, or painting by viewing pictures.
read.csv("large.csv", nrows = 100)
read_csv("large.csv", n_max = 100)
pd.read_csv("large.csv", nrows=100)
pl.read_csv("large.csv", n_rows=100)
CSV.read("large.csv", DataFrame; limit=100)