LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Problem in learning programming : (need an advice ) (https://www.linuxquestions.org/questions/programming-9/problem-in-learning-programming-need-an-advice-254625/)

MinA 11-14-2004 05:09 AM

Problem in learning programming : (need an advice )
 
First sorry for my bad english and wish you understand me

I hope this is the suitable place for my problem

My problem isn't with learning a specific language
I'v learned c & c++ & php programming but I think I didn't learn a language to use but , I learned just a programming syntax or logic and I can't develop or create new ideas or solve problems
(I based on self-study)
I may understand a code , but I cant create a new one with new ideas

my goals to learn programming are support and develop Linux as a hobby and to enhance my job

I think I'v lost a step in learning programming but I don't know it (may be a book about programming language concepts , or book to learn how to think like a computer ,or how to solve problems )


All in need just an advice or link or a book to purchase .

Thanks in advance

itsme86 11-14-2004 05:24 AM

It sounds like you need a good book on algorithms. I think the best teacher is experience. Take the problem you're working with and break it down into steps that you'd do to accomplish the goal. For example, say you wanted to sort an integer array. You might imagine it as a row of pieces of paper. On each piece of paper you have a number and they're unordered. What steps would you take to sort the papers?

There's a lot of different ways, but one way might be to:
1) Create a second row. Empty to start.
2) Go through the first row and pull the lowest number out. Put it at the end of the new row.
3) Repeat from step 1 until the original row is empty.

Then your new row has your sorted papers. You could write a sorting routine the same way in a computer program. You just need to write the steps in the programming language instead of English.

That kind of working will at least get the job done. Of course there are "shortcuts" that the computer's hardware will let you make in certain situations, but those "shortcuts" are only useful for optomizing.


All times are GMT -5. The time now is 02:47 PM.