194
submitted 2 weeks ago* (last edited 2 weeks ago) by cyrano@lemmy.dbzer0.com to c/asklemmy@lemmy.world
you are viewing a single comment's thread
view the rest of the comments
[-] Gxost@lemmy.world 13 points 2 weeks ago

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.

[-] wizardbeard@lemmy.dbzer0.com 10 points 2 weeks ago

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.

[-] Gxost@lemmy.world 1 points 2 weeks ago

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.

[-] ripcord@lemmy.world 6 points 2 weeks ago

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.

[-] MintyAnt@lemmy.world 1 points 2 weeks ago

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.

[-] ripcord@lemmy.world 1 points 2 weeks ago

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?

[-] Gxost@lemmy.world 1 points 2 weeks ago

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.

this post was submitted on 01 Dec 2024
194 points (91.8% liked)

Ask Lemmy

27225 readers
1511 users here now

A Fediverse community for open-ended, thought provoking questions


Rules: (interactive)


1) Be nice and; have funDoxxing, 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 spamPlease do not flood the community with nonsense. Actual suspected spammers will be banned on site. No astroturfing.


4) NSFW is okay, within reasonJust 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:

Tech Support

No Stupid Questions

You Should Know

Reddit

Jokes

Ask Ouija


Logo design credit goes to: tubbadu


founded 2 years ago
MODERATORS