Home Discord Chat
Go Back   ChiefsPlanet > Nzoner's Game Room
Register FAQDonate Members List Calendar

Reply
 
Thread Tools Display Modes
Old 10-14-2021, 11:14 AM   #1
stanleychief stanleychief is offline
Veteran
 
stanleychief's Avatar
 

Join Date: Aug 2002
Location: Kansas City, MO
Casino cash: $5176254
I just hope this kid renames the variables before turning in the code. If I were grading the assignment, I'd be raising an eyebrow if the variables were French.

I once worked on some client's code, which was apparently written by a guy named Eric. Every variable in his code was prefixed with 'eric'. So the SQL DB connection was 'ericDbConn', and the result set was 'ericDbResult', the datarow object was 'ericDbRow', etc.

I thought that was pretty damned hilarious!
Posts: 1,194
stanleychief has just been standing around suckin' on a big ol' chili dog.stanleychief has just been standing around suckin' on a big ol' chili dog.stanleychief has just been standing around suckin' on a big ol' chili dog.stanleychief has just been standing around suckin' on a big ol' chili dog.stanleychief has just been standing around suckin' on a big ol' chili dog.stanleychief has just been standing around suckin' on a big ol' chili dog.stanleychief has just been standing around suckin' on a big ol' chili dog.stanleychief has just been standing around suckin' on a big ol' chili dog.stanleychief has just been standing around suckin' on a big ol' chili dog.stanleychief has just been standing around suckin' on a big ol' chili dog.stanleychief has just been standing around suckin' on a big ol' chili dog.
    Reply With Quote
Old 10-14-2021, 11:18 AM   #2
ptlyon ptlyon is offline
Bono & Grbac wasn't enough
 

Join Date: Oct 2000
Location: Sioux City, IA
Casino cash: $12893829
Quote:
Originally Posted by stanleychief View Post
I just hope this kid renames the variables before turning in the code. If I were grading the assignment, I'd be raising an eyebrow if the variables were French.

I once worked on some client's code, which was apparently written by a guy named Eric. Every variable in his code was prefixed with 'eric'. So the SQL DB connection was 'ericDbConn', and the result set was 'ericDbResult', the datarow object was 'ericDbRow', etc.

I thought that was pretty damned hilarious!
What was this piece of code written for, if I may ask?
__________________
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Advertise here: $19.99 a month
Posts: 33,824
ptlyon is obviously part of the inner Circle.ptlyon is obviously part of the inner Circle.ptlyon is obviously part of the inner Circle.ptlyon is obviously part of the inner Circle.ptlyon is obviously part of the inner Circle.ptlyon is obviously part of the inner Circle.ptlyon is obviously part of the inner Circle.ptlyon is obviously part of the inner Circle.ptlyon is obviously part of the inner Circle.ptlyon is obviously part of the inner Circle.ptlyon is obviously part of the inner Circle.
    Reply With Quote
Old 10-14-2021, 11:32 AM   #3
stanleychief stanleychief is offline
Veteran
 
stanleychief's Avatar
 

Join Date: Aug 2002
Location: Kansas City, MO
Casino cash: $5176254
Quote:
Originally Posted by ptlyon View Post
What was this piece of code written for, if I may ask?
It was a long time ago, but I believe that particular code was embedded in a classic ASP page. He was fetching options from the database to populate a select tag on a form.

I recall that the guy left a lot of comments too, which is usually a good thing, but his comments were unnecessary, as they didn't explain anything helpful. Example:

Code:
// This is the database connection
Dim ericDbConn = Server.CreateObject("ADODB.Connection")
Pretty obvious, given the naming, and straight-forward variable assignment. Struck me as if they were written by someone just out of school. The client was a large regional grocery store chain.
Posts: 1,194
stanleychief has just been standing around suckin' on a big ol' chili dog.stanleychief has just been standing around suckin' on a big ol' chili dog.stanleychief has just been standing around suckin' on a big ol' chili dog.stanleychief has just been standing around suckin' on a big ol' chili dog.stanleychief has just been standing around suckin' on a big ol' chili dog.stanleychief has just been standing around suckin' on a big ol' chili dog.stanleychief has just been standing around suckin' on a big ol' chili dog.stanleychief has just been standing around suckin' on a big ol' chili dog.stanleychief has just been standing around suckin' on a big ol' chili dog.stanleychief has just been standing around suckin' on a big ol' chili dog.stanleychief has just been standing around suckin' on a big ol' chili dog.
    Reply With Quote
Old 10-14-2021, 11:38 AM   #4
ptlyon ptlyon is offline
Bono & Grbac wasn't enough
 

Join Date: Oct 2000
Location: Sioux City, IA
Casino cash: $12893829
Quote:
Originally Posted by stanleychief View Post
It was a long time ago, but I believe that particular code was embedded in a classic ASP page. He was fetching options from the database to populate a select tag on a form.

I recall that the guy left a lot of comments too, which is usually a good thing, but his comments were unnecessary, as they didn't explain anything helpful. Example:

Code:
// This is the database connection
Dim ericDbConn = Server.CreateObject("ADODB.Connection")
Pretty obvious, given the naming, and straight-forward variable assignment. Struck me as if they were written by someone just out of school. The client was a large regional grocery store chain.
That was my first thought as well. Naming conventions have always been my downfall. I've learned some, but still sometimes go back to what makes sense to me at the time.
__________________
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Advertise here: $19.99 a month
Posts: 33,824
ptlyon is obviously part of the inner Circle.ptlyon is obviously part of the inner Circle.ptlyon is obviously part of the inner Circle.ptlyon is obviously part of the inner Circle.ptlyon is obviously part of the inner Circle.ptlyon is obviously part of the inner Circle.ptlyon is obviously part of the inner Circle.ptlyon is obviously part of the inner Circle.ptlyon is obviously part of the inner Circle.ptlyon is obviously part of the inner Circle.ptlyon is obviously part of the inner Circle.
    Reply With Quote
Old 10-14-2021, 11:44 AM   #5
stanleychief stanleychief is offline
Veteran
 
stanleychief's Avatar
 

Join Date: Aug 2002
Location: Kansas City, MO
Casino cash: $5176254
Quote:
Originally Posted by ptlyon View Post
That was my first thought as well. Naming conventions have always been my downfall. I've learned some, but still sometimes go back to what makes sense to me at the time.
There are only two hard things in Computer Science: cache invalidation and naming things.
-- Phil Karlton

https://martinfowler.com/bliki/TwoHardThings.html
Posts: 1,194
stanleychief has just been standing around suckin' on a big ol' chili dog.stanleychief has just been standing around suckin' on a big ol' chili dog.stanleychief has just been standing around suckin' on a big ol' chili dog.stanleychief has just been standing around suckin' on a big ol' chili dog.stanleychief has just been standing around suckin' on a big ol' chili dog.stanleychief has just been standing around suckin' on a big ol' chili dog.stanleychief has just been standing around suckin' on a big ol' chili dog.stanleychief has just been standing around suckin' on a big ol' chili dog.stanleychief has just been standing around suckin' on a big ol' chili dog.stanleychief has just been standing around suckin' on a big ol' chili dog.stanleychief has just been standing around suckin' on a big ol' chili dog.
    Reply With Quote
Old 10-14-2021, 11:56 AM   #6
Monticore Monticore is offline
I love your mom
 

Join Date: Feb 2020
Location: Sturgeon Falls, Ontario
Casino cash: $2544957
Quote:
Originally Posted by stanleychief View Post
There are only two hard things in Computer Science: cache invalidation and naming things.
-- Phil Karlton

https://martinfowler.com/bliki/TwoHardThings.html
Well he managed to figure it out , he says it worked like it was supposed to but he said he didn't code it like the teacher did , he said the tips in here were helpful.

thanks fellas .
Posts: 6,633
Monticore would the whole thing.Monticore would the whole thing.Monticore would the whole thing.Monticore would the whole thing.Monticore would the whole thing.Monticore would the whole thing.Monticore would the whole thing.Monticore would the whole thing.Monticore would the whole thing.Monticore would the whole thing.Monticore would the whole thing.
Thumbs Up 1 Thumbs Down 0     Reply With Quote
Reply


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 On

Forum Jump




All times are GMT -6. The time now is 11:15 AM.


This is a test for a client's site.
Fort Worth Texas Process Servers
Covering Arlington, Fort Worth, Grand Prairie and surrounding communities.
Tarrant County, Texas and Johnson County, Texas.
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2024, vBulletin Solutions, Inc.