Hacker News new | ask | show | jobs
by msluyter 1224 days ago
I've been trying Github copilot. It's especially good for suggestions based on localized context. For example, if you have this:

    def do_thing():
        print('doing a thing')
    
    def do_thing_2():
        print('doing a thing 2')
    
    def do_thing_3():
        print('doing a thing 3')
(Which, btw, do_thing 2 & 3 were autogenerated). If you type:

    def do_all_the_things():
it will auto generate:

        do_thing()
        do_thing_2()
        do_thing_3()
which is great if you have localized patterns in your code. It has also perfectly generated tests for things like a wrapper around a publicly known api.

Where it starts to get a little suspect is in some of its inferences where it doesn't have the localized context or a well known api as its corpus. It can spit out disastrously incorrect code on occasion. Still a time saver, but you have to remain alert.