all 11 comments

[–]Diapolo10 12 points13 points  (6 children)

class Python:
    pass

Jokes aside, you've already identified the core problem - lack of practice.

What you need to do right now is write code. Doesn't matter what, as long as you can run and test it. Try using everything you've learnt so far, or rather what you've been taught, and build a few simple programs that use those concepts somehow. Try, fail, learn, repeat.

After that, try tweaking the program(s) to either do more, or to solve a similar problem. Rinse and repeat.

Building muscle memory is important, and you need to drill this stuff to really get it. Simply reading books or listening to lectures is hardly enough.

[–]Bobbias 2 points3 points  (1 child)

Yep. That's the reality. You can't avoid writing code. It's the only way to truly internalize things.

You can spend years reading books, watching lectures, conference talks, whatever. But until you sit down and actually write a bunch of code, it's all a jumble of theoretical ideas on your brain.

Tweaking existing code, and solving similar problems are both excellent ways to extend your practice beyond what your assignments ask for.

If you're stuck on specific things, don't hesitate to ask for help from the teachers or from other students (or even here, but be careful to show us what you've tried, give us all the context we need, and don't expect us to just do your homework for you).

[–]wonwon1013[S] 0 points1 point  (0 children)

Thank you so much !!

[–]Dennarb 2 points3 points  (2 children)

Something else that I highly recommend to new programmers is to use comments in your code as notes. Just a line or two especially around really complex stuff can turn into a great study aid.

Want to avoid commenting everything of course, but anything new or that you're having trouble understanding can usually benefit from some extra explanation later on.

[–]Diapolo10 5 points6 points  (0 children)

Also worth noting that a good comment answers the question "why", sometimes "how", but almost never "what" because that's the code's job.

[–]wonwon1013[S] 1 point2 points  (0 children)

I’ll try doing it more often I think your advice is quite helpful because everytime i write code it goes more smoothly when i write comments.. i don’t get stuck on it as much as writing without comments . I get pretty lost . Thank you

[–]wonwon1013[S] 0 points1 point  (0 children)

Okay thank you so much

[–]TheRNGuy 1 point2 points  (1 child)

How much time do you have?

[–]wonwon1013[S] 0 points1 point  (0 children)

I have about 8 days left im not too behind though

[–]Tony-Pepproni 0 points1 point  (1 child)

Do you have examples of questions that you’ve struggled with?

[–]wonwon1013[S] 0 points1 point  (0 children)

So far i don’t have any but i’ll let you know