efficent code
By ahmadpk48
@ahmadpk48 (228)
Pakistan
6 responses
@mnsrwt123 (2057)
• India
1 Apr 08
Well, its simple, just try to make your own application and tweak with different codings and you will find it easy to learn...
Keep posting!!!
@ram_cv (16513)
• India
22 Oct 07
There is a theory which says:
1) First write code that works.
2) Then write code that works correctly.
3) Then write code that works efficiently.
Simply put this is the way to improve the efficiency. Start by writing the code that fulfills your functionality. Once you are done with it identify the bugs and fix them. Once you are done with that do something known as profiling. You can use tools for that or else simply log the times taken by each function in the code.
Once you find certain functions that are time consuming, you can start at look ways to optimize them. With time you will start directly using these techniques when your write the code first time around and that is when you start writing efficient code straight away.
Cheers!
Ram
@jixinggao (41)
• China
25 Nov 07
while you write more, you will be more efficent, just as skill comes from practice.
@deepseadolphin (88)
• Hong Kong
28 Nov 07
Build personal code libraries and load them to whatever code projects you're writing at. Read how to use other people's code libraries too. Some of them might be very useful. One library can save you hundred thousands lines of codes.