I'm just trying to tell you that we have nothing in common besides both of us liking your penis.

Anya ,'Dirty Girls'


Buffistechnology 2: You Made Her So She Growls?  

Got a question about technology? Ask it here. Discussion of hardware, software, TiVos, multi-region DVDs, Windows, Macs, LINUX, hand-helds, iPods, anything tech related. Better than any helpdesk!


Consuela - Apr 14, 2005 5:51:48 am PDT #2405 of 10003
We are Buffistas. This isn't our first apocalypse. -- Pix

Bookmarked, to think about it. And thanks!


§ ita § - Apr 14, 2005 6:50:29 am PDT #2406 of 10003
Well not canonically, no, but this is transformative fiction.

I'm in UML classes right now (I know, bad student, no cookie).

It's kinda interesting -- instructor hates both waterfall development and the procedural approach. I think that spiral/iterative development is cool, but that the procedural approach is nowhere as inherently flawed as he states.

Question about abstraction. Given this example:

object employee{
property name is a textstring;
property age is an integer;
property numberofPets is an integer;
property isBald is a boolean;
}

He contends that this is a bad abstraction and that numberofPets and isBald should be removed. I think that it's entirely dependent on the application that's being modelled. He also says that name and age are too general, and should be replaced by lastName, firstName and dateofBirth. Again, I think it's way too problem domain-dependent to be a useful question, but also if you change name to lastName and firstName you don't end up with anything that much more unique than before, and who cares? If you can't guarantee uniqueness, why bother leaning vaguely in that direction?

Plus, I don't think HR apps should have age, period. So there.


Betsy HP - Apr 14, 2005 6:51:48 am PDT #2407 of 10003
If I only had a brain...

I think that (depending on the app, as you say) there should be a collection of pets. I don't have a problem with isBald. lastName is way way way WAY too culturally-specific. You're going to run into a lot of problems if you change the modeling in that way.


§ ita § - Apr 14, 2005 6:53:38 am PDT #2408 of 10003
Well not canonically, no, but this is transformative fiction.

You're going to run into a lot of problems if you change the modeling in that way.

Good point! I wish I'd thought of that when I was getting in his face. A coworker of mine whose name is lastname firstname someothername and who goes by a dim of firstname sure had a huge problem getting her ID card and other paperwork making any sense.


tommyrot - Apr 14, 2005 6:54:46 am PDT #2409 of 10003
Sir, it's not an offence to let your cat eat your bacon. Okay? And we don't arrest cats, I'm very sorry.

Well, age depends on both the current date and the date of birth. i.e. it will become more error-full as time goes on.

Also, from a database design standpoint you'd want first and last names in separate fields, just to avoid problems of trying to parse them into separate fields down the road. Is that similar to what he's getting at?


Betsy HP - Apr 14, 2005 6:55:49 am PDT #2410 of 10003
If I only had a brain...

Yip. I go by my second name, and I took to filling out forms as if that were my first name, because otherwise everybody calls me "Ann". (I moved my maiden name up into the middle spot.)

My company has tons of people whose name is Chan Wu, but everybody calls them Charlie. Not to mention all the Indian developers who say "My name is Lotsasyllables Sudhar , but you can't pronounce Lotsasyllables, so call me Sudhar."


§ ita § - Apr 14, 2005 7:01:01 am PDT #2411 of 10003
Well not canonically, no, but this is transformative fiction.

His point about the age was that it wasn't unique enough. There's no such thing as unique enough! DoB is more rarely duplicated, but it still will be. So no primary keyness there.

from a database design standpoint you'd want first and last names in separate fields

Absolutely. But this is just an object model -- its relationship to the actual storage is outside of the scope of the class. We're just going as far as conceptual design.

The idea of shifting something to make it "more unique" without making it actually unique is odd, especially under the guise of furthering abstraction.


Betsy HP - Apr 14, 2005 7:02:11 am PDT #2412 of 10003
If I only had a brain...

OH, he thinks the DOB is a unique identifier? He is on teh crack.

There's a REASON most databases let you generate unique IDs. They're really rare in the domain space, and NO, SSN isn't.


Lee - Apr 14, 2005 7:17:43 am PDT #2413 of 10003
The feeling you get when your brain finally lets your heart get in its pants.

If I have my Tivo connected to the cable box and tv, but not to either a phone line or a broadband connection for a few weeks, what happens?


§ ita § - Apr 14, 2005 7:19:23 am PDT #2414 of 10003
Well not canonically, no, but this is transformative fiction.

You won't get program schedule updates, so you'll have to set things to record manually.