r/badcode • • Mar 31 '21

python It should have been a code, not an article

Post image
726 Upvotes

71 comments sorted by

View all comments

Show parent comments

-4

u/nurley Mar 31 '21

TIL

I hope everyone wants to learn how to code, that's great. I think there are better resources and ways to learn for beginners though. Once you have a handle on the basics learning from others mistakes is definitely a good thing to do.

4

u/[deleted] Apr 01 '21

I doubt anyone uses this as anything other than a supplement.

-4

u/nurley Apr 01 '21

Maybe I'm projecting but I'd assume most people use this for personal entertainment -- code they've come across online, code they've seen at work, and code from their past.

If someone is actually trying to learn how to code by learning how not to code I'd advise them to maybe use their time more wisely with other resources first.

3

u/inspectorpikachu Apr 01 '21

I think you are way overthinking it.

Some people might browse this subreddit because it’s entertaining but might ask a question if they don’t know something. There’s no need to gate keep

1

u/DJOMaul Apr 01 '21 edited Apr 01 '21

Shrugs. I make six figures writing automation. But I didn't goto college, nor have a cs degree. I get caught up occasionally on specific terminology, but I can problem solve circles around most of my colleagues. It's a weird field we work in where you can accomplish a lot while missing some seemingly basic (to others) info. I can name every element in your cell phones call path, and automate most of the data, parsing, troubleshooting, etc for tools related to the operations of those nodes. That said I definitely had to look up some shit related to linked lists earlier because I don't deal with them a bunch.

Not that I don't work hard to fill those types of gaps, but we work in a very large field with many varied ways one could find themselves in this situation. Stuff like this IS useful to someone like me who might identify a coding pattern myself, or others are using but may not recognize is bad. I've personally corrected our interns who typically are in CS degree programs, who have used code like the examples.

Edit: We all suck at this including you. I mean... Do you know the mathematics behind ospf and a*? Do you know what they mean and how you can take advantage of them? I'm not saying I do but I promise you someone does, so why should they be considered better than you or I? What if they can do the math but can't apply a* in a way that makes business sense?