Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQLServerCentral.com
»
Editorials
»
There's a Lot to Learn From Even Simple...
19 posts, Page 1 of 2
1
2
»»
There's a Lot to Learn From Even Simple Puzzles
Rate Topic
Display Mode
Topic Options
Author
Message
Phil Factor
Phil Factor
Posted Monday, August 10, 2009 9:37 PM
Mr or Mrs. 500
Group: General Forum Members
Last Login: Today @ 5:02 AM
Points: 533,
Visits: 2,284
Comments posted to this topic are about the item
There's a Lot to Learn From Even Simple Puzzles
Best wishes,
Phil Factor
Simple Talk
Post #768343
Jeff Moden
Jeff Moden
Posted Monday, August 10, 2009 10:35 PM
SSC-Dedicated
Group: General Forum Members
Last Login: Yesterday @ 6:33 PM
Points: 32,889,
Visits: 26,757
Congratulations Barry! Now, I've gotta go see what the hell you did!
--Jeff Moden
"
RBAR
is pronounced "ree-bar" and is a "Modenism" for "
R
ow-
B
y-
A
gonizing-
R
ow".
First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column."
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Post #768359
Jeff Moden
Jeff Moden
Posted Monday, August 10, 2009 10:46 PM
SSC-Dedicated
Group: General Forum Members
Last Login: Yesterday @ 6:33 PM
Points: 32,889,
Visits: 26,757
Phil and Joe, thanks for having that contest. There was a huge amount of participation, debate, and code comparison! I know you guys had to spend a heck of a lot of time wading through all of that and it's much appreciated!
Well done to all who took part, as well. Some really great concepts bubbled to the surface.
--Jeff Moden
"
RBAR
is pronounced "ree-bar" and is a "Modenism" for "
R
ow-
B
y-
A
gonizing-
R
ow".
First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column."
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Post #768363
RBarryYoung
RBarryYoung
Posted Tuesday, August 11, 2009 7:12 AM
SSCrazy Eights
Group: General Forum Members
Last Login: Saturday, May 04, 2013 11:13 AM
Points: 9,855,
Visits: 9,374
Woo-hoo! Finally, my name in lights!
Thanks, Phil and Joe. You too Jeff.
Fast though it was, my submission was far from elegant or simple. Despite our head-knocking and despite even the loop in it, I would say that Mike Ross's last submission impressed me the most for simplicity and elegance.
-- RBarryYoung
,
(302)375-0451
blog:
MovingSQL.com
, Twitter:
@RBarryYoung
Proactive
Performance Solutions, Inc.
"Performance is our middle name."
Post #768560
Phil Factor
Phil Factor
Posted Tuesday, August 11, 2009 7:47 AM
Mr or Mrs. 500
Group: General Forum Members
Last Login: Today @ 5:02 AM
Points: 533,
Visits: 2,284
It was a tricky competition to judge for several reasons. Firstly, the entries were of such a high standard. Then they evolved, forked and cross-pollinated. It was also interesting to see the mutual help going on. It was like watching a horse-race where the front-running horses harnessed themselves together and crossed the finish line together. Actually, there were horses everywhere since some people seemed to end up with three or more submissions.
Joe was very taken by the way that everyone had taken the trouble to read up on the theory of calculating primes and brought that knowledge to the task.
We certainly agonised about whether the use of the number table should have been taken into account in the timings. however, we felt that because Joe had hinted that we wanted contestants to use that, we felt we should take a broader view of the general presentation, portability, documentation of the code etc, as well as sheer performance, so it never became the key issue.
Well done to all the contestants; even the solution that I killed after it had taken 17 hours to calculate primes below 1000. It was fun to judge.
Best wishes,
Phil Factor
Simple Talk
Post #768596
Steve Jones - SSC Editor
Steve Jones - SSC Editor
Posted Tuesday, August 11, 2009 8:02 AM
SSC-Dedicated
Group: Administrators
Last Login: Yesterday @ 1:47 PM
Points: 31,406,
Visits: 13,722
I, too, was amazed by the response to this. My initial thoughts were that the 10 people that enjoy math and SQL would jump in and most would ignore it, but there is some great work in the comments there. When Phil pointed this out to me last week that there were 20+ pages of comments, I was stunned.
I think there is definitely something to learn, especially the thought process as people collaborated with each other to improve solutions.
Great Job!
Follow me on Twitter:
@way0utwest
Forum Etiquette: How to post data/code on a forum to get the best help
Post #768620
SwePeso
SwePeso
Posted Tuesday, August 11, 2009 8:31 AM
SSCrazy
Group: General Forum Members
Last Login: Monday, May 06, 2013 1:26 PM
Points: 2,359,
Visits: 3,292
Congratulations Barry!
It's a good thing they accepted your late submission
N 56°04'39.16"
E 12°55'05.25"
Post #768661
Phil Factor
Phil Factor
Posted Tuesday, August 11, 2009 8:44 AM
Mr or Mrs. 500
Group: General Forum Members
Last Login: Today @ 5:02 AM
Points: 533,
Visits: 2,284
I loved your routine, Peso. It was great to follow the forum postings, and see the way that you quietly submitted it but it seemed to take a while for the other contestants to see how radically it performed!
Best wishes,
Phil Factor
Simple Talk
Post #768672
RBarryYoung
RBarryYoung
Posted Tuesday, August 11, 2009 8:44 AM
SSCrazy Eights
Group: General Forum Members
Last Login: Saturday, May 04, 2013 11:13 AM
Points: 9,855,
Visits: 9,374
Peso (8/11/2009)
Congratulations Barry!
It's a good thing they accepted your late submission
True, and thanks again to you Peter for pointing out the bugs in my original solution so that I had a chance to fix them!
-- RBarryYoung
,
(302)375-0451
blog:
MovingSQL.com
, Twitter:
@RBarryYoung
Proactive
Performance Solutions, Inc.
"Performance is our middle name."
Post #768673
SwePeso
SwePeso
Posted Tuesday, August 11, 2009 12:05 PM
SSCrazy
Group: General Forum Members
Last Login: Monday, May 06, 2013 1:26 PM
Points: 2,359,
Visits: 3,292
Thank you!
You did the hard work. I did nothing but finding some "edge" conditions for you to fix.
N 56°04'39.16"
E 12°55'05.25"
Post #768860
« Prev Topic
|
Next Topic »
19 posts, Page 1 of 2
1
2
»»
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.