3 ms·
Rule No. 1: Code and Tell. Most people say, “Code, don’t comment,” but I stand by Code and Comment. Rule No. 2: Don’t go searching for a project, let your proj
by vorg 14y ago
Rule No. 1: Code and Tell. Most people say, “Code, don’t comment,” but I stand by Code and Comment.
Rule No. 2: Don’t go searching for a project, let your project find you. You can’t rush inspiration. How do you think Linus came to “Linux”? It was just an ordinary day, and there it was — fate.
Rule No. 3: Program in domains you know. Listen to your heart. Ask your heart, Is it true? And if it is, let it be.
Rule No. 4: Never use three LOC when one will do. Be concise, use macros. Don’t fall in love with the gentle trilling of your mellifluous commands and blocks. Learn how to “kill your darlings,” as they say. With but a few deft strokes, pare it down to create: “(help land shark)”.
Rule No. 5: Keep an open source dream diary.
Rule No. 6: What isn’t said is as important as what is said. In many classic systems, the real action occurs in the API calls. Try to keep all the hard yakka out of the code. Some “real world” practice might help.
Rule No. 7: Developers’s block is a tool — use it. When asked why you haven’t upped your LOC lately, just say, “I’m cutting out unneeded blocks.” Since most people think that developing is some mystical process where code is always created, cutting out blocks is the perfect cover for when you feel like refactoring.
Rule No. 8: Is secret. Yes, check out other jobs.
Rule No. 9: Have adventures. The Algol/C mode was in ascendancy for decades before it was eclipsed by trendy fabulist “objects.” The pendulum is swinging back, though, and it’s going to knock these object eggheads right out of their Stroustrup chairs. Keep ahead of the curve. Get out and see the language landscape. You’ll be glad you did.
Rule No. 10: Refactor, refactor, refactor. I cannot stress this enough. Refactoring is when you do what you should have done the first time, but didn’t. Get that draft counter going. Remove a semicolon and then print out another copy — that’s another draft right there.
Rule No. 11: There are no rules. Except the ones you learned during your Code and Comment days. Have fun. If they don’t want to be friends with you, they’re not worth being friends with. Most of all, just be yourself.