>It's a boilerplate generator and you're happy when it saves you tedious mental effort.
On the other hand the person trying to track down a subtle bug afterwards might be a little less happy at having to wade through oceans of boilerplate.
Re:CodeCompose: Meta’s AI Coding Assistant
by moonchrome on Sunday June 04, 2023 @05:32AM
(#36184266)
Sounds like you haven't tried copilot, basically scenarios like :
if(a) {...}
if(b) // here it predicts line by line from a once you start with similar logic
if(c) // here it will do a one shot generalization of a and b for c
Likewise method variations, enum mappings, inferring call parameters from names and signature, etc. - these things are trivial to check and test but take effort to type out. When you know what you want to do and someone suggests the solution you had in mind you're happy you saved half a min or min of typing.I'm as, if not more, likely to zone out on tedium and introduce the subtle bug myself.
That isnt boilerplate. It's isolated, repeated code.
Re:CodeCompose: Meta’s AI Coding Assistant
by moonchrome on Sunday June 04, 2023 @08:27AM
(#36185081)
In my book boilerplate = repetitive code you can't abstract.
- anticipate when the suggestions are likely to be useless and not even bother
- scan the proposals to see if they are what you want in cases it's useful
It's a boilerplate generator and you're happy when it saves you tedious mental effort.