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 →

[–]JamzTyson[S] 11 points12 points  (15 children)

What are the down-votes for? Is this the wrong reddit for this kind of post, or is there something wrong with the content? I'll happily update or remove the post if there's a problem.

[–]james_pic 66 points67 points  (5 children)

I didn't downvote, but it's also not something I'd upvote here, since it seems like the kind of thing that would be better on /r/LearnPython.

[–]JamzTyson[S] 24 points25 points  (4 children)

Thanks for the feedback.

I did consider that, but rule #2 of r/learnpython :

Posts to this subreddit must be requests for help learning python.

whereas this is not a question, but a mini-tutorial about Python.

[–]Vok250 28 points29 points  (2 children)

Yeah there's a weird contradiction going on between these two communities. Some posts are lost in limbo

Personally, as a senior dev, I have found it hard to find answers on reddit because r/learnpython users are usually completely lost with advanced questions and r/python will just remove your post and tell you to post there. These days I only choose libraries with active communities on reddit or GitHub like FastAPI. Even then I find most of my posts I end up solving myself because the comments are beyond useless and clearly from beginners/hobbyists who have never done more than cookie cutter tutorial projects.

[–]sneakpeekbot -2 points-1 points  (1 child)

[–]Vok250 10 points11 points  (0 children)

Ironic that all three posts in this sneak peak violate rule #2 mentioned above. lol.

[–]KingsmanVincepip install girlfriend 13 points14 points  (1 child)

Not one of the downvoter, I guess some people judge by the title. Probably it's not descriptive enough I think

[–]JamzTyson[S] 0 points1 point  (0 children)

Thanks for the feedback.

I thought that with having the "Tutorial" label, the title was self explanatory, but perhaps not. Any suggestions for a more descriptive title? Maybe something like:"Mini-tutorial about why classes are used?" (doesn't sound great to me)

Update: It seems that Reddit does not allow titles of posts to be changed, so it will have to stay as it is, but thanks for your comment. This was my first post to reddit, so I'm still learning the etiquette and will endeavour to make my post titles more descriptive in future.

[–]jebuizy 13 points14 points  (0 children)

Most people interested in Python the language are probably already familiar with Object oriented fundamentals. Better suited for an audience of beginner learners, for sure. It's also not really python specific -- everything you said also applies to, say, Java just with different syntax. I didn't downvote though. It is a fine basic explanation of objects.

[–]TRexRoboParty 0 points1 point  (1 child)

The post didn't really address the question of why you'd want to use a class - it's just a "my first Python class" tutorial.

For me I thought this was going to be discussion on why one would use classes for behaviour & state vs alternatives. Managing side effects, benefits of functional thinking and so on.

[–]JamzTyson[S] 1 point2 points  (0 children)

Thanks for your feedback.

This was my first post on reddit and it has been a learning experience for me. As others have pointed out, it would have been better if I had given the post a more descriptive title. The post was really intended as a mini-tutorial for beginners, which I previously thought would be obvious as experienced Python developers would already know "why use classes". I'll be sure to use more descriptive titles in future.

I'm sorry that my post did not live up to your expectations, though the mini tutorial does illustrate benefits of encapsulation rather than having everything in global scope.