+ 5
Golden rule
What is the golden rule in programming?
11 Answers
+ 6
If I may speek Zura Papiashvili
D => Don't
R => Repeat
Y => Yourself
Have two meaning:
1. Do not mess in your codes, work smart, do not repeat over and over the same thing.
2. If you can get a solution after struggling so much go for it, do not exhaust yourself.
+ 19
Answer: If it works, donāt touch it.
+ 8
Comment the line which produces error
+ 8
Brain first
+ 6
Keep it simple stupid :)
+ 4
Keep your source code easy to Understand. The goal of the source code is to explain future programmers or maintainers what the code actually does.
+ 4
it will always take more time than you expected.
if something might get go wrong, it will.
10% of your code will produce 90% of problem
don't bring the changes into the working code at the end of the day. Leave it till next morning.
spend long time to write couple of lines of code to make it work? Be so kind, write above this code two more lines of comment explaining yourself what have you done.
Review your code after a while.
Simple is better.
Always keep old code in case you want to come back.
+ 3
I whould think the golden rule is to remember that the computer you coding on is not smart at all and only outputs what you tell it to. So if you run into a problem don't get mad review your code because you might have missed something small.
+ 2
Keep it readable
+ 1
KISS : KEEP IT SIMPLE STUPID
+ 1
Always check your code before running its output.š