How to be a good Programmer By Elvis Lesha. Bad Programmer Writing code without thinking Writing...

14
How to be a good Programmer By Elvis Lesha

Transcript of How to be a good Programmer By Elvis Lesha. Bad Programmer Writing code without thinking Writing...

Page 1: How to be a good Programmer By Elvis Lesha. Bad Programmer Writing code without thinking Writing code without thinking Poor understanding of the programming.

How to be a good ProgrammerBy Elvis Lesha

Page 2: How to be a good Programmer By Elvis Lesha. Bad Programmer Writing code without thinking Writing code without thinking Poor understanding of the programming.

Bad Programmer

• Writing code without thinking

• Poor understanding of the programming language model

• Lack of Critical Thinking

• Not being able to write a program from scratch

• Messy code• No comments• Random indentation

Page 3: How to be a good Programmer By Elvis Lesha. Bad Programmer Writing code without thinking Writing code without thinking Poor understanding of the programming.

Good Programmer

Page 4: How to be a good Programmer By Elvis Lesha. Bad Programmer Writing code without thinking Writing code without thinking Poor understanding of the programming.

Problem Solving

• Analyze the problem

• Divide into sub-problems

Page 5: How to be a good Programmer By Elvis Lesha. Bad Programmer Writing code without thinking Writing code without thinking Poor understanding of the programming.

Algorithms

• Have a good understanding of algorithms

• Know how to use them

Page 6: How to be a good Programmer By Elvis Lesha. Bad Programmer Writing code without thinking Writing code without thinking Poor understanding of the programming.

Language

• Pick a Language• Ensure you have a good understanding of

it

• Once you’ve learnt one language you can apply the same concepts to another language

Page 7: How to be a good Programmer By Elvis Lesha. Bad Programmer Writing code without thinking Writing code without thinking Poor understanding of the programming.

Practicing

• Constantly keep programming• Set yourself small tasks

• Help others with their code• StackOverflow

Page 8: How to be a good Programmer By Elvis Lesha. Bad Programmer Writing code without thinking Writing code without thinking Poor understanding of the programming.

Debugging

To be good at debugging, you also need to practice.

When you have lots of experience, it’s easy to formulate hypothesis about what’s wrong

Page 9: How to be a good Programmer By Elvis Lesha. Bad Programmer Writing code without thinking Writing code without thinking Poor understanding of the programming.

Quality Code

• Simple code• “I choose a lazy person to do a hard job.

Because a lazy person will find an easy way to do it.”

Bill Gates

• Understandable code• Well structured (indentation etc..)• Write Documentation (comments)

Page 10: How to be a good Programmer By Elvis Lesha. Bad Programmer Writing code without thinking Writing code without thinking Poor understanding of the programming.

Coding contest

• International Collegiate Programming contest

• topcoder

Page 11: How to be a good Programmer By Elvis Lesha. Bad Programmer Writing code without thinking Writing code without thinking Poor understanding of the programming.

Working on project

• Work on small piece of a large project

• Start your own project

Page 12: How to be a good Programmer By Elvis Lesha. Bad Programmer Writing code without thinking Writing code without thinking Poor understanding of the programming.

Apis and libraries

• You don’t always have to reinvent the wheel

• Read documentation

Page 13: How to be a good Programmer By Elvis Lesha. Bad Programmer Writing code without thinking Writing code without thinking Poor understanding of the programming.

Things to think about while coding

• Testing• Bugs• Don’t leave the testing until the end

• Design• Interface• User experience

Page 14: How to be a good Programmer By Elvis Lesha. Bad Programmer Writing code without thinking Writing code without thinking Poor understanding of the programming.

To be a good programmer:

• Think logically

• Practice

• Help others

• Experiment

• Practice

• Practice

SUMMARY