View Full Version : Ways to Improve my Logic
CVirus
;) As I've just started learning my first Programing Language {C Language} and as I'm still young and dont have enough Logic yet ... coz I didnt take "Sanaweya's 3amma" Math yet {as i think it can improve ur Logic} ... I want some recommendtions from Programmers in here on How to Improve my Logic Skills inorder to Learn and Programe more better ... Dont tell me that this isnt a reasonable question as I've googled and seen ppl asking the same question and they got some answers ... so I want to get some answers from here ;) Thx;)
LI-6Y LUCY
Asalamu 3lekom,
HINT:
try first to see what is the problem u r facing then hold a pen and a paper and try break this problem into small peaces "sub problems" then try to find a way to solve each peace "algorithm"
after that try to implement ur solutions in codes.
by writing for each subproblem a subprogram =>
function() then collect them all in one program.
I hope that i ve helped u.
ThnX AloT
:D :D
eAhmad
I think that LI-6Y LUCY is right but you still at the beginning as I think.
In my opinion:
1. learn to make flow charts for solving problems, It's an easy way to see the flow of the problem
2. In your daily life - not only in programming - try to solve problems in an organized manner. Write steps to follow for a day in life then for a computer program.
3. Revise the solution twice to see if you can implement it in a better way
hint: math in Secondry School won't help you a lot. :(
angoranimi
Originally posted by CVirus
;) As I've just started learning my first Programing Language {C Language} and as I'm still young and dont have enough Logic yet ... coz I didnt take "Sanaweya's 3amma" Math yet {as i think it can improve ur Logic}
Sanaweyya 3amma? Improve logic?
Give me a big ***!#*!*$! !*$!* ! break (no offense to anyone intended, but someone had to say this).
alaa
>1. learn to make flow charts for solving problems, It's an easy way to see
>the flow of the problem
IMO flow charts are a very bad tool and teach very bad logic and prgramming practice.
modern prgramming paradigms and techniques don't fit flow charts at all.
flow charts encourage spagiti code, they don't allow you to see higher level patterns and constructs (everything is a jump), in short they're only suitable for assembly code.
the other problem with flow charts is, its a solution to a problem that doesn't exist anymore, how to teach programming to people who cant use computers interactivly, this is no longer a problem no one is expected to learn programming without messing around with computers.
as far as flow charts are concerned debuging does not exist, debuggin is part of programming, it is not just about memory alocation and stuff like that one needs to debug ones algorithms and logical constructs and flow charts don't realy allow this.
spatial understanding breaks down when you can't see what you're talking about in one look, flow charts break down badly once the system gets a bit complicated, considering that your average software project will consist of hundreds of functions, objects, module will span multiple files and consist of thousands of lines a flow chart is a useless tool.
sure when you learn logic its a simpler thing, bas you need to prepare for it from the start, not learn something that you'd better forget later.
tab3an thanaweya 3ama is even worse than flow charts.
I'd say get a decent text book on elementary logic or boolean algebra, but his is not realy needed, one can do the opposite and learn logic through learning programming (thats the basic idea behind LOGO and MICROWORLDS, I've been fortunate enough to get trained on them when I was very very young)
cheers,
Alaa
alaa
>hint: math in Secondry School won't help you a lot. :(
well I thought about it abit.
actualy the math in thanaweya 3ama was quite good (the mechanics book was excelent), bas you need to keep away from el deroos to get the benefit (not a good idea, and I've got the scars to prove it).
bas the real problem is calculus, mechanics and geometry don't teach much abstract logic (not of the type needed for programming anyway), only algebra gives you this and for some reason all of our educational institutes conspire to stop giving you algebra once you pass e3dadeya (most scientific and technical colleges ignore algebra, you have to actualy go and study pure math in science faculty to get anything beyond basic set theory).
a sad state of affairs but hey this is the country where the joke "di balad shahadat" became a proverb.
cheers,
Alaa
LI-6Y LUCY
actualy the math in thanaweya 3ama was quite good (the mechanics book was excelent), bas you need to keep away from el deroos to get the benefit (not a good idea, and I've got the scars to prove it).
I agree with u alaa 100% but now adays in egypt the best high school certificate is THE IGCSE not thnaweya nor american diploma "dont think that i am showing off i am normal thanaweya student" as the IG... certificate make u learn how to learn but unfortunately thnaweya makes u learn how to simplify the unsimplified :D .
ThnX AloT.
angoranimi
Originally posted by LI-6Y LUCY
as the IG... certificate make u learn how to learn but unfortunately thnaweya makes u learn how to simplify the unsimplified :D .
ThnX AloT.
Wrong. Perhaps thats how it was one day. However, egyptians have the amazing ability to "brute force" anything and mold it into their own. Here in egypt, IG's have been reduced into memorizing all past papers by heart; that with a little bit of speculation from the tutors' side.
Pitiful.
MaherG
Originally posted by angoranimi
Wrong. Perhaps thats how it was one day. However, egyptians have the amazing ability to "brute force" anything and mold it into their own. Here in egypt, IG's have been reduced into memorizing all past papers by heart; that with a little bit of speculation from the tutors' side.
Pitiful.
Wrong, I was an IGCSE student one day. It wasn't the way you described at all.
You get some rights in IGCSE than Thanaweya, but that still doesn't make Thanaweya that bad. Though, IMHO, both need alot of changes since they make a studen'ts life all about academics.
cheers,
Maher
angoranimi
Originally posted by MaherG
Wrong, I was an IGCSE student one day. It wasn't the way you described at all.
Keyword here is one day. Things have changed. I'm not going to go into the topic of private tutors etc, but just this concept (of private tutors) is a discrepancy in essence.
Needless to mention, I don't think it has totally lost its value... yet.
eAhmad
>>IMO flow charts are a very bad tool and teach very bad logic and prgramming practice.
>> in short they're only suitable for assembly code.
I think completely you are write, the best use for flow charts are assembly language. you almost write the code form the chart directly.
But in my experience, it might be the worst, using flow chart is very helpful in writing a small block of code - that's the case for a beginner. You can avoid all that jumps by a little thinking or tweaking.
Of course writing a complete useful program need a better way of logic... but this can be gained from experience.
eAhmad
Secondry School is not that bad, but the studying habbits destroy its benefit...
I loved Math and Physics courses as my teachers encourage me to study, search, and think...
Th main probrlm is not how many problems do you solve... But how do you solve it??
vBulletin v3.0.1, Copyright ©2000-2004, Jelsoft Enterprises Ltd.