05 January 2015

Happy New Year, and....New and Revamped Quizzes for the New Year

Happy new year to the thousands of Oracle technologists who played a quiz or otherwise visited and benefited from the PL/SQL Challenge in 2014.

The Challenge continues into the very frosty New Year (as I write, it is 0 degrees Fahrenheit here in Chicago), but first, let's do (some of) the numbers from 2014.

Over 4000 Oracle technologist took at least one quiz in 2014. 

Altogether players at the PL/SQL Challenge submitted over 114,000 answers to quizzes (including practice quizzes and tests).

Along the way, we had lots of help from several reviewers. Elic was our superstar, the main reviewer on PL/SQL and SQL quizzes. Livio Curzola helped Eli make sure that the Logic quizzes were top-notch. Many thanks to both of you, as well as players like Iudith Mentzel, who wrote several quizzes for PL/SQL Explore. 

Thanks also to Kim Berg Hansen, our SQL Quizmaster, and Chris Saxon, Mr. Database Design (and, as of 1 January our newest Oracle Database Evangelist!), for providing interesting and challenging quizzes all year.

Wow. That's a lot of devotion (writing quizzes, reviewing quizzes, playing quizzes) to improving one's skill set in SQL,  PL/SQL, Database Design and Logic.

Now let's take a look at 2015.

As you may recall, back in March, I rejoined Oracle after a 22 year absence. Not too surprisingly, I got really busy. One "victim" of my busy-ness was a decision to end the daily quiz after four years (whew). I really hated to do it, and consider that quiz one of my finest accomplishments.

So we shifted to three weekly quizzes and life went on. But since I was spending less time in every way on the PL/SQL Challenge and since it turned out that many players really thrived on the discipline of playing a quiz every day of the week (crazy people!), our numbers have dwindled a bit through 2014.

OK, fine, but what about 2015? The new year provides us with an opportunity to expand and reorganize our quizzes.

Why, you might ask, would we consider doing this? Let me count the ways.

1. We replaced the daily PL/SQL quiz with two competitive quizzes, PL/SQL Challenge and PL/SQL Explore. The former is written solely by me (Steven Feuerstein); the latter was intended to feature lots of quizzes by players, exploring "nooks and crannies" of PL/SQL. I have, however, written most of these quizzes, and there is no clear distinction in the content of the two.

2. The Oracle Database Evangelist team I have been tasked to build is now taking shape. This means that, among other things, Natalka Roshak is now a full-time SQL Evangelist, and part of that job (I have decided) is to write a weekly SQL quiz. That means that we will now have two SQL quizzes - so what will be the difference between these two?

3. We added a PL/SQL Deja Vu quiz, featuring a previously-played quiz. Now that the SQL quiz has been going on so long, perhaps we should add a SQL Deja Vu quiz as well.

We (myself, Kim Berg Hansen, Natalka Roshak, Chris Saxon and Dan McGhan) have been discussing these ideas and decided we'd generated enough interesting thoughts to share them with you for feedback.

I expect that we will start this new configuration on 1 April 2015, the start of Q2 and the fifth anniversary of the PL/SQL Challenge (!).

Here's what we are currently thinking about for....

PL/SQL Quizzes

1. PL/SQL Language quiz: covers the features of the PL/SQL language, including best practice, performance, etc. Pretty much what the PL/SQL Challenge has been. Primary author: Steven Feuerstein, others welcome! Rankings qualify for annual championship.

2. PL/SQL Built-ins quiz: focuses exclusively on the built-in or supplied packages. This would replace, in essence, PL/SQL Explore. Primary author: Steven Feuerstein, others welcome - especially with more specialized packages with which I have minimal experience. Rankings qualify for annual championship.

3. PL/SQL Deja Vu: as before, features a quiz from the past. Non-competitive.

SQL Quizzes

1. SQL Features quiz: covers the features of the SQL language, from DDL to DML. Primary authors: Kim Berg Hansen and Natalka Roshak others welcome! Rankings qualify for annual championship.This quiz would generally avoid performance-related features, because the second SQL quiz would focus on:

2. SQL Performance quiz: while I don't feel there is enough on PL/SQL performance to have a separate quiz just one that, it does seem more than possible to do this with SQL. And it certainly is a topic of endless interest and discussion. Rankings qualify for annual championship. Primary authors: Kim Berg Hansen, Natalka Roshak and Chris Saxon; others welcome!

3. SQL Deja Vu: features a quiz from the past. Non-competitive.
Database Design Quizzes

Stick with the current weekly quiz, but probably steer away from quizzes that focus primarily on performance, since the SQL Performance quiz will cover that. Rankings qualify for annual championship. Primary author: Chris Saxon, others welcome!

But we can also add a DB Design Deja Vu quiz.

Logic Quizzes

We are exploring replacing the competitive Mastermind-based quiz with a new logic quiz that uses different formats. Part of the problem with continuing with Mastermind, is that we have published (and others have no doubt built) automatic solvers.

And we can also add a Logic Deja Vu quiz.

Database Administration Quiz (?)

I have had several requests to start up a DB admin quiz, and am happy to do so, but we need someone to step forward and take overall responsibility for managing the quiz.

Any takers?

Names for Quizzes

As our quizzes grow in number, I'd also like to come up with less generic and more interesting names for our quizzes. Kim Berg Hansen offers a bunch of ideas below, to get the creative juices flowing. We'd love to hear your ideas!

1a: PL/SQL Language
1b: PL/SQL - Language par Excellence
1c: PL/SQL - Code of Choice
1d: PL/SQL Challenge
1e: PL/SQL - Code Genie

2a: PL/SQL Supplied Code
2b: PL/SQL - Don't Reinvent the Wheel
2c: PL/SQL - Already Invented
2d: PL/SQL - Modules Supplied
2e: PL/SQL Built-ins

3a: SQL Language
3b: SQL - The Way of the Set
3c: SQL - Set to Win
3d: SQL Magic
3e: SQL - Game, Set and Match
3f: SQL - When It's About Data
3g: SQL - Dancing with Data
3h: SQL - Mind Over Data

4a: SQL Performance
4b: SQL - Go to Warp 10
4c: SQL - Go to Warp 8
4d: SQL - High Speed Pursuit
4e: SQL - Data Formula One

5a: DB Design
5b: Database - Craft Your World
5c: Build a Better Database
5d: Database - Building Blocks
5e: Database - Data Builder

6a: DB Admin
6b: Database - Operational Administry
6c: Database - Operating Theater
6d: Database - Smooth Operator
6e: Database - Data Shaman

08 December 2014

Ideas for PL/SQL Championship(s) next year

For most of this year, we have offered two weekly, competitive quizzes on PL/SQL:

PL/SQL Challenge & PL/SQL Explore

But it doesn't really make sense to offer two different championships. At least, that's how I, the fellow who would write all those quizzes, feels about it.

There is, as one might expect, lots of overlap between the top 50 ranked players in the two quizzes: only 14 in PL/SQL Explore are not in PL/SQL Challenge's top 50.

It seems to me that it makes much more sense to have a single championship for PL/SQL, overall.

But our database design doesn't easily allow us to make that change (that is, one championship per domain with merged rankings).

So here is what I would like to do instead:

For the 2014 PL/SQL Championship, participants will be as follows:

1. The top 50 ranked players in the PL/SQL Challenge
2. The additional 14 in the top 50 of PL/SQL Explore
3. Up to 20 other wildcard and correctness players, all drawn from the PL/SQL Challenge

Then going forward, even though PL/SQL Explore will remain competitive, the PL/SQL Championship will be based only on your performance in the PL/SQL Challenge quiz.

What are your thoughts on this?

Thanks, Steven Feuerstein


01 May 2014

New Roundtable discussion: What's missing from PL/SQL?

PL/SQL has been around for over twenty years. It has been enhanced steadily and strongly throughout all that time, adding bulk processing, object types, automatic optimization, PL/Scope and so much more. So the question is: is PL/SQL fully baked? What is it missing that you need in order to write better code faster?

Give us your thoughts on the PL/SQL Challenge Roundtable.

PL/SQL is a critical enabling technology for hundreds of thousands of mission-critical applications around the world. Any improvement in the language can have a widespread impact. The PL/SQL development team must have a list of enhancement requests 10 miles long (no, I haven't seen it) and it is likely that anything we come up with here will already be on their list. But that's not the point. The point is to find out what active PL/SQL developers think is key for the language.

Some of you may be aware that I published the iloveplsqland.net website years ago to allow developers to sort-of-vote on enhancements to the PL/SQL language. It never generated a whole lot of traffic, but I encourage you to check it out for ideas. And if you posted an idea there, and still feel strongly about it, then post the info here as well!

I can think of several categories of enhancements to PL/SQL and I encourage you to let us know into which category your idea would fall.
  • Performance: improve the runtime performance of PL/SQL code.
  • Usability: make it easier or more productive to write your program units.
  • Multimedia/Internet: improve the way PL/SQL "plays" in the modern world of mobile and Internet applications.
  • Critical bug fixes: sure, it's not an enhancement, but if there's something that's been bugging you for years and still isn't fixed, go ahead and gripe about it here!
  • Object orientation: object types have come a long way....but assuming you are trying to use them to build production apps, what's missing?

Oh, and I need to be really clear about this: Just because I work for Oracle Corporation now, that doesn't mean that I can guarantee any of your ideas will be implemented. Heck. I don't even work in the PL/SQL development team (and I sure don't belong there!).

This is a discussion which will benefit enormously from every player using the Like feature to indicate which idea they, ahem, like. Please take advantage of it!

Finally, I point out to you that it would be best if you did not reply here with your ideas. Go to the PL/SQL Challenge Roundtable and do it. But I will be happy to read your thoughts here as well.

Cheers, Steven Feuerstein

18 April 2014

Another quiz idea for your consideration: Code Pong

Thanks for all your feedback on the PL/SQL Countdown quiz. I am certain we will add that to the mix soon.

And since I have decided to no longer keep all my best ideas to myself ( :-) ), I offer another idea for a "quiz", though it is not really a quiz, I suppose. More of a "game"?

I call it Code Pong (some of you may know of the classic Pong game). Here's how it would work:

It starts with a piece of rather awful code (likely a function or procedure that is supposed to do X or display certain output). It has all sorts of issues: outright bugs, typos, logic flaws, etc.

Two people sign up to play. And they each take turns applying changes to the code to improve it. The rules for making a change are:

1. You can change 1 line.
2. You can insert up to 3 lines.
3. You can delete up to 3 lines.
4. You can reject the other player's last move.
5. Assert that the game is done.
6. Accept or reject other player's assertion that game is done.

Player must include a description of the change: how does it help get closer to a solution?

What this means is that you can't make one big wholesale change to the code to fix it. Instead, you must work with the other player, sometimes following their lead, sometimes leading the way, to make changes until you believe the code works and all the problems are removed (that is, it not only works, but also is now a program that is easy to understand and maintain.

Here's a simple example: Change the code so that "9" is displayed.
DECLARE
   l_index NUMBER;
BEGIN
   FOR rec IN (SELECT * FROM all_source WHERE rownum < 10)
   LOOP
      l_index := l_index + 1;
   END LOOP;
   DBMS_OUTPUT.PUT_LINE (l_index)
END;

Move 1 (player 1):

Change line 2 to:

l_index PLS_INTEGER;

Explanation: PLS_INTEGER is faster than NUMBER and you do not need NUMBER.

Move 2 (player 2):

Change line 2 to:

l_index PLS_INTEGER := 1;

Explanation: the default initial value is NULL and adding 1 to NULL returns 1. So l_index stays NULL throughout.

Move 3 (player 1):

Assert that game is done.

Move 4 (player2):

Accept; game is done!

What do you think? Too complicated? Too strange?


13 April 2014

Take a Survey on Database Design Quizzes

Chris Saxon, who is the "domain admin" for the Database Design and author of many of the weekly quizzes, would love to get feedback from our players on these quizzes. He's been doing them now for six months and figures it's time to check in with all of you.

So he's used Google Forms to set up a quick, anonymous survey:

https://docs.google.com/forms/d/1mFdjTgX3qS-ze_Unu5UxLGof5yopvdspPqPvuLLqJLg/viewform 

We hope you can take a few moments to fill it out.

21 March 2014

Idea for a new type of quiz: Countdown PL/SQL

Always looking for ways to increase the entertainment value of the site, I came up with this idea last night.

Countdown PL/SQL

You have thirty seconds to answer ten true-false questions. 

With the clock on the page counting down, you are shown a statement about PL/SQL and you must quickly decide: true or false.

Of course, the same could be done with SQL, APEX, etc.

One concern I could see with this quiz is that comfort with the English language could have a big impact on how quickly you can get through the questions. It is also possible that we could offer versions that contained code, not (mostly) words.

Perhaps it is time to look at localization of content: offer it in different languages!

So what do you think? Sound interesting? Sound like something you'd bother playing?

17 March 2014

Q2 2014 Brings Big Changes to the PL/SQL Challenge

Last year, I (Steven Feuerstein) floated the idea that I would end the daily PL/SQL quiz. Many players protested, and several agreed to help me with the workload by writing quizzes. So I agreed to keep the daily quiz going into 2014 and we would see how it goes.

It went pretty well. Some players did write quizzes (a big thank you most especially to Jeroen Rutte, who wrote a total of 7 quizzes, 5 of which were used in Q1). But I still spent and spend lots of time writing quizzes, which I enjoy greatly, but unfortunately is not sustainable.

So starting in Q2 2014, the daily PL/SQL quiz will end and in its place we will offer three weekly quizzes in its place:

PL/SQL Challenge

The PL/SQL Challenge replaces the daily PL/SQL quiz that ran from April 2010 through March 2014. I will write all the quizzes for the PL/SQL Challenge quiz. They will focus on "core" PL/SQL features (including commonly-used supplied packages like DBMS_OUTPUT and UTL_FILE), up through the latest production version of  the Oracle database. Players who take this quiz are eligible to qualify for the annual PL/SQL Challenge Championship.[We may decide to increase the frequency of those championships, but for now: annual.]

PL/SQL Explore 

The PL/SQL Explore quiz explores the nooks and crannies of the PL/SQL language, and the many PL/SQL packages supplied by Oracle Corporation. Quizzes are provided by both Steven Feuerstein and players, and can range from "core" PL/SQL functionality to "edgy" elements of the language, like calling Java from PL/SQ or rarely used supplied packages. like DBMS_XA.

PL/SQL Deja Vu 

PL/SQL Deja Vu offers quizzes from the past - PL/SQL quizzes previously played on the daily PL/SQL quiz or one of the other PL/SQL quizzes. Use Deja Vu PL/SQL to reinforce your PL/SQL knowledge without worrying about competing with others. These quizzes are not ranked!

We will also "re-brand" the daily PL/SQL quiz to the "PL/SQL Challenge", so the daily quiz names will be of this form:

PL/SQL Challenge #276 D2011-04-12

and the weekly PL/SQL Challenge quiz names will look like:

PL/SQL Challenge #1240 WS2013-04-12

where "WS" is the "Weekly quiz Starting on".

We will look into ways to offer rankings across the various competitive PL/SQL quizzes, but we will not be able to get to that immediately.

Of course, the new quarter has not yet started. I am very interested to hear your feedback on these quizzes.

And, of course, you are welcome to shower me with flattery about how much you love those daily quizzes and want them to continue. Surely, my ego could use the stroking. :-)

But this time the decision is made: the daily quiz will end, and three new PL/SQL weekly quizzes will take its place.