good programming

Post on 18-Jul-2015

32 Views

Category:

Documents

1 Downloads

Preview:

Click to see full reader

TRANSCRIPT

1

WHAT IS PROGRAMMING

? Process of writing computer programs

Creative process that instruct a

computer on how to do task

2

3

FEAR AND SELF DOUBT

Think you're not good enough, not smart

enough: that you have the wrong type of

brain, and you'll just never get it.

4

MESSY CODE

FORMATING Didn’t indent your code

Inconsistent use of new lines and white

space

5

Inconsistent use of upper and

lower case letters

Uses both cases of letters

6

Bad variable and function name

Single name variables

No relation between variable and its

function

7

Over-commenting

Commenting on every step

Uses useless comments

8

Not knowing the full expressive

power of your language

Don’t have the knowledge of operators

Confusing between syntax of two

languages

9

Thinking u know it all

Thinking yourself a professional

Forgot that you are learning

10

11

Patiently read the full question or listen

the instructions

Make a rough sketch

12

Think about the logic of program and

then think about the method you are

going to use

13

Take the time to write down what goals

the end product needs to achieve, and

who your user base will be. Clarity of

thought at this stage will save a lot of

time down the line.

14

Go to modular approach that is divide

your task into small fragments

15

If you think that your code might need

explanation, comment it. Remember to

update the comments when you update

your code!

16

Indent your code

17

Start by testing each module on it's own,

using inputs and values that you would

typically expect. Then try inputs that

are possible but less common.

Incorrect values. Use zero for a value

that will be used in division, or a

negative number when positive is

expected or when a square root will be

calculated.

18

Programming is not a stagnant

discipline. There's always something

new to learn, and - perhaps more

importantly - always something old to

relearn.

19

Take responsibility for your own career

Q/A yourself

20

When programming something complex, it helps to get the simpler building blocks in place and working properly first.

This approach naturally lends itself to modular code writing, where each component is in its own self-contained block. This is very useful for code reuse and makes for much easier debugging and maintenance.

21

Read books, magazines, blogs, Twitter

feeds, and websites. If you want to go

deeper into a subject, consider joining a

mailing list or newsgroup.

If you really want to get immersed in a

technology, get hands on—write some

code.

22

top related