News for hackers. Stuff that matters.
Re:Things every programmer should know by veb on Monday December 16, 2019 @01:14PM (#21805425)
I'm sure if I took the time to read them all, they'd all be very different as everyone has their own opinions on "things every programmer should know".

IMO what every programmer should know is how to do their job :)

Re:Things every programmer should know by onion2k on Monday December 16, 2019 @02:10PM (#21806031)
I reckon there must be a few universal truths in programming. Things like "Write testable code" and "Document why your code works." spring to mind immediately but I bet there's more.
Re:Things every programmer should know by jedberg on Monday December 16, 2019 @03:25PM (#21806809)
> Things like "Write testable code" and "Document why your code works."

There are many successful companies that didn't do either of those things in their codebase.

Whether or not you consider the people who wrote it good programmers is I suppose up for debate, but objectively, they created code that achieved the stated business purpose.

My point being, I don't think there are any universal truths.

Re:Things every programmer should know by onion2k on Monday December 16, 2019 @03:32PM (#21806901)
There are many successful companies that didn't do either of those things in their codebase.

Commercial success is a very poor measure of code quality.

Re:Things every programmer should know by UncleMeat on Monday December 16, 2019 @03:45PM (#21807028)
Very few people are paid to write quality code. Instead people are paid to produce commercial success.
Re:Things every programmer should know by MaulingMonkey on Monday December 16, 2019 @03:40PM (#21806972)
Code quality is a poor measure of product success, commercial or otherwise.
Re:Things every programmer should know by jedberg on Monday December 16, 2019 @03:33PM (#21806912)
Like I said, the ability of the programmer is up for debate, but objectively, they created code that solved the problem.
Re:Things every programmer should know by MaxBarraclough on Monday December 16, 2019 @02:02PM (#21805966)
> IMO what every programmer should know is how to do their job :)

That's either a non-answer, or it's setting the bar awfully low.

Storing passwords unhashed may 'get the job done', but every programmer should know better.

Re:Things every programmer should know by larnmar on Monday December 16, 2019 @02:52PM (#21806502)
> Storing passwords unhashed may 'get the job done', but every programmer should know better.

Not every programmer has to deal with passwords, though, so the generality is it is limited.

A programmer who has spent his whole career writing computational fluid dynamics simulations doesn’t need to know anything about storing passwords, but probably would have an equally idiosyncratic idea of what all programmers should know.

Re:Things every programmer should know by paxys on Monday December 16, 2019 @04:06PM (#21807197)
I would argue that storing passwords insecurely is not "getting the job done". Following minimum industry standards can be considered a requirement of knowing how to do your job.
Re:Things every programmer should know by barbs on Monday December 16, 2019 @02:20PM (#21806113)
Maybe it should be changed to "know how to do their job well"
Re:Things every programmer should know by test6554 on Monday December 16, 2019 @03:07PM (#21806634)
No, that’s a different list. What every decent programmer should know.
Re:Things every programmer should know by nkassis on Monday December 16, 2019 @03:55PM (#21807091)
How about the theoretical minimum one should know to be a professional programmer. Basic security principles would be included.
Re:Things every programmer should know by ergothus on Monday December 16, 2019 @02:30PM (#21806234)
> IMO what every programmer should know is how to do their job :)

In truth, though, we don't. And not "oh, a few good ones do, but the masses we pity and mock don't". All of us. The only difference is if we acknowledge it. We're trying (and that's why articles like this are so common!), and arguably we as an industry are making progress, but we don't yet have it figured out.

https://xkcd.com/2030/