r/linux • u/unixbhaskar • Dec 28 '21
Tips and Tricks Rules of Programming
/r/computerscience/comments/rq60d4/rules_of_programming/[removed] — view removed post
2
u/lostparis Dec 28 '21
*You can't tell where a program is going to spend its time.
Actually you usually do know. But the details might not be as simple as you think.
These rules are all a bit of a mess. The ideas behind them are good but they are very badly expressed IMHO
1
u/AutoModerator Dec 28 '21
This submission has been removed due to receiving too many reports from users. The mods have been notified and will re-approve if this removal was inappropriate, or leave it removed.
This is most likely because:
Your post belongs in r/linuxquestions or r/linux4noobs
Your post belongs in r/linuxmemes
Your post is considered "fluff" - things like a Tux plushie or old Linux CDs are an example and, while they may be popular vote wise, they are not considered on topic
Your post is otherwise deemed not appropriate for the subreddit
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
2
u/Columbus43219 Dec 28 '21
Rule 3.
Fancy algorithms are slow when n is small, and n is
usually small. Fancy algorithms have big constants. Until you know
that n isn't frequently going to be big, don't get fancy. (Even if n
does get big, use Rule 2 first.)
Is that a typo?