You’ve just been given a complex task to code. What are you most likely to do?
Get straight into the task by putting in the initial code and prototyping the task.
Get everyone’s feedback on the problem, discuss all the possible options, then decide the best way to approach the problem given the current situation.
Comments should be placed:
To explain anything that may seem
Only when a programmer isn’t good enough to explain themselves in variable and function names.
Where do you spend most of your time?
Moving registers around or doing pointer arithmetic (or creating functions)
Drawing UML diagrams (or making objects)
Who is a ‘better’ programmer?
Someone who went to university/college and has at least a masters in their field. They should read as many books on a subject as they can find before starting on it.
Someone who has been coding since they were 5 and simply goes by raw talent alone.
Which is the ‘best’ way to program?
In assembly or straight C. I’m in complete control of what the program’s going to do.
Java or any .net language. Why waste valuable time on memory management and re-inventing the wheel when someone’s handled it for you!
Approximately what % of a project should be spent in planning?
~25% – The best way to complete a task is to plan as you go.
~75% – The more planning, the less code you need to write. By the time you code, you should simply be filling in stubs.
If something needs to be done properly:
Get the team together and discuss the best way of solving the problem. Then break it up and give each piece based on people’s strengths.
Do it yourself.
The ‘perfect’ language will:
Allow anybody in the world to program.
Allow me to make the best use of systems resources.
You’ve been given a task to do that will take one man month, how big is the optimal team?
When you program you:
Shut the door and the rest of the world out.
Share a desk with a peer and have group meetings often to discuss what to do next.
White space should be:
What is the ‘better’ implementation:
printf("5+6=%d", 5+6 );
// param1 firstParam - The first value to add
// param2 secondParam - The second value to add
// return - The firstParam added to secondParam
int AddNumbers( int firstParam,
int secondParam )
// Here is some info
int theReturn = firstParam + secondParam;
// Now return the value
// Entry for program
// Initialize variables
int firstParam = 5;
int secondParam = 6;
// Call the function
int returnValue = AddNumbers( firstParam, secondParam );
// Print out the value
printf("%d+%d=%d", firstParam, secondParam, returnValue );
For a full listing of the personality types, visit the key here
Powered by WordPress | Designed by Switchroyale