3 ms·
> For peripheral stuff it's pretty useful as a quick way to get some cut'n'paste code ('write me code to read the load average on linux and log it to a file eve
by 908B64B197 4y ago
> For peripheral stuff it's pretty useful as a quick way to get some cut'n'paste code ('write me code to read the load average on linux and log it to a file every second' - I know exactly how to do that, but it's a faster typer).
For public APIs that might be the killer feature; a better way to look at doc (or rather, rely less on doc) if it can look at different code bases and find snippets of code using a popular API.
- zh3 4y agoYes, could well be you've hit it there (i.e. stackoverflow has had its day).
- mike_hearn 4y agoIt definitely works well for that stuff, albeit it tends to be easily confused by APIs that have evolved over time. I find it frequently giving me code that uses APIs that don't exist, and when I point that out, it apologises, tells me that API was removed in version xyz and then gives working code instead.