Need so tips and advice in coding
Posted by Nearby-Wishbone4950@reddit | learnprogramming | View on Reddit | 5 comments
so here's the thing we have been learning oop stuff like classes and objects and linked list stacks and queues in c++, I get the concept of it and i sort of struggle with them writing them out in code, but then we have these supplementary activities, i like for example struggle on how to integrate those concepts in a coding program on what was the goal of the task asked. Any tips on that I am really struggling always during my classes and always miss finishing the activities, im a really slow learner as well does anyone know how to fix that. And whenever i would try to practice idk where to start with the code because im so scared of making mistakes and i end up burning myself out and losing my motivation without doing anything at all and i hate myself for that.(Sorry for my really bad English).
codingzap@reddit
Hey, everyone has their own learning pace, so it’s fine if learning right now is a little slow, but you’ll be able to catch up soon. One thing that you can do is try writing psuedocode or creating flowcharts or workflows before you code. The key here is to focus on small and clear steps that will automatically combine. I used to practice like this.
Also, start with basic operations before bigger integrations. For example if you’re working with stacks, see if you can easily solve push/pop operations. Your critical thinking skills will develop over time since you’ve already solved a lot of smaller problems.
Nearby-Wishbone4950@reddit (OP)
The problem is that they give us simple problems at our module at first, and after that the supplementary activities just give us a huge jump of difficulty because of this, so even if i have simple basic knowledge of the codes used, my skill is very far off from solving the task, and it would take me time to learn and idk why they keep deadlines so short so i never have the time to learn at all.
codingzap@reddit
Yeah, short deadlines and though work feels rough. Been there. But even if you solve your problem halfway, that’s still progress. You won’t be able to get the accurate solution at the first try, eventually it will get better. Also, you can try writing small code snippets daily, not just for your modules but to build confidence. Write, revise, repeat. That’ll make it better. Hope this helps!
Nearby-Wishbone4950@reddit (OP)
Thx so much for the advice
Immereally@reddit
Start with learning how to plan a project effectively.
1) Look at the brief (assignment) list out all the key words in it. What are we dealing with? what do we want to do? how big is it going to be? Who’s going to use it? 2) now we have the objects and classes let’s fill them out. What details will each class have? how do they connect? Are there shared classes for certain objects?(like teachers and students share first-name, surname, age, address) that can be a person class()). What functions do we need to perform on them? 3)we have everything lined up now plan how your going to execute it. Write up some side code going through each step. And mark out functions to perform specific tasks (like grade_average(), student_award()) 4) put it all together 5) Review the most important bit for learning . Go back and see what you did right, what you struggled with and what you’d like to do better next time
It’ll take ages the first time or 2 just getting used to doing everything and laying it out but you get a lot quicker and better at picking out details and seeing issues before they pop up.
Side Note: before trying to implement something new build an example project.
So like for your linked_list build a basic example where you can enter a series of strings. When finished entering print the list.
After that works adjust it to print in reverse with a command like list -r.
Then make it so you can delete elements in the list, like look for the value 5 or if it stores name’s look for “Adam” and delete it (you then have to rejoin the one before and after.
Build up in small steps testing it before you put it into a bigger project with more to mess with.
Everyone goes through this don’t worry too much but start practicing the above and learning it starts to come more natural👍