zlacker

[parent] [thread] 13 comments
1. airstr+(OP)[view] [source] 2021-10-27 18:40:59
> I don't think being able to faster write boilerplate is something worthwhile

But do you believe people being slower at writing boilerplate is undesirable?

replies(2): >>kyleee+C >>chrsig+02
2. kyleee+C[view] [source] 2021-10-27 18:44:24
>>airstr+(OP)
It may be desirable for boilerplate to be maximally painful if it forces our collective hands to cut down on boilerplate and innovate it away
replies(3): >>keving+S >>closep+X2 >>verve_+54
◧◩
3. keving+S[view] [source] [discussion] 2021-10-27 18:45:20
>>kyleee+C
Who is realistically going to innovate the boilerplate out of Java if they're stuck using it at work?
replies(3): >>gridsp+A3 >>stelco+ya >>amused+Oe1
4. chrsig+02[view] [source] 2021-10-27 18:50:05
>>airstr+(OP)
Possibly yes, if you're only contrasting it with being able to be faster.

I mean, it's sort of a false dichotomy -- it's omitting a "default speed" for writing boilerplate that is neither enhanced nor impeded.

the potential issue with an enhanced speed for writing boilerplate is that it means that there'll just be more and more boilerplate to maintain over time, and it's not clear what that cost over time will be.

How much more effort will be expended to replace things in multiple places? It exacerbates existing issues of "these two things look almost the same, but someone manually modified one copy...should that change be propagated?"

Meaning, it's essentially an ad-hoc code generator. Code generation can be a very useful technique (see protobufs), but without the ability to re-generate from a source?

Perhaps a possible enhancement might be for copilot to keep track of all blurbs it generated and propose refactoring/modifying all copies?

replies(1): >>airstr+eh
◧◩
5. closep+X2[view] [source] [discussion] 2021-10-27 18:54:39
>>kyleee+C
That’s a good plan if your language isn’t Go. For us I think tools to wrangle boilerplate are a lot more feasible than actually eliminating it.
replies(1): >>zomgli+ge
◧◩◪
6. gridsp+A3[view] [source] [discussion] 2021-10-27 18:57:36
>>keving+S
That, or any job where you're not permitted to make the sweeping changes required to resolve boilerplate. Many of my jobs had such restrictions.
◧◩
7. verve_+54[view] [source] [discussion] 2021-10-27 18:59:49
>>kyleee+C
In my experience whenever someone tries to "innovate" away boilerplate they end up creating shitty abstractions that are inflexible, poorly documented, and unmaintained.

Boilerplate generally exists for a reason, and it's not because the creator likes typing.

◧◩◪
8. stelco+ya[view] [source] [discussion] 2021-10-27 19:30:33
>>keving+S
I mean, Clojure kinda does that
replies(1): >>keving+av
◧◩◪
9. zomgli+ge[view] [source] [discussion] 2021-10-27 19:46:25
>>closep+X2

    if commentErr != nil {
        hn.Upvote("https://news.ycombinator.com/item?id=29017491")
    }
◧◩
10. airstr+eh[view] [source] [discussion] 2021-10-27 20:01:15
>>chrsig+02
> I mean, it's sort of a false dichotomy -- it's omitting a "default speed" for writing boilerplate that is neither enhanced nor impeded.

I'm not sure. I think that understanding is omitting a "default amount" of boilerplate that will have to be written regardless of one's individual preference that is really a function of the language / framework of choice, the existing codebase and the problem at hand.

Removing that boilerplate would be ideal but is not always possible given limited resources, time constraints and the usual inability to make sweeping changes to the codebase

So we settle for the second best solution which is to automate away that tedious process (or short of that provide developers with tools to get it out of the way faster) so we can all focus on "real work"

replies(1): >>chrsig+3Y
◧◩◪◨
11. keving+av[view] [source] [discussion] 2021-10-27 21:15:24
>>stelco+ya
So the solution to the problems that Copilot tries to solve is "migrate your workplace to Clojure"? Ordinary devs can't do that.
replies(1): >>stelco+Eq3
◧◩◪
12. chrsig+3Y[view] [source] [discussion] 2021-10-28 00:54:40
>>airstr+eh
I agree that there's some default amount of boilerplate that needs to be written -- but one isn't impeded by that -- it's just built into the task.

An impedance would be something to adjust the status quo in a negative direction e.g., a hardware failure

◧◩◪
13. amused+Oe1[view] [source] [discussion] 2021-10-28 03:31:49
>>keving+S
Lombok and most intellij features make java boilerplate pretty obselete.
◧◩◪◨⬒
14. stelco+Eq3[view] [source] [discussion] 2021-10-28 19:24:58
>>keving+av
Oh I was just chiming in really, not trying to say anything about copilot
[go to top]