LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-14-2004, 06:09 AM   #1
MinA
LQ Newbie
 
Registered: Feb 2004
Distribution: OpenBSD, FreeBSD, Slackware
Posts: 4

Rep: Reputation: Disabled
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
 
Old 11-14-2004, 06:24 AM   #2
itsme86
Senior Member
 
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246

Rep: Reputation: 59
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
learning programming nin881 Programming 13 10-19-2005 01:17 AM
C programming learning introuble Programming 7 01-03-2005 12:55 PM
advice on learning C speel Programming 7 07-15-2004 04:21 PM
Learning Linux...Advice Needed simulatedflare Linux - Newbie 1 03-21-2004 07:04 PM
Learning C, look for advice. JesterDev Programming 5 02-19-2004 06:03 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration