r/pythontips • • Oct 23 '18

Concepts that help make coding in python “click”

I’m an engineering student and have taken 2 courses in python and am now working a part time job writing python code. I know Im not a beginner since I have a decent amount of experience and can complete most of the tasks required of me, but I feel like my level of understanding and progress is at a standstill.

When I open docs for packages and libraries I am not familiar with I have a hard time fully grasping the necessary concepts within the docs to implement them myself. I feel like this leads to me writing inefficient code and also wastes a lot of time since I spend a lot of time looking for similar code examples.

I know there is no magic answer here and obviously more practice will always be beneficial, but I am wondering if there is anyone out there that might have been in the same situation that was able to reach that next level of understanding? If so, are there any concepts that once you understood helped get you to that next level of writing code and becoming more efficient at programming in python?

This could be a dumb question but figured this would be the best place to get an answer even if I do get roasted. Any and all answers would be much appreciated! Thanks

29 Upvotes

6 comments sorted by

11

u/FesseJerguson Oct 23 '18

I find hackerrank to be very helpful with core python skills, I always read the discussions even if I easily solved the problem. I have learned more from other peoples solutions than actually solving them.

1

u/mikehoncho128 Oct 24 '18

Thanks for the suggestion! Have never used hackerrank but will have to check it out for sure. Do you think that helps more than looking at examples on stackoverflow or other websites like that? I bounce around these sites all the time but I feel like unless it’s almost identical to what I need to do I don’t get much out of it

2

u/FesseJerguson Oct 24 '18

I think it helps you understand core components and how/when to use built-ins.

7

u/troywilson111 Oct 24 '18

If I write some code that works but, may not be the most effective way to code it you can always drop a copy of it on https://codereview.stackexchange.com. Just ask the crowd for better more advanced ways to code it and you would be amazed at the neat and cool tricks you can pick up on.

3

u/Jewlanu Oct 24 '18

Have you picked up online courses? If so could you recommend, I am 'kinda' in your situation, and I definetly want to improve. What do you think are the most important things to know?
I recommend codingbat.com/python but it's not like they have a lot of exercises and there's also exercism.io

1

u/spartan12321 Dec 17 '18

I think being good at reading docs is a skill acquired by reading lots of different documentation. Being good at oop also helps because a lot of time documentation is about initializing object and using its methods, especialy in python.