News for hackers. Stuff that matters.
Re:GitHub Copilot Workspace: Welcome to the Copilot-native d... by packetlost on Monday April 29, 2024 @12:50PM (#40200847)
Yes? But it's commonly understood that reading code is harder than writing code. So why force yourself into a reading-mostly position when you don't have to? You're more likely to get it wrong.

There are other ways to decrease typing time.

Re:GitHub Copilot Workspace: Welcome to the Copilot-native d... by cedws on Monday April 29, 2024 @12:54PM (#40200900)
>it's commonly understood that reading code is harder than writing code

I don't know about that. Maybe for kernel code or a codec. But I think most people could read (and understand) a 100 line class for a CRUD backend faster than they could write one.

Re:GitHub Copilot Workspace: Welcome to the Copilot-native d... by skydhash on Monday April 29, 2024 @01:03PM (#40201033)

  php artisan make:controller
There are code generators. Even with dealing with other languages library, I mostly copy-paste previous implementations and editing with Vim motions makes it faster.
Re:GitHub Copilot Workspace: Welcome to the Copilot-native d... by theshrike79 on Monday April 29, 2024 @05:19PM (#40204258)
It's not harder unless you write hard to read code.

> “Indeed, the ratio of time spent reading versus writing is well over 10 to 1. We are constantly reading old code as part of the effort to write new code. ...[Therefore,] making it easy to read makes it easier to write.” - Robert C. Martin in Clean Code

LLMs make exceptionally clean code in my opinion. They don't try to be fancy or "elegant", they just spit out basic statements that sometimes (or most of the time) do what you need.

Then you _read_ what it suggests, with a skilled eye you can pretty much glance and see if it looks good and test it.