Hacker News new | ask | show | jobs
by 908B64B197 1161 days 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.

2 comments

It 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.
Yes, could well be you've hit it there (i.e. stackoverflow has had its day).