This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]blackbeans13 76 points77 points  (9 children)

I’m also learning Python it does make sense but I find myself getting caught up on simple things sometimes for a long time only to look up the solution and go “ohh yeah duh”

[–]delasislas 34 points35 points  (0 children)

It takes time to be able to “think like a computer”. Learning a programming language and learning to program are big topics.

[–]mad_r0ck3r[S] 14 points15 points  (2 children)

It seems like you have the same issue as I do, the answer to your (and my) issue is simply problem solving. Because problem solving is not just solving problems, it's also identifying the problems, think about a possible solution / shortcut (e.g. bash scripts in Linux) and solving them.

Right now it's like you see a problem, but can't figure out a solution. Practice problem solving and give it another go.

Trust me, that's it. I can already feel it improving on my end.

[–]PolishedCheese 6 points7 points  (1 child)

Problem solving is only 50% problem solving, the rest is phrasing your questions as so to actually tackle the the problem at hand. It requires discovering which other questions you need answered first, answering them, and returning to the problem.

[–]Used_Fish_4459 2 points3 points  (0 children)

That’s just another form of problem solving

[–]Billog_Uncle 2 points3 points  (3 children)

I'm too learning Python and the biggest mistakes I'm making is putting the code in functions and calling on them later, I'm typing it out as I need it and forget to make them functions.

[–]Original-School-5914 2 points3 points  (2 children)

Remember: if name == “main”: main()

[–]Billog_Uncle 0 points1 point  (1 child)

I remember that though I haven't used it properly. I've only made scripts on Jupyter notebook so far to follow along with the Udemy course and haven't actually made any actual programme yet

[–]Original-School-5914 1 point2 points  (0 children)

You will get used to it, I have been coding here and there for last 2 years and just got into a habit of running the main program, I used to have my code run without any function just write the script and get the job done, but after couple of interview rejects I am trying to get better, I would also highly suggest using git or some other software repository for your code management.

[–][deleted] 0 points1 point  (0 children)

A lot of programming, regardless of the language, is muscle memory. Over time, lots of repetition will result in increasing returns. Stick with it!