MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/shittyprogramming/comments/dchwf4/just_a_simple_formula/
r/shittyprogramming • u/recursive • Oct 02 '19
19 comments sorted by
4
May be auto generated for something where perfomance doesn't matter...
1 u/[deleted] Oct 03 '19 When does performance not matter? 1 u/recursive Oct 04 '19 For ad-hoc queries done for diagnostic purposes. 3 u/thirdegree Oct 03 '19 Tuesdays 2 u/Dushenka Oct 03 '19 When you've got a task that runs once a week and takes 10 seconds. 1 u/basilect Oct 04 '19 The query planner is probably going to optimize most of that away anyway... and it's just arithmetic anyhow.
1
When does performance not matter?
1 u/recursive Oct 04 '19 For ad-hoc queries done for diagnostic purposes. 3 u/thirdegree Oct 03 '19 Tuesdays 2 u/Dushenka Oct 03 '19 When you've got a task that runs once a week and takes 10 seconds.
For ad-hoc queries done for diagnostic purposes.
3
Tuesdays
2
When you've got a task that runs once a week and takes 10 seconds.
The query planner is probably going to optimize most of that away anyway... and it's just arithmetic anyhow.
22
CENSORED
18
CAST(5 AS numeric(28,10))
Clearly some software is doing this, but why can't it calculate half of these values itself before generating the SQL?
0 u/[deleted] Oct 03 '19 [deleted] — view deleted comment 1 u/thirdegree Oct 03 '19 Psql I'm pretty sure you could do 5::numeric(28, 10)
0
[deleted] — view deleted comment
1 u/thirdegree Oct 03 '19 Psql I'm pretty sure you could do 5::numeric(28, 10)
Psql I'm pretty sure you could do 5::numeric(28, 10)
5::numeric(28, 10)
8
Hi, I'm a bot for linking direct images of albums with only 1 image
https://i.imgur.com/63vRQaj.png
Source | Why? | Creator | ignoreme | deletthis
Is this fizzbuzz?
2 u/Farull Oct 03 '19 Lol, I would love to see someone come up with this at an interview.
Lol, I would love to see someone come up with this at an interview.
Looks like something I'd see at work in some ol ad hoc bullshit.
Looks as bad as minified jquery
Can you hit that format button for me chief?
I think I just had a stroke.
It's a simple spell, but quite unbreakable.
2 u/mootinator Oct 03 '19 It's an older reference, but it checks out. 1 u/HerissonMignion Nov 03 '19 best username ever
It's an older reference, but it checks out.
best username ever
4
u/Dushenka Oct 03 '19
May be auto generated for something where perfomance doesn't matter...
22
u/jarfil Oct 03 '19 edited Dec 02 '23
CENSORED
18
u/basilect Oct 03 '19
Clearly some software is doing this, but why can't it calculate half of these values itself before generating the SQL?
8
u/imguralbumbot Oct 02 '19
Hi, I'm a bot for linking direct images of albums with only 1 image
https://i.imgur.com/63vRQaj.png
Source | Why? | Creator | ignoreme | deletthis
8
u/jxl180 Oct 03 '19
Is this fizzbuzz?
3
u/RavynousHunter Oct 03 '19
Looks like something I'd see at work in some ol ad hoc bullshit.
2
u/Hertz-Dont-It Oct 03 '19
Looks as bad as minified jquery
2
u/digera Oct 03 '19
Can you hit that format button for me chief?
2
u/pancomputationalist Oct 03 '19
I think I just had a stroke.
2
u/iambatmanwastaken Oct 03 '19
It's a simple spell, but quite unbreakable.