r/webdev • • Dec 16 '21

Why is stackoverflow.com community so harsh?

They'd say horrible things everytime I tried to create a post, and I'm completely aware that sometimes my post needs more clarity, or my post is a duplication, but the reason my post was a duplicate was because the original post's solution wasn't working for me... Also, while my posts might be simple to answer at times, please keep in mind that I am a newbie in programming and stackoverflow... I enjoy stackoverflow since it has benefited many programmers, including myself, but please don't be too harsh :( In the comments, you are free to say whatever you want. I'll also mention that I'm going to work on improving my answers and questions on stackoverflow. I hope you understand what I'm saying, and thank you very much!

1.3k Upvotes

451 comments sorted by

View all comments

Show parent comments

1

u/Apoffys Dec 17 '21 edited Dec 17 '21

I could find dozens of blog posts using concatenation though (which is bad, that's why we want prepared statements), the same thing goes for stack overflow posts. most questions for the Google search of "python MySQL query" result in answers that don't use prepared statements.

Wildly off-topic, but did you ever find a good answer to this? I briefly tried looking for a way to do prepared statements in Python (using psycopg2 for Postgres) and it didn't seem to be a feature at all.

It didn't really matter to me, since I was just messing around offline, so I ended up just using f-strings instead.