←back to thread

Against Best Practices

(www.arp242.net)
279 points ingve | 3 comments | | HN request time: 0.399s | source
1. worik ◴[] No.42175680[source]
No.

I've worked too often with people who think they know better

They do not

Straw men do not change the fact that "best practices" , especially the ones quoted, are very good.

No sensible person is saying "never use globals". We caution you to think very carefully before you do, only for truly global state.

I am suffering from inherited code, written by a very good programmer, who got lazy with globals and comments. Too many of the former, too few of the later. What a nightmare

This article is arrant nonsense

replies(2): >>42175973 #>>42180859 #
2. recursive ◴[] No.42175973[source]
> No sensible person is saying "never use globals".

Maybe so, but still, plenty of people are saying it.

3. akvadrako ◴[] No.42180859[source]
I've been on a team where most comments I added where deleted because they believed it was best practice to avoid them getting out of sync with the code.

So even your comment disagrees with your claim that "best practices" are very good.