5 Tips on improving Programming Logic
A lot of colleagues, friends and strangers (that I meet in meetups, etc) have asked me to explain how can they improve their programming logic.
Though programming is mainly associated with the field of Computer Science, but writing good and optimized code is mainly an art. Like all art forms requires tremendous patience and rigorous practice, building gray cells for programming logic is not much different.
I present this post/article to you on how you could too improve your programming logic.
Tip 1: Learn the language ‘C’
You might be an expert .NET, Java or PHP developer, but I would recommend that you MUST learn ‘C. We all know why ‘C’ is the most powerful programming language, but I am not recommending learning ‘C’ to you because of its power in programming.
‘C’ offers you a structured style of programming. You have one file with the main() method and the execution begins from there and the execution flow proceeds as you have directed it to.
The main advantage in ‘C’ is that it allows you to play around with memory directly. This I believe is very important if you need to understand how data is passed from one memory block to another. The reason is that you start to visualize in your minds eye how data moves in your program.
The next step is to develop programs that will help you improve your logic.
Tip 2: Develop programs that test your mind skillsEver heard of the Fibonacci series?
Ever built a program that will allow the user to type his/her name and allow to bounce off that name on the screen from one corner to another like a ball?
Ever thought of creating a library for a Menu Bar system?
All these are examples of programs that you can develop to improve your mind and programming skills.
I remember the time I was at college and I would spends nights after nights to build my own library for screen interface for menu bars, windows, text fields, etc. In a UNIX box I would use the ncurses library and build it. I would then try and replicate the same in Windows using the conio.h file and some assembly code.
Try to develop as many programs as possible in ‘C’, this will help you improve your programming logic.
Following are some programs that I can help you with:
- Write a program (WAP) to find the max, min, average and total of numbers entered by the user
- WAP to accept a string from the user and find the number of vowels and the vowels that got repeated the most.
- WAP to accept an array of numbers and sort the same using Bubble Sort Algorithm.
- WAP to accept a string from the user and print all its permutations and combinations.
- WAP to accept to accept a number from the user and test if it is a Fibonacci number or not.
I can go on and on with such questions.
Tip 3: Locate code and try to understand why it was written that way
Use the internet or college library to locate code written by another developer. Try to understand why it was written that way and understand it completely. Once you have understood why it was written they way it is written, check to see if you could improve that logic.
The main objective of this exercise is to get your brain thinking.
Tip 4: Solve logic puzzlesCheck your local newspaper. One section of your newspaper will be filled with series of logic puzzles and riddles. Try solving them. Don’t get disheartened if you can’t solve them or take a long time to solve them. Remember that you are in the learning and improving stage. Things will be slow, but you will make progress.Your brain will be trained to think differently with every puzzle that you try to solve. This is because now you know a new method of solving. You could apply the same thinking pattern to your programs as well.
As a standard prescription, I would prescribe solving Suduku puzzles. Will help you improve your logic, concentration and skills of grouping and organizing.
Tip 5: Help other people build logic
Once you start feeling confident about yourself and your logic capabilities, you should immediately start helping people. Subscribe to a forum and start helping people there. The benefit of helping people on forums is that you get to learn new problems that people face. This immensely adds to your knowledge. Just imagine the power you would have once you start to learn problems faced by other people and how you or someone else resolved it.
I have seen friends following this advice but shying at the last moment. Why? Because they don’t want to be ridiculed in the forum. Don’t be scared of other people ridiculing you. Look at it as a learning experience. People who ridicule you would be the one’s with more experience… and learning from people who are experienced is no harm at all.
I hope this article was helpful to you.
As a continuation to this post, I am planning to post questions in ‘C’ with solutions. You can subscribe to my blog to receive updates as these posts go live.
Till then, happy logic building
Related Posts On Programming
Hi this article is very good
Ofter reading this I understand what I want do for logical programming .
Please send post questions in ‘C’ with solutions for my mail id for Practice
Thank you
Regards
naresh
Very useful information
I see there are realy good tips. I am going to use some of them
Good thread, i like these tips, its looks that i knew just small part.
Great thread! , i like these tips, its looks that i knew just small part of it.
Great thread! , i like these tips, its looks that i knew just small part of it.
This is really good one. Every programmer should know these type of Tips.
This information is really good,untill i read this post i felt good programming depends only individual capablity but after being through this post,its clear it depends upon how much an individual practices to develope logic.Thank you ,its good work
Hi sir
5 Tips on improving Programming Logic is excellent. It has actually shown me the right direction to develop my logic for programming.
It is indeed very very useful.
Please send post questions in ‘C’ with solutions on my mail id for Practice
Regards
Sarfaraz
that is of great help. I never followed these rules in my college days and now i’m facing many problems.
Hi Sir
5 tips is very useful to improve logic.if any body fallow
these tips.
Regards.
Devendra Gour
Hai
this is venkat and i’m new one to php programming.
i seen above articles about 5 tips for improving php.
its really good and more helpful for us
kindly request for send some program logic with solution through my emailid
thanks
This is very good stuff
Practice make perfect
No Pain No Gain
very useful article, these tips makes you think out of the box. would you be able to email me some more ‘C’ questions with the solutions.
Thanx alot
Pls send questions on simple logic programming in C with solutions for my mail id since I am a beginner.
thank u for giving tips,
Its great article, these tips are simply superb and excellent. Pls send questions on simple logic programming with solutions.
Thank u
Hello sir,
This information is really Superb for me.I hope it will helpful for others like me.can we practice on C# of c logics. or programs . please send me answer above questions.
Thanks a lot!
it was nice suggetion but how to refine your self effectively and quickly if possible,which books to study etc ???
Sir,
Your 5tips are excellent.Its really helpfull.i am going to practise all those examples you are given here.it will be helpfull for me if you can send some more C questions to my email ID.
Regards,
Hary Nair
hi…..
well i’m past the stage of the questions u have given here but i’m eager to learn more and wish to increase my level of logic…..
can u tell me any website from which i can get such problems which help me grow my programming logic??
or if u can personally send me the problems on my id
i’d be grateful to u….
thanks
Shobhit Khinvasara
Hi
This article is really great.Thanks.
hi.this is an excellent article.
every one should follow this typeof tips…………….
hi,
sir
this article is very impressive for giving me this type of messages i thankful to u
hi.
this is an excellent article.
every one should follow this tips…………………………
the given tips are usefull somany people.it is very good to improve communicationskills.
thank you …..
hi..
sir
by seeing this article i have impressed alot for giving this type of messages i am thankful 2 u
Hi….
I just want to ask a question frm you…..you are emphacizing on C language. Is “C” necessary??? Cant we beautify our programming by using C++ language rather than C???
Sunil i went through your site and i felt that you could give me some guidance. I am a beginner in programming. Somehow the codes dont inspire me at all… I also went through your article “how to improve logic for programing” but that was not enough… I am very tensed as I would graduate after 2 yrs and i know nothing.. what do I do..?
Really this thret is change my way of thinking and got some new method for improving my skill
please send me some question in on my mail
Thank u
Regards
MD.CHAND SHAHEER
thanks for the tips.
i need some programs on realtime applications with solutions wouid u please send it for me………..
Hi,
Can you please let me know the real time applications that you require?
Regards,
Suniil
hi
it was really helpfult and very encouraging one.so i hope this will remain and modify
dear sir
thanks for great job,it is good to see like this for the student and every learner.
it gives me new idean to develope my logic.so once i want to thank you.
This is an awesome thread. Thanks for keeping it so simple. I am glad I saw this post.
dear sir
first of all i would like to introduce myself……..my name irshan…..and i am a student of bca final year….
thanks for great job,it is good to see like this for the student and every learner.
it gives me new idea to develope my logic.so once i want to thank you.
this one is excellent, i will try this..i want to be a well known programmer… thumbs up for you brotha…
.kiko.
Hello,
Thank you so much for such a wonderful article.It has really helped me in enhancing my level of logic.
A great article indeed !!
very nice explaining, This will really help me boost my programming logic…. Thanks sir.
This is a good article. +1
i know that logical progarming is very essential man.But since im a bigner so it take me much time to write a complete code and debuging also sometimes becomes a good issue for me
I think following two points helps someone to improve logic.
a. Use different logic to solve a single problem.
b. If you know how to play chess, solve chess problems.
it an very good usefull think to improve my logic.
thanks
sir,
i want practice question on c..
i am waiting ..?
Its a very good article . Which will help to all programmer to improve there logic
Nice one thank you..
I want to be good with programming..
So, i’ll try to follow all the steps above..
Good 1.An eye opening session.I m very thankful to u Sir for u guiding me on C and logic building techniques.I have start implementing few suggestions.
Hope to get few more……
hii der…its was really good article..
hope ill would follow as u’ve mentioned n will try to improve my logic……
This is a very good article. simple things but it is usefull.
This article is good.Also please send me the c quest with solutions.
Hi
this article is very nice and defiantly help the people new in this field. Thank You very much
Really all the tips are very practical!
hi
this inf is very useful for begineers.
thank u
Site is veri nice and really very helpful for now student in PHP.
Thank you
This post was really helpful
Really usefull….
This article definitely help programmer to build up/strong their logic. Carry on dude… all the best
This is very usefull for beginners.
thank you
hiii,,this Article was very effective to develop a logic..i suggest dat every one should go through thiss article….
Hello, This article is very useful for us because some time beginners programmer very fer estated about his programming logics.I am also one of them.So I am very thankful to your advice…….Keep It up…….and again THANKS
It is very fine thank u
Nice!!!!!
Thanks for the info.
Yes puzzle solving definitely help you to become a good & efficient coder.
you are the greatest blogger ever…!
Keep it up…!
Very inspiring and useful. Thank you
thank you. I was just lost my temper due to failing to create codes for certain stuff.
Your this article will provide enough confidence and the make me able to define certain logical tricks…
Thank You.
good job….
Thank you the useful source and post.
hi thanks to useful tips and post
this artical is realy very good bcoz, o get an idea to improve my logic …..
Hi, you provide good article to start thinking about logical section,for the beginners its should be very helpful.
Thanks For you Wonderful post!
Hey, these tips are very useful. plz send me “C language ” questions on my mail id. thanks