Hacker News new | ask | show | jobs
by speedgoose 1580 days ago
StackOverflow is still very useful to me, but I also use GitHub copilot and it’s very convenient.

For example you want to check if a file exists and contains a string in bash, but you don’t remember the syntax. You will search it in your favourite search engine, ignore the SEO spam, click on one stack overflow link, see that the question is closed because it’s a duplicate, check the other stack overflow question, scroll the answers, find the right one, copy paste it, adapt it to your code.

With the AI completion you write a comment # check if the file exists and it contains the value. Next line is suggested with the bash if statement, the correct file variable, the correct content variable.