Please, stay on technical issues, avoid behavior, cultural, career or political issues.
|
locked by Yannis Rizos♦ Mar 13 '12 at 20:52
This question exists because it has historical significance, but it is not considered a good, on-topic question for this site, so please do not use it as evidence that you can ask similar questions here. This question and its answers are frozen and cannot be changed. More info: FAQ.
|
"Hello world" is not a complete application, as there is no demonstrated / programmatic assertion that the output is in fact "Hello world". Code is not complete until it has been unit tested. |
||||
|
|
|
Some of these have been posted already, but here is my list:
|
||||
|
|
|
When you have to distribute an application or put a website into production outside the confines of your company, everything that you thought didn't matter, does. |
||||
|
|
|
Documentation is very important. More so if you are building something from scratch. It helps to document your ideas before writing any code. I learned this the hard way. |
||||
|
|
Know your OS/Platform before you start coding.If you code Windows/Linux/Android/iOS etc. start by learning the OS. If you target something else such as Web the same goes there. |
||||
|
|
|
My first vote would be for Naming Conventions. |
|||||
|
|
Can't comment yet, but on the topic of "Testing and debugging skills", this little gem by Ned Batchelder is a must-read. (Then gain, much of what he has to say on debugging and assertions is worthy of consideration.) |
||||
|
|
|
Every programmer should know that the only thing s/he knows is that s/he knows nothing. There is a lot to be learnt. |
||||
|
|
|
Know the basic regular expression syntax including conditional grouping. Stay away from using library specific regex command addons or at least comment/factor out those parts. |
||||
|
|
|
I can't say how many times simple regular expressions converted data that people thought would take days to manipulate. It must be present in every programmer toolbox. Sure, we can't forget xkcd:
|
||||
|
|
|
All problems in computer science can be solved by another level of indirection. |
||||
|
|
|
Design your code, and if your manager wants to use a RAD style approach try and get as many details as possible. Then when more functionality is added try and think if the existing code can be rewritten before just piling on more code and you end up with a highrise instead of a house. |
||||
|
|
|
Run the code or logic in your head or paper first. Don't rush to hit the compile and run command to test it out. |
||||
|
|
|
Recognize that anything that can go wrong will go wrong. Spend very little time writing code – but recognize and reuse common patterns. Refactor code constantly to reach the ideal design. |
||||
|
|
|
If the system works and you change it and it stops working, the change you made is what broke it, even if that cannot possibly be the case. |
||||
|
|
|
Hexadecimal notation. Also bit fields -- ANDing, ORing (inclusive and exclusive), complementing (1's and 2's), bit shifting. |
||||
|
|
|
There are some very good suggestions here, but I'm surprised no one has mentioned the excellent series of articles by Ulrich Drepper: What every programmer should know about memory. |
||||
|
|
|
every programmer should have a firm grounding in software engineering, and also system analysis/design and information systems concepts. this way if they are called upon to contribute substantially to systems analysis/design and/or information architecture, they will be in a position of knowledge + opionion..whereas normally it seems to be just personal opinion that usually simply stems from personal preferences instead of best problem solution. software engineering is a bit harder to measure, but the pre-requisite knowledge is available out there, and at suitable university degree courses where they teach more than just how to cobble a bit of code together. anyway this is not meant to be negative because the main spirit is but improvement, but then i've worked with some people who have no IT knowledge whatsoever or there's the single minded "script kiddies" that code and re-code (and only in their language of choice) and only see every problem as a repeat of previously applied solutions (by that coder.) so i would much prefer if programmers concentrated more on the larger picture in terms of software engineering (SSADM) and looked at problems as opportunities to do better for the client. |
||||
|
|
|
It stands in a few letters, really: Ok, I'm over-simplifying, but basically if you are pretty autodidact, never stop to learn, and are a bit of a perfectionist, you should have the basis to become a good programmer. Anything beyond that would be more specific to particular roles and technologies. |
||||
|
|
|
When someone asks you to build something, remember: they are also asking you to maintain it. Possibly, forever. |
||||
|
|
|
That whatever programs do, more than telling a machine how to do a work, they are a most unambiguous way of showing fellow human beings how to do a work. |
||||
|
|
|
Every programmer should bind FindNextSelected and FindPreviousSelected actions (visual studio) to keyboard keys (preferrably F4 and F2). You get two things from that:
|
||||
|
|

