News for hackers. Stuff that matters.
Re:AI in software engineering at Google: Progress and the pa... by williamcotton on Friday June 07, 2024 @06:47AM (#40607310)
boilerplate that should be abstracted away in some functions rather than inserted into your code base

Boilerplate is often tedious to write and just as often easy to read. Abstraction puts more cognitive load on the developer and sometimes this is not worth the impact on legibility.

Re:AI in software engineering at Google: Progress and the pa... by calderwoodra on Friday June 07, 2024 @09:31AM (#40608531)
Totally agree - LLMs remove the tedium of writing boilerplate code, which is often a better practice than abstracted code. But it takes years to experience to know what that's the case.
Re:AI in software engineering at Google: Progress and the pa... by skydhash on Friday June 07, 2024 @11:17AM (#40609512)
Code generators and snippets template are your friends.
Re:AI in software engineering at Google: Progress and the pa... by pquki4 on Friday June 07, 2024 @11:16PM (#40615006)
Say I'm faced with a choice right now -- repeat the same line twice with 2 minor differences which gets checked by IDE immediately, or create a code generator that generates all 3 lines which may not work well with the IDE and the build system which leads to more mistakes?