| ▲ | wwfn 4 hours ago | |||||||
Tangential (but topical in that "The threat is comfortable drift toward not understanding what you're doing" is also on the front page): Is the generated python code in the example wrong? The prompt > Develop a Python function that removes any falsey values from a list. Return the modified list without creating a new one. Is answered with list comprehension, which makes a new list and leaves the original unmodified (never mind that the *args input necessarily can't be a modifiable list?)
Whereas I'd expect something like | ||||||||
| ▲ | hecanjog 4 hours ago | parent | next [-] | |||||||
It doesn't fit the requirement to modify the list in place, but the prompt itself contradicts the requirements by asking explicitly for the implementation to use *args and a list comprehension. | ||||||||
| ||||||||
| ▲ | desideratum an hour ago | parent | prev | next [-] | |||||||
Oh I wouldn't be surprised. This is a sample from one of the OSS code datasets I'd used, which are all generated synthetically using LLMs. Data is indeed the moat. | ||||||||
| ▲ | __s 2 hours ago | parent | prev | next [-] | |||||||
| ||||||||
| ▲ | semiinfinitely an hour ago | parent | prev [-] | |||||||
your second function is the type of bad code you get from people trying to program python like its c | ||||||||