Those of you who anticipate continuing to use SO: why?
Those of you who anticipate continuing to use SO: why?
Where do you think ChatGPT finds these answers?
My last hit on SO was a search for “.gitignore wildcard”. What’s GTP-4 going to do with a two word prompt?
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/gitignoreI also have no idea what it’s trying to communicate with its /*/temp/ examples
A perfect representation of my git usage then!
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.
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.
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.
It's time to update my search reflexes.
Ask it about something you know is a frequently repeated mistake.