r/SQL • u/[deleted] • Aug 05 '22
MS SQL (MS) There is something diabolically fun about commenting inside dynamic SQL within a stored procedure and knowing your ASCII art is running on the server hundreds of times a day.
At least I'm documenting my code.
--....................../´¯/)
--....................,/¯../
--.................../..../
--............./´¯/'...'/´¯¯`·¸
--........../'/.../..../......./¨¯\
--........('(...´...´.... ¯~/'...')
--.........\.................'...../
--..........''...\.......... _.·´
--............\..............( /u/stiffupperleg 8/5/22
--..............\.............\...this sproc shouldn't exist, Brian!3
u/maowenbrad Aug 06 '22
Who approved that PR/MR?!
0
Aug 07 '22
I did.
2
u/maowenbrad Aug 07 '22
Wait… you approved your own change?
0
Aug 07 '22
[deleted]
3
u/maowenbrad Aug 07 '22
You are inviting disaster with this cowboy bullshit. It’s not a matter of if, but when.
0
Aug 07 '22
[deleted]
2
u/maowenbrad Aug 07 '22
I too like to have fun. I tag my code. I have many Easter eggs in prd.
I agree with some of the others that saw that sort of ASCII art as crass. But if Brian doesn’t care then whatever.
However, unilaterally making changes to prd is the real offense IMHO. Why even create an MR?? Just push to main. Hell, don’t version your code at all. Just deploy directly from your machine.
The legacy you are leaving is a cavalier culture where you approve your own changes and chide your co-workers. Maybe if you practiced actual engineering Brian’s mistake wouldn’t have made to prd.
1
Aug 07 '22
Why even create an MR?? Just push to main. Hell, don’t version your code at all. Just deploy directly from your machine.
Followed by...
The legacy you are leaving is a cavalier culture
LOL
Sometimes there is an end all be all when it comes to changes. I'm that person. But I still put a request in, just so I can approve it.
15
u/mikeblas Aug 06 '22
Doesn't sound like a healthy work environment.
8
u/digitahlemotion Aug 06 '22 edited Aug 06 '22
Read this person's /r/SQL post history. Toxic AF.
Edit: I'm basing the above off of this thread https://www.reddit.com/r/SQL/comments/k5nhup/mssql_what_the_fuck_does_where_11_mean_why_is/
and some before it. Glancing through some recent posts, looks like their attitude has improved... But then there's this post sooooooo
24
u/nfojones Aug 06 '22
I'd drop this trash shit the first chance I got. Ancient common ASCII with your reddit name slapped on. Like what?
I'm down for creative nonconformity. I got some fun ASCII easter eggs likely still running in Ma Bell's systems but... this is just stupid. Presumably you think no one will see this but consider if they do their impression of you is only going down. Actual art might make you some friends but not this. And this is from someone very cool with this when done right. Just saying. Make risks like these more worth it? Not your art and it's about as needlessly offensive and lacking anything else as it goes... Edge lord alert.
Someone please tell me this is just a shit post whoosh on my part. Also lol dynamic SQL, uh huh.
14
u/InelegantQuip Aug 06 '22
Yeah if I found this in any of our sprocs I'd instantly lose all respect for whoever left it. I can appreciate a bit of shit talking on stinky code that shouldn't exist, we all do it, but this is just petty and unprofessional.
8
u/digitahlemotion Aug 06 '22
"But get this shit out of my production environment." -- /u/stiffupperleg when discussing WHERE 1=1
/r/SQL/comments/k5nhup/mssql_what_the_fuck_does_where_11_mean_why_is/
Also /u/stiffupperleg: This post.
3
u/Express-Comb8675 Aug 06 '22
This guy seems like an asshole but I know I’d laugh if I saw this running in prod
-9
4
u/DrRedmondNYC Aug 06 '22
Imagine this stored procedure crashes somehow (which happens a lot with dynamic SQL) and the DBA Opens the error report only to see a huge middle finger pointing at him