Calgarypuck Forums - The Unofficial Calgary Flames Fan Community

Go Back   Calgarypuck Forums - The Unofficial Calgary Flames Fan Community > Main Forums > The Off Topic Forum > Tech Talk
Register Forum Rules FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread
Old 09-25-2009, 04:18 PM   #1
Cliche
Powerplay Quarterback
 
Cliche's Avatar
 
Join Date: Apr 2006
Location: Wherever you go there you are.
Exp:
Default Evolution of a coder

http://www.ariel.com.au/jokes/The_Ev...rogrammer.html
__________________
Tacitus: Rara temporum felicitate, ubi sentire quae velis, et quae sentias dicere licet.
Cliche is offline   Reply With Quote
The Following User Says Thank You to Cliche For This Useful Post:
Old 09-25-2009, 04:25 PM   #2
Bobblehead
Franchise Player
 
Bobblehead's Avatar
 
Join Date: Jul 2005
Location: in your blind spot.
Exp:
Default

Yes, I own this shirt.

http://www.thinkgeek.com/tshirts-app...ent/595d/zoom/

I got it for my birthday 3 years ago and it was interesting trying to explain it to the waitresses at Hooters.
__________________
"The problem with any ideology is that it gives the answer before you look at the evidence."
—Bill Clinton
"The greatest obstacle to discovery is not ignorance--it is the illusion of knowledge."
—Daniel J. Boorstin, historian, former Librarian of Congress
"But the Senator, while insisting he was not intoxicated, could not explain his nudity"
—WKRP in Cincinatti
Bobblehead is offline   Reply With Quote
The Following 5 Users Say Thank You to Bobblehead For This Useful Post:
Old 09-26-2009, 11:51 AM   #3
onetwo_threefour
Powerplay Quarterback
 
onetwo_threefour's Avatar
 
Join Date: Apr 2006
Location: Mahogany, aka halfway to Lethbridge
Exp:
Default

The only quibble I have is that the true Junior High program would have been as follows:

10 PRINT "HELLO WORLD"
20 GOTO 10
30 END

After which you run the program on your school computer lab and leave it running. Since the computer teachers at the time barely understand how typewriters work, let alone computers...

... Profit!
__________________
onetwo and threefour... Together no more. The end of an era. Let's rebuild...
onetwo_threefour is offline   Reply With Quote
Old 09-26-2009, 01:22 PM   #4
Jedi Ninja
Scoring Winger
 
Jedi Ninja's Avatar
 
Join Date: Mar 2009
Exp:
Default

That SELECT statement's not good. It's going to result in a table scan.

Last edited by Jedi Ninja; 09-26-2009 at 01:25 PM.
Jedi Ninja is offline   Reply With Quote
Old 09-26-2009, 04:17 PM   #5
Kerplunk
Powerplay Quarterback
 
Kerplunk's Avatar
 
Join Date: Mar 2006
Location: Trapped in my own code!!
Exp:
Default

They left out the part where you take the code, scramble the names, format the code to one line and commit it to production code.
Kerplunk is offline   Reply With Quote
Old 09-27-2009, 10:29 AM   #6
Bobblehead
Franchise Player
 
Bobblehead's Avatar
 
Join Date: Jul 2005
Location: in your blind spot.
Exp:
Default

Quote:
Originally Posted by Jedi Ninja View Post
That SELECT statement's not good. It's going to result in a table scan.
Not if you put the correct index on clue and have your statistics up do date.
__________________
"The problem with any ideology is that it gives the answer before you look at the evidence."
—Bill Clinton
"The greatest obstacle to discovery is not ignorance--it is the illusion of knowledge."
—Daniel J. Boorstin, historian, former Librarian of Congress
"But the Senator, while insisting he was not intoxicated, could not explain his nudity"
—WKRP in Cincinatti
Bobblehead is offline   Reply With Quote
Old 09-29-2009, 08:23 AM   #7
llama64
First Line Centre
 
llama64's Avatar
 
Join Date: Nov 2006
Location: /dev/null
Exp:
Default

What did one regex say to the other?


.+
llama64 is offline   Reply With Quote
Old 09-29-2009, 08:24 AM   #8
llama64
First Line Centre
 
llama64's Avatar
 
Join Date: Nov 2006
Location: /dev/null
Exp:
Default

Quote:
Originally Posted by Bobblehead View Post
Not if you put the correct index on clue and have your statistics up do date.
Who cares? Server speed is the IT guys job, not the developers
llama64 is offline   Reply With Quote
Old 09-29-2009, 08:26 AM   #9
Bobblehead
Franchise Player
 
Bobblehead's Avatar
 
Join Date: Jul 2005
Location: in your blind spot.
Exp:
Default

Quote:
Originally Posted by llama64 View Post
Who cares? Server speed is the IT guys job, not the developers
I'll give you a hint: /*+ index(emp_alias ix_emp) */
__________________
"The problem with any ideology is that it gives the answer before you look at the evidence."
—Bill Clinton
"The greatest obstacle to discovery is not ignorance--it is the illusion of knowledge."
—Daniel J. Boorstin, historian, former Librarian of Congress
"But the Senator, while insisting he was not intoxicated, could not explain his nudity"
—WKRP in Cincinatti
Bobblehead is offline   Reply With Quote
Old 09-29-2009, 02:27 PM   #10
kermitology
It's not easy being green!
 
kermitology's Avatar
 
Join Date: Oct 2001
Location: In the tubes to Vancouver Island
Exp:
Default

Ugh.. you guys are such nerds.
__________________
Who is in charge of this product and why haven't they been fired yet?
kermitology is offline   Reply With Quote
Old 10-01-2009, 02:56 PM   #11
llama64
First Line Centre
 
llama64's Avatar
 
Join Date: Nov 2006
Location: /dev/null
Exp:
Default

Quote:
Originally Posted by kermitology View Post
Ugh.. you guys are such nerds.
I muss up my hair and use a Mac to code.

I'm a geek, tyvm.
llama64 is offline   Reply With Quote
Old 10-01-2009, 03:07 PM   #12
Bobblehead
Franchise Player
 
Bobblehead's Avatar
 
Join Date: Jul 2005
Location: in your blind spot.
Exp:
Default

Quote:
Originally Posted by llama64 View Post
I muss up my hair and use a Mac to code.

I'm a geek, tyvm.
__________________
"The problem with any ideology is that it gives the answer before you look at the evidence."
—Bill Clinton
"The greatest obstacle to discovery is not ignorance--it is the illusion of knowledge."
—Daniel J. Boorstin, historian, former Librarian of Congress
"But the Senator, while insisting he was not intoxicated, could not explain his nudity"
—WKRP in Cincinatti
Bobblehead is offline   Reply With Quote
Old 10-01-2009, 03:16 PM   #13
llama64
First Line Centre
 
llama64's Avatar
 
Join Date: Nov 2006
Location: /dev/null
Exp:
Default

Quote:
Originally Posted by Bobblehead View Post
Nono, Mac people are above smug - we smarm.
llama64 is offline   Reply With Quote
The Following User Says Thank You to llama64 For This Useful Post:
Old 10-01-2009, 04:12 PM   #14
Mad Mel
First Line Centre
 
Mad Mel's Avatar
 
Join Date: Mar 2009
Location: Brisbane, Australia
Exp:
Default

Quote:
Originally Posted by Jedi Ninja View Post
That SELECT statement's not good. It's going to result in a table scan.
I'd use an OLAP cube to filter the clue dimension.

Last edited by Mad Mel; 10-01-2009 at 05:42 PM. Reason: typing didn't keep up with brain
Mad Mel is offline   Reply With Quote
Old 10-01-2009, 09:52 PM   #15
Jedi Ninja
Scoring Winger
 
Jedi Ninja's Avatar
 
Join Date: Mar 2009
Exp:
Default

Quote:
Originally Posted by Mad Mel View Post
I'd use an OLAP cube to filter the clue dimension.
I'm no DBA, but I think the most efficient and simplest way to tackle this problem is to create a table called Users_With_Clue (and move Clue into that table) and do an inner join against the Users table. As the Users_With_Clue table will always be empty, you'll get the fastest execution times on that SELECT statement plus save the overhead of having to maintain the index. You'll also save all that space you're wasting storing all those zero values, for that matter.

I'm sure this is why the Hooters waitress was confused by the shirt.

Last edited by Jedi Ninja; 10-01-2009 at 09:57 PM.
Jedi Ninja is offline   Reply With Quote
The Following User Says Thank You to Jedi Ninja For This Useful Post:
Old 10-02-2009, 12:44 PM   #16
Bobblehead
Franchise Player
 
Bobblehead's Avatar
 
Join Date: Jul 2005
Location: in your blind spot.
Exp:
Default

Quote:
Originally Posted by Jedi Ninja View Post
I'm no DBA, but I think the most efficient and simplest way to tackle this problem is to create a table called Users_With_Clue (and move Clue into that table) and do an inner join against the Users table. As the Users_With_Clue table will always be empty, you'll get the fastest execution times on that SELECT statement plus save the overhead of having to maintain the index. You'll also save all that space you're wasting storing all those zero values, for that matter.

I'm sure this is why the Hooters waitress was confused by the shirt.
While you have a point, a bitmap index on the column and you'll be fine without needing to code a join. And that column will probably be filled with null which won't take up any space; so unless you've set your pct_free/pct_used really wacky there won't be much chance of chained rows. Sometimes we DBAs need to denormalize to keep things easy for the code monkeys maintain the data structure.
__________________
"The problem with any ideology is that it gives the answer before you look at the evidence."
—Bill Clinton
"The greatest obstacle to discovery is not ignorance--it is the illusion of knowledge."
—Daniel J. Boorstin, historian, former Librarian of Congress
"But the Senator, while insisting he was not intoxicated, could not explain his nudity"
—WKRP in Cincinatti
Bobblehead is offline   Reply With Quote
Reply

Tags
dba geeks , haha stupid oilers , nerd rage , nerds , oilers suck


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 05:03 PM.

Calgary Flames
2023-24




Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright Calgarypuck 2021