view the rest of the comments
Ask Lemmy
A Fediverse community for open-ended, thought provoking questions
Rules: (interactive)
1) Be nice and; have fun
Doxxing, trolling, sealioning, racism, and toxicity are not welcomed in AskLemmy. Remember what your mother said: if you can't say something nice, don't say anything at all. In addition, the site-wide Lemmy.world terms of service also apply here. Please familiarize yourself with them
2) All posts must end with a '?'
This is sort of like Jeopardy. Please phrase all post titles in the form of a proper question ending with ?
3) No spam
Please do not flood the community with nonsense. Actual suspected spammers will be banned on site. No astroturfing.
4) NSFW is okay, within reason
Just remember to tag posts with either a content warning or a [NSFW] tag. Overtly sexual posts are not allowed, please direct them to either !asklemmyafterdark@lemmy.world or !asklemmynsfw@lemmynsfw.com.
NSFW comments should be restricted to posts tagged [NSFW].
5) This is not a support community.
It is not a place for 'how do I?', type questions.
If you have any questions regarding the site itself or would like to report a community, please direct them to Lemmy.world Support or email info@lemmy.world. For other questions check our partnered communities list, or use the search function.
6) No US Politics.
Please don't post about current US Politics. If you need to do this, try !politicaldiscussion@lemmy.world or !askusa@discuss.online
Reminder: The terms of service apply here too.
Partnered Communities:
Logo design credit goes to: tubbadu
GitHub Copilot became my daily helper at work. While I'm not 100% satisfied with its code quality, I must admit it's very handy at writing boilerplate code. A few days ago, I had to write code without having internet access, and it was so disappointing to write boilerplate code by hand. It's an easy task, but it's time-consuming and unpleasant.
I will forever continue to suggest that as a developer, you learn your IDE of choice's features for templates/code snippets, or make yourself a "templates" file to copy and paste from.
Far more control, far less opportunity to miss something small and mess up, cheaper, less resource use, and faster.
Using VsCode/VsCodium's snippets feature has been a serious game changer for me when it comes to boilerplate.
Copilot shines where snippets/templates don't work or make no sense. It can write constructors, simple methods, and even simple classes if something similar is found in the solution.
I'm very curious what these development workflows are where writing "boilerplate" code is so common, especially that AI-generated is good enough. It's very rare for me to need this, and Ileven then I generally have spent more time cleaning up wjatbit built than the time it saved me.
It could be level. Less experienced engineers find the boilerplate spit out by copilot extremely useful, more experienced find it more in the way.
Is some of this just caused by more experienced folks being less inclined to learn AI tools? Maybe. I think experience writing code is the bigger factor though.
I'm trying real hard to find it useful. I can see it eventually being more useful, but it's just not worth the cost.
Maybe, it's just really rare for me to be looking at a "blank page'. 95% is an incremental improvement on top of something existing. So "boilerplate" would come into my workflow pretty rarely.
Maybe some frequently-changing data science or data mining tasks?
By saying "boilerplate", I mean constructors, simple methods and even small classes that have some "standard" implementation. Copilot easily writes simple constructors, class initialization and destruction. It can suggest small method implementation, right after I added its declaration to related interface. Anything, that can be done almost without thinking of how to do it because there are standard practices, is handled by Copilot. It's not perfect, it can write a whole method at a time, or only line by line, or refuse to suggest any code. But it often writes valid code.