Skip to main content

Game Reset

Fans of NCAA Basketball will understand what I mean by a "Game Reset". For the benefit of those who don’t, let me take a moment to explain: As the game proceeds on into the 2nd half, the last few minutes typically take longer than the rest of the half. This allows the corporate sponsors ample opportunities to remind us which SUV(s) we should have, why Miller Lite tastes better than Bud Lite or vice versa, and why we should refinance our house for the 4th time this year.

Since the networks are sensitive to these breaks, and we have such short attention spans these days, when they come back from commercial, they will typically put up a graphic entitled "Game Reset". This graphic will show the current score, time remaining, number of fouls, and any other relevant statistic (such as 3 players with 4 fouls). It basically allows the viewer to become reacquainted with the game that they left for 60 seconds or less.

I like this concept, as sometimes you’re not always paying 100% attention to the game. More than once I’ve watched my beloved Orangemen dominate their opponent for the 1st half, only to gradually give back the lead in the second. All too often I get overconfident and stop paying attention until I see one of these "Game Resets" and say to myself "how did we lose that 20 point lead!"

So why on earth would I blog about commercials (or adverts for those in the UK) and basketball? Developing an application, particularly in HTML DB, can be compared to a college basketball game. There's an initial sprint to get as far ahead as possible. Once you establish some good progress, you try to regroup, and hope rest of the project goes as smoothly. Often, requirements are changing hourly, features get added and removed and then added back again, and things generally go downhill. Before you know it, you're looking at code in your application that you're not even sure how it got there, let along what it does. Time for a game reset.

I've found it extraordinarily helpful to every now and again stop everything and take a good look at all of the pages and code that I've assembled. More often than not, I'm able to tighten things up considerably, remove obsolete objects, and generally make a better application. With tight deadlines and limited resources, this type of activity is typically on the end of your "to do" list, but I can personally attest that it has helped me tremendously.

One of HTML DB's strengths is that it lets developers rapidly build applications. One of HTML DB's weaknesses is that it lets developers rapidly build applications. This is not a typo! It doesn't take a genius to realize that applications built quickly and "under the gun" are much more susceptible to poor design than those which are built at a more leisurely and regulated pace.

Make sure that you get in the habit of taking an occasional Game Reset to see where your applications stand. You'll be more than happy you did.

Comments

Anonymous said…
Nice Analogy. I did not know that about US Sports.

Getting to your point, I found a good the PL/SQL Coding Standards posting:

http://htmldb.oracle.com/pls/otn/f?p=2853:4:701425360281551592::NO::P4_QA_ID:3262

Maybe we should create/adapt one for HTML DB?
Anonymous said…
Your comment about the issue with HTMLDB is very true! I sometimes define 2 or 3 page with the same functionality because it is so simple to do so, and keep adding functionality in each one. After a while, am scared on which shared component is being used where, and which page item is being used where, and leave the unrequired page there itself (just in case!!).

This typically happens for a tabular form as it's a slight pain to do it manually (the add row button ,the checkboxes link), and try to use the Wizard. The moment we try to do validations in the wizard generated tabular form, then we see the limitations and go back to the manual one.
Thomas Kyte said…
Scott -- no idea you were so deep :) Very nice analogy indeed (even if I have ever seen "a game reset" myself). I got the point.
Scott said…
Maybe we should create/adapt one for HTML DB?

Colin,

I'm not sure that HTML DB needs its own coding standards, per se. I think that most of what Bryn & Stephen outlined in the link which you referenced hold true when building any PL/SQL applications - HTML DB or otherwise.

Have you seen Sergio Leunissen's HTML DB Best Practices white paper? It has many good points and tips about developing HTML DB applications, and what to do and not do.

Thanks,

- Scott -
Scott said…
Scott -- no idea you were so deep :)

Gotcha! :)

Very nice analogy indeed (even if I have ever seen "a game reset" myself). I got the point.

Anytime you want to catch a college hoops game(s) (they are on all day Saturday from Dec-March), let me know.

- Scott -
Anonymous said…
If your explanation of "game reset" is indeed correct, then all of America's sports broadcasting industry needs to go back to English school.

For years I've struggled with why it's a game reset when nothing's being reset. It's not like the score is tied and both team has equal time outs.

The proper word should be "game recap".
Scott said…
If your explanation of "game reset" is indeed correct, then all of America's sports broadcasting industry needs to go back to English school.

And I suppose that you think Football is played with your feet... :)

Popular posts from this blog

Custom Export to CSV

It's been a while since I've updated my blog. I've been quite busy lately, and just have not had the time that I used to. We're expecting our 1st child in just a few short weeks now, so most of my free time has been spent learning Lamaze breathing, making the weekly run to Babies R Us, and relocating my office from the larger room upstairs to the smaller one downstairs - which I do happen to like MUCH more than I had anticipated. I have everything I need within a short walk - a bathroom, beer fridge, and 52" HD TV. I only need to go upstairs to eat and sleep now, but alas, this will all change soon... Recently, I was asked if you could change the way Export to CSV in ApEx works. The short answer is, of course, no. But it's not too difficult to "roll your own" CSV export procedure. Why would you want to do this? Well, the customer's requirement was to manipulate some data when the Export link was clicked, and then export it to CSV in a forma...

Manipulating Images with the... Database?

A recent thread on the OTN HTML DB Forum asked about how to determine the width & height of an image stored as a BLOB in an Oracle table. I mentioned in that thread that I have some code to manipulate an image stored in a BLOB column. This is particularly useful if you’re going to let users upload images, and you want to re-size them to display as a thumbnail. Thanks to Oracle interMedia , it is trivial to manipulate the width, height, and other attributes of images stored in an Oracle table. I’ve created a sample application here which demonstrates Oracle interMedia and HTML DB in action. Feel free to have a look. You can download this application from HTML DB Studio as well. Basically, this application allows you to upload images and perform an operation on the image as it is inserted into the PHOTO_CATALOG table. There are two places where some PL/SQL code is required: an After Submit process on page 2, and a procedure to display the images. Here is the PL/SQL for the After...

Page 0 Branches

What? There's no way to put a Branch on Page 0 of an ApEx application! Or is there... Technically, no - page 0 does not support branches. But how many times do you wish it did? This scenario recently came up: I wanted to put a "Search" box on every page in my application, so no matter where a user is, they can search the site. Currently, it has 10 or so pages, but this will grow to closer to 50 by production. So, thought #1 was to put an text item on Page 0, call it search, and then ensure that each and every page had some sort of Branch to run the search. Not so fun, as this was a tedious task, even for just 10 pages. And each time a new page was added to the application - by myself or anyone else - the search branch would have to be added to the page. Clearly not a scalable solution. With a little bit of help from Raj from the ApEx team, I came up with this solution: Create Page 0, if you haven't already On page 0, create an item of type "Text Field (...