News for hackers. Stuff that matters.
Re:Notes on the Go2 Generics Draft by baby on Sunday September 02, 2018 @07:20AM (#17896596)
Same here, as a security consultant reading Golang is always a pleasure. I'm pretty sure that the strongest codebases I've seen were in Golang just because of how easy it is for everyone to read the code and actually spend time looking for logic bugs instead of trying to understand what is happening.

Developers love to be able to write their magical code and their clever abstractions and often forget that their code is paying the price by becoming less clear and less readable. From a security perspective that's a huge loss.

I know that people with the right security mindset will do the right thing, and have more code where it improves clarity, or have slower code when it makes it easier to understand what is being done. But unfortunately that's a tiny minority of developers.

Re:Notes on the Go2 Generics Draft by zoul on Sunday September 02, 2018 @09:19AM (#17896902)
Developers love to be able to write their magical code and their clever abstractions and often forget that their code is paying the price by becoming less clear and less readable.

Are you saying that it has to be that way with generics? Because I would disagree with that. Cautiously applied, generics can make your code more clear, more readable and, most importantly, more type safe – and not just because of containers, see Swift’s key paths for an example.

Re:Notes on the Go2 Generics Draft by baby on Sunday September 02, 2018 @10:22AM (#17897085)
Yes it will be this way for MOST usages with a minor subsets of codebases which will benefit from them.
Re:Notes on the Go2 Generics Draft by vmchale on Sunday September 02, 2018 @01:19PM (#17897720)
> Developers love to be able to write their magical code and their clever abstractions and often forget that their code is paying the price by becoming less clear and less readable.

Clearly, that justifies the fact that you can't sort an array of doubles and an array of floats with the same function.

Re:Notes on the Go2 Generics Draft by baby on Sunday September 02, 2018 @02:22PM (#17897963)
Does it not? That’s the entire point of my comment. Some stuff are going to be painful but overall the lack of generics is a blessing.