[Good Programming Habits]
Care to share on the habits that make you a good programmer?... I'd like to know what initiatives do you take to ensure your coding skills are top notch, and how do you go about on your coding habits on a daily basis.😊 I wanna gain some experience that'll ensure I stay updated with the latest tech. Any help is appriciated upfront, thank you🤓
For me, just looking for easy and simplest coding style from my friends whom I consider him or her as better than me. some friends are very talented in coding and making amazing apps, but if their coding style are beyond my comprehension, I just ignore it. And dont try to undetstand their codes.😜😜😜😜😜you will be growing very old before you could make your first app😰😰😰😰😰😰 but some guys are very talented, clean and neat coding, I just learn from them.👍👍👍👍👍👍 here is my suggested list👉👉👉👉 1. Set your coding style😎😎 shorten your code line as much as possible and readable. 2. Accumulate algorithms as many as possible👷👷👷 for example-hashing,stack,heap, linkedlist,OOP, MVC,and so on💥💥💥💥 2. Make small or light apps make apps which can be useful for you and for the others such as ebooks apps, tutorial apps 3. Make Small games For example- Tic Tac Toe, Puzzle, tetris and snake game. it is very challenging and good for logic problems...👼👼👼👼👼👼
THINK TWICE, CODE ONCE.
1. Comment your code as you go, future you (or someone else) will thank you as they will understand why you chose to do something and what scenarios you've thought of. 2. Test by yourself as you go, much easier to debug that way. 3. Have a fellow programmer review and test your code. 4. Have a non-programmer try your code. 5. Use modular code if you have to repeat a task within your code. Makes it easier to read and update. 6. Practice, practice, practice.
When I start making a new program I always draw or write down the functionality with pen and paper (usually in pseudo code). So I solve most of the problems before writing a single line of actual code. For me this has been the best way to avoid annoying time consuming mistakes and it has saved me from so much pain. :)
Read Sololearn programming tips 🤗
Don't bother my brother and you follow the coding languages on soloLearn.
+ Use github! learn git if you haven't yet, and build your programming portfolio there.
Before you just write coding. Make a clear algorithm of what you want to do
One tool I use for many things : SPEAK IT OUT ! When you're building something complex, or analysing a problem, use your voice and tell your thoughts to yourself. Sometimes thoughts can be quick and messy if you let them go wild. Using your voice makes it more concrete and organised. Give it a try ! Well, maybe not too loud, and be careful who is around, they could make it another reason to consider you as a maniac !
Understand the task first. 1. If it is big task divide it in modules (mentally) just for yourself. 2. Start writing pseudo code for module. 3. Test that module. 4. Repeat steps 2 and 3 for all small modules you created. 5. When all modules are done, merge these modules. 6. Test complete application once. 7. Get it tested by other programmer as well. 8. Fix bugs if any. 9. Take care of exceptions that can occur. 10. Comment your code well. 11. Keep it simple. 12. Use any version control if you are working on big task or with team, it saves efforts, confusion and time. 13. Try to use concepts of OOP that makes code reusable and secure. 14. As you get experience, you will know more good habits, Do share those habits with us :)
A good programmer is someone who looks both ways before crossing a one-way street.
Of course there are all the remarks about coding style and putting comments. The most important : you will never spend enough time thinking about the big picture and the algorithm complexity before running into coding.
Being different and stupidly patient.
Tips: Think of the most stupid user. Make everything very user-friendly. Program first, design second.
Please write down PSEUDO CODE (code simply written in your native language to draw a rough sketch of your code) before writing the code it will save lots of time.. Writing comments in your code helps in debugging the code.. ✌️✌️✌️✌️
I usually read articles about programming such as how does the code/module works, what library should I use, the best way to build somethin' (depend to my project), question about some cases that I probably get someday, so on. when I'm stuck, I ask in forums
You gotta experiment!
What I have come to realize with larger projects, is that you should definitely plan your moves out and write them down before you do anything. For smaller projects it may seem redundant, but another trait that a lot of programmers posses, is definitely a difficulty to stay on track. There's so many times I have seen great programmers, just get stuck up on the details, and get lost in them. Obviously it is important for you to pay attention to detail, but if you're stuck on something for over 5 minutes, you're probably going to be stuck on it for the next 30 minutes to an hour. That's another great hint for a beginning programmer. Work on your projects dynamically, because it really helps your innovation and prevents getting frustrated over a minor details.