Copilot First Reaction
By michael
I’ve decided to try out GitHubs Copilot to see how far I can push it. Even after a couple minutes I have to say I was very impressed with how easily it started predicting useful code completion.
After creating the counter Flutter app, removing most of the generated code I began to type the name of the HomePage class I was planning to open from the MaterialApp object and Copilot suggested an initial StatelessWidget with the Scaffold predefined…very nice!
My next experiment was to see if something like GoRouter would be recognized. Copilot jumped in right away after I typed “GoRouter router” on a new line…pretty cool.
Just to play around a bit to see what would happen, I removed the GoRouter line and rename the home page to YTBHomePage and retyped “GoRouter router”. With no hesitation Copilot again suggested a home route and with YTBHomePage filled in.
Call me impressed.
As a side note, I still had to lookup and add the gorouter dart package to the pubspec.yaml file, but I believe this is where the software developer will shine. Writing code is just 1 of many skills and wells of knowledge an actual software developer brings to the table. I don’t believe this will be replaceable any time soon…if ever… But I’m not here to predict the future, just see were we are now.