GitHub Copilot

I have been using GitHub Copilot for several days. I didn’t expect it to work well, before trying it out, I was very opposed to this kind of machine-learning based code generation tools. However, GitHub Copilot really gave me a pleasant surprise this time. It did much better than I had thought it could. Often times it would guess my intentions correct, and produce code that is of passing quality. And it makes coding more fun, having an AI companion is cool, it’s like a buddy you can discuss with, on how to best write pieces of code (I guess the AI buddy is a manifestation of the collective intelligence of millions of developers who use GitHub, so sometimes it can produce good code and even teach me something)....

June 28, 2022 · Ke Wang

Using JavaScript to process data

I used to ask a fellow developer, what would you do if you had some data represented in a JSON array, and you’d like to do some very quick and simple processing, to find out the information you are interested in? He said he’d write a Golang program to do that. While there’s nothing wrong with that approach, I think this method is too slow. It will take you at least 10 minutes to write and test a Golang program, especially considering you will need to define all the structs before you can parse the JSON data....

September 30, 2021 · Ke Wang