3 ms·
But, you know, if you saw something like, all your visible examples were like the strings 123 456 234567 345 678 and the program replies with something
by teddyh 10y ago
But, you know, if you saw something like, all your visible examples were like the strings
123 456
234567
345 678
and the program replies with something like what you wrote: “Remove the middle character from any 7-character strings to make them 6 characters in length”, it would actually take a programmer’s mind to be able to envision why this might in some cases be wrong. Most people who are not programmers would, I think, see this as equivalent to “Remove interior spaces from each item”. I suspect that the skill required to choose an algorithm correctly is the exact same skill required to actually being a programmer.
All this then buys you is that you don’t have to remember the function names.