Community Discussions
Explore the latest discussions and community conversations related to this domain.
Why is .join() the way it is?
Main Post:
<rant>
I've been programming in Python for almost a decade now and I love most things about it. One thing that never felt right to me was how a string's .join() method works. In short, ' + '.join(['a', 'b', 'c']) returns 'a + b + c'.
Wouldn't it make more sense to have the join be a member function of the list/iterable? You could apply the same type constraints. I'd even be comfortable with it floating alone in the namespace and calling something like join(['a', 'b', 'c'], ' + ').
In short, the current way feels backwards in some way that I can't explain an it's grinding my gears rn. Carry on.
</rant>
Top Comment: Well you can kinda still use it in global namespace, just do: str.join('_', ['a', 'b', 'c']) Which probably does not help as the string must come first anyway, but its there. And I personally think it could be lst.join('_'), the reason it is not that way, is that you can join tuples and sets using currect way too, if it worked like you proposed, therew would need to be join method for list, tuple, set and any other appliable iterable, which I dont think would be super bad, but whoever was designing python decided against that. To put it simply, you always join using some string, but you can join iterable of different types -> the join method is tied to string. EDIT: I would rather see some automatic conversion to string, so that I could do just ", ".join([1, 2, 3]), without converting the list of numbers to strings, I know that internally it would convert the integers to strings anyway, so there would be no performace benefit, it would be just something nice for the programmer. Not sure why this is not there, maybe a question for further discussion.
How do I properly start on Reddit with a new account?
Main Post:
I just started my account yesterday, and the world of Reddit seems so daunting. I made several comments, but only two of them got upvoted, and one got downvoted, and now I have no karma 🥲
The subs for the place I live around in have restrictions on how old your account is (1 to 2 weeks), and I am pretty sure there are many subs out there that make you have karma beforehand, which is a chicken and egg situation. Where in the world do I even start to have success!?
Top Comment: Welcome to r/NewToReddit , u/HandyGoNutty ! Thanks for posting. Someone will be along to help you shortly. If you're new, check out our "General Guide to Reddit and Karma" Wiki page version or Mobile friendly post version , it explains how to get started on Reddit; including information on karma, navigation, and more. You might also like to check out our wiki index and FAQ . While you wait for assistance, browsing through some recent posts, or typing a query into the search bar at the top of the page, may help you find your answer. On our sister community r/LearnToReddit you can find guides on posting, commenting, formatting, flairs, and can practice those things too! Once you get some answers, don’t forget to engage and ask any additional questions you have! Please let us know how you found us! - Click here to fill out our one question survey Thank you! :) Was this helpful? You can comment "Thanks, AutoMod" or "Good job, AutoMod" to thank me if it was! I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
What is the best way to go about joining Reddit?
Main Post: What is the best way to go about joining Reddit?
Top Comment: Signing up
Reddit - The heart of the internet
Main Post: Reddit - The heart of the internet
How is it best to go about when you first join reddit?
Main Post:
Like what first steps should I take? Or any important advice?
Top Comment: Welcome to r/NewToReddit , u/ghostcat04 ! Thanks for posting. Someone will be along to help you shortly. If you're new, check out our "General Guide to Reddit and Karma" Wiki page version or Mobile friendly post version , it explains how to get started on Reddit; including information on karma, navigation, and more. You might also like to check out our wiki index and FAQ . While you wait for assistance, browsing through some recent posts, or typing a query into the search bar at the top of the page, may help you find your answer. On our sister community r/LearnToReddit you can find guides on posting, commenting, formatting, flairs, and can practice those things too! Once you get some answers, don’t forget to engage and ask any additional questions you have! Please let us know how you found us! - Click here to fill out our one question survey Thank you! :) Was this helpful? You can comment "Thanks, AutoMod" or "Good job, AutoMod" to thank me if it was! I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
How do I join communities?
Main Post: How do I join communities?
Top Comment: Welcome to r/NewToReddit , u/Submissivemaidxo ! Thanks for posting. Your post has been flaired 'Needs attention' so we can easily identify which posts require answers. Someone will be along to help you shortly. If you're new, check out our "General Guide to Reddit and Karma" Wiki page version or Mobile friendly post version , it explains how to get started on Reddit; including information on karma, navigation, and more. You might also like to check out our wiki index and FAQ . Please let us know how you found us! - Click here to fill out our one question survey Once you get some answers, don’t forget to engage and ask any additional questions you have! Once you have a good answer you can mark your post as answered by commenting with the exact phrase !answered. Otherwise, a mod will do so as time allows, once an accurate answer has been provided. This makes unanswered posts easier to find. Thank you! :) I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
I just joined Reddit. What do I do here?
Main Post:
My friends told me to join Idk what to do now
Top Comment: Welcome to r/NewToReddit , u/maroon-red-56 ! Thanks for posting. Your post has been flaired 'Needs attention' so we can easily identify which posts require answers. Someone will be along to help you shortly. If you're new, check out our "General Guide to Reddit and Karma" Wiki page version or Mobile friendly post version , it explains how to get started on Reddit; including information on karma, navigation, and more. You might also like to check out our wiki index and FAQ . Please let us know how you found us! - Click here to fill out our one question survey Once you get some answers, don’t forget to engage and ask any additional questions you have! To mark your post answered once you are happy, please comment including the exact phrase !answered Thank you! :) I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.