Lurker News

Comments (1,272) 260 threads

Show all comments

Showing thread 100 of 260

fabiospampinato2 replies#
IMO a potentially more interesting application of this technology would be a learning system that is able to learn your coding style. You give it access to the codebase and it reformats all files on save according to your likings, perfectly.

Obviously a program that is able to write actual great code reliably would be spectacular, but we aren't there yet, I don't think Copilot presently is able to make me meaningfully more productive.

1010111 reply#
Don't most IDEs handle this already?
fabiospampinato1 reply#
There are no tools that can format my code with my coding style AFAIK. There are multiple tool that can format my code with their coding style though, which I don't care about.
dawnerd1 reply#
Most? All? Allow you to edit the config to get it to your coding style but it would be cool to infer it from files you’ve already written.

Continue this thread — 1 reply

kleiba2 replies#
Formatting code according to a given style is a much easier task than what Copilot does.
alpaca128#
Apparently not that easy[0]. Depending on one's priorities formatting/pretty-printing code can be trivial or very difficult. Doing that dynamically based on a user's individual preferences or even their existing codebase's style is probably much harder.

I don't doubt Copilot is also quite a problem to solve, most likely indeed harder, though in that case at least there's an abundance of training data.
[0] https://news.ycombinator.com/item?id=22706242

fabiospampinato#
It depends what you mean by "given", I can't write a million line document describing exactly what kind of style I want it to use, the formatter must learn the style on its own from examples.

I agree that something like that would be much easier to make in theory, hence why I'm suggesting it since maybe it could be made ~perfectly, which Codepilot isn't (we haven't unlocked AGI yet).