Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

My inner Northcote Parkinson sort of triggers on 'best practices'. Best tends to imply that all the other ways to skin the cat are 'bad.' Which is likely objectively untrue.

Idiomatic is more neutral and means basically just do it the way everyone else tends to. The real advantage to that is you generally avoid pitfalls and annoying other coders.



They can mean very similar things so that the question could be:

How to learn idioms when you have no one to teach you?


To which I think we land on the recommendation: seek good examples and mimic them. Trouble is finding them.


It is. I work in c# and if we take idiomatic to be how most devs write c#, then idiomatic c# is garbage.


But the question still remains... how do you determine what "good examples" are?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: