top | item 33356383

(no title)

marklgr | 3 years ago

> "If you have to write more than 10 lines, then use a real language"

I swear, there should be a HN rule against those. It pollutes every single Shell discussions, bringing nothing to them and making it hard for others do discuss the real topic.

discuss

order

dotancohen|3 years ago

There are three numbers in this industry: 0, 1 and infinity. Any other number - especially when stated as a rule, limitation, or law - is highly suspect.

pferde|3 years ago

Are you one of those people who take everything literally, so any and all jokes fly far over their heads?

This rule of ten lines or less is clearly meant as an illustrative guideline. Obviously if you have a shell script that has 11 lines, but does what it has to do reliably, nobody will be bothered.

The idea that the rule is trying to convey is "don't write long, complex programs in shell". Arguing about exact numbers or wording here is detracting from the topic at hand.

ndsipa_pomu|3 years ago

0, 1, 3 and infinity

sargstuff|3 years ago

Think use a real line discipline like n 8 1 would make more semantic sense than 'use a real lanaguage'.

Unless, the language is APL, in which case, 10 lines is an operating system.

throw10920|3 years ago

The majority of those comments have significantly more thought put into them (and adhere more closely to the HN guidelines) than this comment does.

sargstuff|3 years ago

Is there a link to HN line discipline criteria? (beyond asci ranges 0 through 31)