News for hackers. Stuff that matters.
Re:Goodbye, Clean Code by pvorb on Sunday January 12, 2020 @03:14AM (#22025142)
I find abstractable parts in code by thinking about potential names for it. If there is no good name for a potential common function, it's probably not a good idea to extract the section into a function. Maybe it can be extracted into two separate functions with good names?
Re:Goodbye, Clean Code by konschubert on Sunday January 12, 2020 @05:10AM (#22025497)
This is a proxy for having a well-defined purpose for a function.
Re:Goodbye, Clean Code by pvorb on Sunday January 12, 2020 @08:23AM (#22026169)
Yes, absolutely, but it's one that's easier to teach juniors.
Re:Goodbye, Clean Code by aj7 on Sunday January 12, 2020 @12:55PM (#22027768)
Like.