r/learnpython • • Feb 20 '21

What are you having difficulty learning or are currently struggling to learn?

I'm curious what the community here has difficulty with when it comes to learning Python. Partly because I want to see if the more experienced community here (or myself) can help point you into the right direction. . . but also because I'm trying to come up with video tutorial ideas for future content and would love to hear from Python learners what would be most useful to dedicate our time on.

I'm looking forward to hearing what you guys have to say!

417 Upvotes

324 comments sorted by

View all comments

Show parent comments

3

u/MaraudingAvenger Feb 20 '21

I'm one of the weirdos that doesn't worship the goat. If you're doing a massive project, I completely understand how writing your unit tests first and then programming to those unit tests makes a lot of sense, to keep a team focused on the same outcome... but.... for personal projects, or projects where I don't have a huge idea of the overall shape until I'm about halfway through, it's a total motivation killer and way overcomplicates something that I'd rather get going/make real progress on.

I think the right answer is probably, "make your tests as granular as you're comfortable with," or something along those lines -- good ideas are good, until they're not.

2

u/ffrkAnonymous Feb 21 '21

For now, I'm just practicing. Paraphrasing, gotta know the rules before you break them.

As a personal anecdote, perhaps because I'm still early in my skills, and I don't know what I'm doing, because I don't know the shape, TDD has been helpful for me in making progress in Advent of Code. I write random-ish little pieces of code, and putting them together, and then expand them. TDD has helped me see patterns, that would be refactored into more generic structures, that I couldn't come up with in my head. Starting with base cases and working out to generic cases.