5 ms·
I used to use SO all the time while coding. Now I use GPT-4 instead. Those of you who anticipate continuing to use SO: why?
by minihat 3y ago
I used to use SO all the time while coding. Now I use GPT-4 instead.
Those of you who anticipate continuing to use SO: why?
- mr_toad 3y agoBecause I want to learn to fish, not have fish delivered to me. My last hit on SO was a search for “.gitignore wildcard”. What’s GTP-4 going to do with a two word prompt?
- jlericson 3y agoI agree with the first sentence, but unfortunately ChatGPT does a pretty good job with that particular two word prompt.
- npsomaratna 3y agoMade me curious, so I tried that exact prompt in the GPT-4 playground. Response: A wildcard in .gitignore file is a special character used to match multiple file names or patterns. The most commonly used wildcards are: 1. `*`: This wildcard matches any number of characters in a single path component. For example, `*.txt` would ignore all files with a .txt extension. 2. `?`: This wildcard matches any one character in a single path component. For example, `file?.txt` would ignore files like "file1.txt" and "file2.txt" but not "file12.txt". 3. `**`: This wildcard is used to match any number of characters across multiple path components. For example, `**/build/` would ignore all files and folders named "build" at any level in the project structure. Examples: - `*.log`: Will ignore all files with a .log extension - `**/.DS_Store`: Will ignore all .DS_Store files in every folder - `build/`: Will ignore the "build" folder on top level directory - `/*/temp/`: Will ignore any "temp" folder at the second level of the directory structure (ignores sibling/temp, parent/child/temp but not sibling/child/temp) For more information, you can refer to the official git documentation on gitignore: https://git-scm.com/docs/gitignore
- JoelEinbinder 3y agoThis is slightly wrong. build/ will ignore the build directory at every level. /build will ignore the build directory at the top level. I also have no idea what it’s trying to communicate with its /*/temp/ examples
- donmcronald 3y ago> This is slightly wrong. I wonder how it does if you tell it it’s wrong. I’ve tried a few times and it seems to get confused pretty easily.
- pwdisswordfishc 3y ago"I apologize for the confusion. [Repeats the same wrong thing]"
- darknavi 3y ago> This is slightly wrong. A perfect representation of my git usage then!
- arp242 3y agoI once had a project with a "bin-name" in the gitignore, to exclude the "/bin-name" that "go build" will produce. Then I added a "dir/bin-name/file.go" which of course got excluded. The CI/CD builds failed, but it worked locally, and great confusion ensued. Since then, I've always added that leading "/" and generally try to be as specific as possible in gitignore files. This is a great example where many people providing different answers and comments based on their different knowledge and experience provide value, opposed to just ChatGPT telling you stuff. Simply "correct" is nice, but "correct, complete, and with experience and context" is better.
- Tijdreiziger 3y agoA priori, you can’t know whether this is accurate or a hallucination.
- 3y ago
- satvikpendem 3y agoIronic, since even if you're using SO, you're simply having the fish delivered to you in the form of answers to your questions there. If you really want to learn to fish, read the documentation and code more to build up one's skill.
- mr_toad 3y agoI read both, the offical docs were the second hit. People who want one answer to everything scare me far more than AI. I don’t really accept that SO is just answering questions for you. There are usually multiple answers. There were several comments on SO that went into more depth than the official docs. There are second opinions, and answers pointing out what the wrong answer is. There are links to related questions. It wasn’t what I was looking looking for initially, but sometimes answers to questions you didn’t ask are better than ones you did.
- hirundo 3y agoI just had this experience today, trying to decipher the output of an obscure linux command argument, failing to dig it out of the man page; Google sent me through almost related stack overflow pages. Then I put a question in Phind and it gives me all the details, beautifully formatted, just a little too verbosely but with all the main points covered, with references. It's time to update my search reflexes.
- keyle 3y agoIt's the opposite for me, I tried Phind a few times and couldn't get a valid answer to questions I could answer myself... Perplexing.
- r00fus 3y agoIsn't that like, exactly the same thing? - because GPT-4 was likely trained on SO (and reddit) data.
- deleted 3y ago[deleted]
- donmcronald 3y agoSO gives me better insight into who provided the information. When an answer is provided by a project’s main developer or a contributor I know I can rely on the info. From what I’ve seen with GPT it’s a popularity contest. Common mistakes and misinformation are regurgitated like facts and the high quality grammar + spelling makes things sound plausible. Ask it about something you know is a frequently repeated mistake.
- abathur 3y agoThose of you who anticipate continuing to use ChatGPT to answer programming questions: where do you think it'll get answers from if people who actually understand stop using q/a sites? Where do you think ChatGPT finds these answers?
- jacobrussell 3y agoDocumentation :)
- rasz 3y agoSame place copilot does, github.