r/learnpython • • Apr 17 '21

Can you advise good online courses for getting better in code structure?

Good day. I’m a junior Python developer, and I try my best to get better. Python is quite simple to start (compared to C++ or so), and now I’m at the point where I’ve already got basic knowledge, and want to develop my code structure skills. I mean, I would want to comprehend how to split your code correctly, which patterns is better to use, so that it can be scalable and I wouldn’t be ashamed to show it to experienced programmers. So I hope you can advise me some online courses (or anything) associated with this, or just any advise for me at this point will be appreciated :)

334 Upvotes

25 comments sorted by

20

u/Ran4 Apr 17 '21

The book Clean Code by Robert C. Martin is a classic that you should definitely read. It's very OOP heavy (making it a bit dated in those areas), but most of the book focuses on great design patterns and how to write nice code.

5

u/Sysell Apr 17 '21

I like OOP, gonna add this book to my read list. Thank you

7

u/duffer_dev Apr 17 '21

Here's a 6 video playlist from Robert Martin aka Uncle Bob . Clean Code

Nothing python specific. But still a good thing to know for any programmer

1

u/duffer_dev Apr 17 '21

Clean code is a nice concept. I have yet to read his book. Have been watching his videos on YouTube. There are 6 videos , each about an hour long. It is really good stuff

9

u/TTiennou Apr 17 '21

I’m in a similar situation and I advise you to look at github repositories, from projects you can find on Medium, you’ll find out the patterns you need !

3

u/Sysell Apr 17 '21

That’s a good way, for sure! Thank you

3

u/ASIC_SP learnbyexample Apr 17 '21

I'd suggest these books: Serious Python and Practices of the Python Pro

2

u/Sysell Apr 17 '21

Thank you! Definitely going to read this

132

u/dogfish182 Apr 17 '21

https://refactoring.guru/design-patterns/python

Design patterns are like legos. Learn how to get good with lego

37

u/TravisJungroth Apr 17 '21

Read lots about design patterns. Don't use them every time, don't always name your code after the pattern, but just let them sit in your brain. That refactoring.guru link someone posted looks nice. There's also https://python-patterns.guide/ and https://github.com/faif/python-patterns.

Two really good books are Effective Python and Python Cookbook. If you have a ton of time you can read them cover to cover. Otherwise, feel free to just look at what's interesting. You'll learn a ton.

Then the final king of them all is Fluent Python. It's about all the amazing advanced Python features. If you're like me, it might make your code worse for a few weeks while you over-apply the magic! But it's incredibly worth it once you chill out.

18

u/_11Bravo Apr 17 '21

I’m not sure about your specific issue, but the website www.realpython.com (I think that is right) has a ton of well done advanced tutorials. It is probably the best resource I have found for going into an intermediate level

6

u/peaceTraitor Apr 17 '21

I recently stumbled upon this YouTube channel. https://youtube.com/c/ArjanCodes is design focused rather than feature focused. is short and sweet and let's you have the big picture to later dig in specific areas.

1

u/swapripper Apr 17 '21

Thanks. Looks pretty good.

5

u/[deleted] Apr 17 '21

I’m in the same boat mate. Thanks for this!

3

u/Hosea8702 Apr 17 '21

yeah me too.

2

u/-FDT- Apr 18 '21

And me

1

u/BeingMyOwnLight Apr 18 '21

Me too! 👍

3

u/[deleted] Apr 17 '21

Pluralsight is free for the balance of the month. They have a few nice courses on refactoring /larger program design.

2

u/use_a_name-pass_word Apr 17 '21

Someone recommended the Robert Martin videos which I agree with (they are very good. Also the Google videos on this topic are quite good albeit, quite Java-oriented

https://youtube.com/playlist?list=PLx5t1p9LqYUe_3LrWrrJN5agu5Jcd-3bG

1

u/Special_Rice9539 Apr 18 '21

I used this textbook in my object-oriented python class, and it was actually really good.

Philips, Dusty. (2018) Python 3 Object Oriented Programming 3rd Edition.

-1

u/elonmusk12345_ Apr 17 '21

YouTube is amazing