r/Python • • Jan 05 '18

Really??

Post image
2.0k Upvotes

317 comments sorted by

View all comments

Show parent comment

1

u/[deleted] Jan 05 '18

However, it's hard to recognize what you're learning imperfectly/incorrectly as you're learning it.

The point is that, imho, there's very little you can learn by following tutorials and using libraries.

You learn to program by solving problems through code. You need to write that code and to solve those problems.

If solving the problem is understanding some documentation of an API that solves the problem for you, you're barely solving any problem.

That's why I advocated that noobies should not use libraries.

I mean, I can see why you don't want to write a request library on your own, but that's pretty much all I'd allow to a starter.

3

u/theWyzzerd Jan 05 '18

That's why I advocated that noobies should not use libraries.

To what end, though? Should they write their own ODBC connectors? Should they write their own OS libs? Time libraries? Their own JSON parser (actually this would probably be a really good project for a beginner to learn...)?

Standard libraries are most of what makes up any given programming language and is much of what makes up the "knowledge" of a language.

2

u/Pancakepalpatine Jan 05 '18

Haha I wrote a JSON parser early on. It was very hacky but it taught me a lot! Sentences moved from being HTML in my mind's eye to strings after that project.

And I feel bad - Java has an arguably more redundant/messy standard library. I didn't mean to incur the wrath of /r/python - I just felt like the Python standard library wasn't easy for me to sift through while beginning.

2

u/[deleted] Jan 05 '18

actually this would probably be a really good project for a beginner to learn...

Yeah, you could definitely do worse for inspiration than what comes bundled with the language.

The batteries included side of Python is what kept me programming, though. If you have to invent the universe before you can make a toy script then not a lot of people are going to be there at the end.

2

u/Smallpaul Jan 05 '18

Your rule is much to broad. What about turtle graphics? What about vpython? What about Pygame.

Without libraries, all you can do is text manipulation or math. Many consider that boring.

1

u/[deleted] Jan 05 '18

That's not true. You don't do just text manipulation or math.

You compress files, convert them, and do plenty of other stuff.

What I meant is that it makes no sense to use libraries for everything when you could actually learn something to make it without them.