r/ProgrammerHumor • • Oct 26 '21

GitHub Copilot, the technology that will replace programmers. Also GitHub Copilot...

27k Upvotes

713 comments sorted by

View all comments

1

u/TheGhostlyFucker Oct 26 '21

Can someone please explain why the video is poorly reverse-engineering the .tostring() function?

Edit: also use a switch statement for pete's sake!

1

u/themightydud Oct 27 '21

The code was generated based on the "// convert num to string" comment using this: https://copilot.github.com/

1

u/TheGhostlyFucker Oct 27 '21

ohhh. Computer-generated code. Makes sense.