3 ms·
If you are a programmer who finds no use in AI, try asking it things like this: “how do I….” “how does this work” “explain this code” “convert this fun
by andrewstuart 3y ago
If you are a programmer who finds no use in AI, try asking it things like this:
“how do I….”
“how does this work”
“explain this code”
“convert this function to typescript”
“what’s the maximum decimal of uint16”
“difference between this and that”
“give me an example of”
“what are the arguments to this function/method”
“what causes this error”
“explain this code”
“given this data structure, how do I get the third row, first item”
“how do I centre a div”
“create a C header file for these functions”
“what’s the command to compile this code”
“what’s the regex to get lines containing foo”
“ffmpeg command to convert X to y”
“given this sql table, write a postgres query to get the first to 100th row and return the data as json of this form”
“make 1000 rows of sample json data with fields name address phone”
“write a sed command to search and replace X with y”
“create a cmakelists to compile this”
“write a python program to compare two directories A and B, if a file is in both A and B, then ensure that in B it is the same subdirectory as A, create the directory if needed”
etc etc and critically important:
“that didn’t work”
“another approach”
“any other ideas?”
If a programmer sees no value in any of these sorts of AI interactions then honestly they're not worth being on your team - they're wasting productivity.
The point is not that a developer does not know how to do a given task, the point is that certain programming tasks are just hack work- it's a waste of time to be hand coding them - let the AI write a first pass for you and debug it and move on to the next thing. And when you are doing hard things, breaking new ground, learning new stuff, then the AI gives quick answers to the multitude of questions that will be coming up in your head. Sure, sometimes the answers are wrong but that's a small price to pay for the number of times the answers are right, or point you in the right direction.
Also, certain technologies are incredibly well suited to programming via English language - for example regular expressions - grep/awk/sed - I've always dreaded writing regexes because I know what I want but it's such a chore to hack through finding the right syntax. You're burning your employers time it you don't use AI to drive such tools. What could be better than saying "with grep scan all python files recursively and case insensitive for the word 'import' and return the file name and the relevant line and also the immediately previous and after line".
AI programming is programming via pseudo code. How can a developer find no value in that?
- eska 3y agoI don’t mean to sound disrespectful, but out of all examples you could’ve picked, almost all of them scream that your programmers are very unproductive as a baseline.
- mrtranscendence 3y agoSo your programmers know every ffmpg command by heart, never forget regex syntax for any dialect, etc? Do they never make mistakes and never ask for help locating them? These sound like mighty fine programmers.
- aleph_minus_one 3y agoThere exist quite many programmers who concentrate much more on a single technology stack which they spent a lot more time learning. The given examples where AI might be useful are much more helpful if you have a rather shallow knowledge of the technology that you use (for example if you switch the technology stack very often).
- andrewstuart 3y agoYour comment suggests perhaps you are not a programmer. This is what programmers do all day - ask questions like this, solve problems like this and implement functions like this. As I said: "The point is not that a developer does not know how to do a given task, the point is that certain programming tasks are just hack work- it's a waste of time to be hand coding them - let the AI write a first pass for you and debug it and move on to the next thing."
- eska 3y agoAlmost all of your queries are simple google/documentation/“ffmpeg -h” lookups. AI doesn’t do anything here but add uncertainty whether the information is correct. Anyway, I don’t think you understand what costs programmer time. The tasks you mention do not cost them hours, they don’t even add up to hours. fwiw I am a programmer, e.g. I have almost 3 decades of experience in c++, which, according to your submission history, you just started learning? Nothing wrong with that, but then I’m not sure why you speak like an authority in programming by denigrating others’ ability and making hiring/firing recommendations.