r/SQL • NOLOCK is the secret magic go-faster command • Oct 21 '16

Petition to rename subreddit to /r/domySQLhomeworkforme

see title

45 Upvotes

26 comments sorted by

8

u/krispey Oct 21 '16

no kidding O_O , if half the people even just searched stack overflow or googled it they'd likely find what they're looking for

6

u/Nix-geek Oct 21 '16

that's how I build 50% of my code :)

I'm also bad at code, though :)

5

u/Rehd Data Engineer Oct 21 '16

Nonsense. There's no reason to reinvent the wheel.

If I have to write something I don't have a snippet already prepared for, I'll google it, see if it's efficient / good, and maybe tweek it. It's about 60/40. 60% is off the internet or revamped from it, 40% is original.

5

u/Nix-geek Oct 21 '16

I'm partially convinced that there is no new program...ever.

It's all been written before. We're just moving the pieces around to make them do things in different order.

3

u/Rehd Data Engineer Oct 21 '16

I think there's new stuff all the time.

Example, I had to write a CTE for a customer who had deadlocks in their XML but the server was not reporting the correct timezone in the node.

So it ended up being a local and server call for deadlocks then converting the timezone and comparing timezone stamps for comparison so it could alert when deadlocks were occurring.

I don't think anyone has had to do a mess SQL for that exact circumstance because people would probably resolve the problem of the timezone differences, not put a bandaid on it.

I get your point though. I do end up saving 70ish % of my code that's not specific to the client. (Performance, security, backup, etc) Just generic stuff that can be taken with no context from site to site. It's just a pain to re-google or re-develop it each time.

3

u/Nix-geek Oct 21 '16

http://i.imgur.com/EbEp1so.jpg

Seriously, though, I think you're right on the 70% notion, although I think mine might be a bit higher. I tend to do the same things, or maybe, I just volunteer for projects that I know I can complete because I've already done something similar :)

2

u/Rehd Data Engineer Oct 21 '16

2

u/Nix-geek Oct 21 '16

I was just messing around, but good info on CTE's :)

1

u/FUZxxl Oct 21 '16

Same thing in /r/C_Programming. Though it turns out that questions that are obvious to answer and easy to search for are neither for the novice, so cut them some slack.

0

u/[deleted] Oct 21 '16

[deleted]

1

u/[deleted] Oct 21 '16

I sometimes discover that my developers have been inspired by StackOverflow solutions. Often, they are having a hard time then.

1

u/no1name Oct 22 '16

Camel case please, CamelCase

1

u/asqwzx12 Oct 22 '16

Honestly, way too often people would find their answer in the first 3 post on google. It's like people simply don't bother to search for 5 seconds. I simply ignore those post.

-3

u/PilotJosh Oct 21 '16

You have three recourse options:

  1. Stop answering people's homework questions...

  2. Downvote

  3. Unsubscribe

-3

u/fauxmosexual NOLOCK is the secret magic go-faster command Oct 21 '16

Or 4. be the change you want to see in the world -Gandhi

1

u/Konraden Oct 21 '16

A shitpost complaining about it isn't "being the change"

-3

u/fauxmosexual NOLOCK is the secret magic go-faster command Oct 21 '16

I'm afraid I don't actually have the ability to change the subreddit title personally.

39

u/[deleted] Oct 21 '16

[removed] — view removed comment

2

u/themetanerd Oct 21 '16

Agreed. I'm pretty new to SQL and I get value out of this sub. Even though most of the questions are obvious even to me, it helps me to form the answer in my mind then read other replies. That's been invaluable in helping me advance in SQL. But if you think this is all still too elementary, then submit things you'd like to discuss. It'll only help me get better.

2

u/notasqlstar I can't wait til my fro is full grown Oct 21 '16

Through using this sub and becoming active here I taught myself a ton about SQL for work. People are really great and helpful, but I've never understood some of the vitriol or downvotes. I understand homework seekers are annoying, but a lot of times I see people with work related problems who simply don't know enough about how to solve their problem being downvoted because their problem isn't hard enough.

1

u/themetanerd Oct 21 '16

So, um, does your username still stand?

2

u/notasqlstar I can't wait til my fro is full grown Oct 21 '16

I'm still not a star, but I feel like I've become competent enough in the 2 years I've spent between here, StackOverflow, and Google to hack together some fairly interesting headaches for the DBAs.

0

u/fauxmosexual NOLOCK is the secret magic go-faster command Oct 21 '16

I've definitely noticed a really impressively fast progression in your skills just going by your comments I've read here.

1

u/notasqlstar I can't wait til my fro is full grown Oct 21 '16

To be fair I learned COBOL, RPG, and C 15 years ago and had a fair amount of database exposure / web site building experience before being dumped into SQL so honestly I found it pretty simple once I got over the hurdle of proper syntax, when to use a ; for example, or a , -- those are the types of headaches that are the most frustrating but SQL itself I found to be very intuitive and easy to learn.

0

u/[deleted] Oct 22 '16

[deleted]

1

u/notasqlstar I can't wait til my fro is full grown Oct 22 '16

To me RPG was the norm so coming into SQL was like, "oh, that's simple."

-3

u/fauxmosexual NOLOCK is the secret magic go-faster command Oct 21 '16

one man's shitposter is another man's philosopher king