The Official Forum  

Go Back   The Official Forum > Basketball
Register FAQ Community Calendar Today's Posts Search

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old Sun Nov 20, 2016, 05:42am
Official Forum Member
 
Join Date: Feb 2013
Posts: 123
Quote:
Originally Posted by MD Longhorn View Post
Personally, this rule seems unnecessarily silly. An official can signal 00 or he can signal 0. No difference. we allow 33 and 3, don't we.

(And yes ... I believe 05 and 5 should be legal for the very same reason)
The difference here is that 0 (or 5) has the same value as 00 (or 05), just with a meaningless zero added at the start. 3 does not have the same value as 33.

Because of the way computers work, there is no way for them to distinguish between 0 and 00, or 5 and 05, in some cases.

I'm of the firm belief that there should not be a T if there's a feasible case of computer error. I stress I'm not an official in any sport, but the last thing I want to see is a "technicality technical", if you know what I mean.
__________________
Lurker from Massachusetts. Not an official in any sport.
Reply With Quote
  #2 (permalink)  
Old Mon Nov 21, 2016, 12:06pm
Official Forum Member
 
Join Date: Apr 2010
Posts: 734
Quote:
Originally Posted by bwburke94 View Post
Because of the way computers work, there is no way for them to distinguish between 0 and 00, or 5 and 05, in some cases.
Of course there are. May not be as easy, but . . .
Reply With Quote
  #3 (permalink)  
Old Mon Nov 21, 2016, 12:18pm
TODO: creative title here
 
Join Date: Sep 2009
Location: Minneapolis, MN
Posts: 1,250
Quote:
Originally Posted by bwburke94 View Post
The difference here is that 0 (or 5) has the same value as 00 (or 05), just with a meaningless zero added at the start. 3 does not have the same value as 33.

Because of the way computers work, there is no way for them to distinguish between 0 and 00, or 5 and 05, in some cases.
Computer programmer checking in:

05 and 5 (or 0 and 00) are equivalent only if the uniform number is stored as an Integer. If they're stored as a String, 05 and 5 are not identical.

About the only real reason you'd store uniform number as an Integer is to make sorting easier... sorting Integers in numerical order (as you would expect in a box score) is easier than sorting Strings in numerical order... with Strings, the default order will be something like this:
0
00
02
03
1
01
12
14
2
22
25
3
31
32
34
etc.
Reply With Quote
  #4 (permalink)  
Old Mon Nov 21, 2016, 12:31pm
Rich's Avatar
Get away from me, Steve.
 
Join Date: Aug 2000
Posts: 15,797
Quote:
Originally Posted by jTheUmp View Post
Computer programmer checking in:



05 and 5 (or 0 and 00) are equivalent only if the uniform number is stored as an Integer. If they're stored as a String, 05 and 5 are not identical.



About the only real reason you'd store uniform number as an Integer is to make sorting easier... sorting Integers in numerical order (as you would expect in a box score) is easier than sorting Strings in numerical order... with Strings, the default order will be something like this:

0

00

02

03

1

01

12

14

2

22

25

3

31

32

34

etc.


And the sorting is why I assumed they store the digits as integers. Could be wrong. Always hated programming.
Reply With Quote
Reply

Bookmarks


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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 02:15pm.



Search Engine Friendly URLs by vBSEO 3.3.0 RC1