Template talk:Props

From Citizendium
Revision as of 02:38, 8 June 2008 by imported>David Yamakuchi (New page: I just realised that you are using subpages such as Unobtanium/Atomic Mass for each different property. First, would it not be more appropriate at Unobtanium/Properties/Atomic Mass? Second...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

I just realised that you are using subpages such as Unobtanium/Atomic Mass for each different property. First, would it not be more appropriate at Unobtanium/Properties/Atomic Mass? Second, why not have all the properties on one page, similar to the switch you have for the isotopes, would that not be simpler? I'm not saying your plan is wrong, just interested to hear your thought process. Chris Day 07:11, 7 June 2008 (CDT)

Hi Chris,

You asked a couple of good questions...let's take them one at a time...

  • would it not be more appropriate at Unobtanium/Properties/Atomic Mass

I thought about this one to the point that I had decided that it was exactly the thing to do...and then I didn't implement it that way. In fact, it was so bad I caught myself a number of times almost errantly introducing exactly that syntax...probably just up too late to be quite frank...sort of like right now...

Anyway, the bottom line that I came to in my reasoning is that when we store these types of data in subpages of a material article, that simple fact in some sense already says that it is a property of the material. Or we can just look at: P.R.O.P.E.R.T.I.E.S. ten letters that are just not really necessary, and then ten more each time you retrieve the data...well you get the idea, why make the name longer than it needs to be?

  • why not have all the properties on one page, similar to the switch you have for the isotopes, would that not be simpler?

I think you actually discovered the exact path leading to the move to seperate the properties onto their own pages...Let's see if I can recap...

The physical properties template got big fast...real big. And all indications were that if the scheme were to continue, it was going to get nothing but worse. The real problem with having all the data on a single template with a switch to give only the data called, is that the wiki "compiler" has to load the entire template every time you want even a small bit of info.

This is especially a problem if you are trying to list the whole set of data...the size of the pre-expand data grows at a rate of n squared (each time you add a bit of data, it gets called into memory...with every bit of data) this is perhaps not a good scheme for a large database...maybe it's ok for a small one. It is even more obvious what the answer is when we compare it to the pre-expand size growing at a rate of plain old n if we just store the data in regular pages.

The thing is, as you point out...it seems like there should be one page a reader can go to to see all of the data at once. Of course, by this we don't mean the main article mind you...that one then would be too cluttered. Thus the Isotopes subpage, or the properties subpage, or the MSDS, or whatever you want to call it...I'm not real sure we won't want both an MSDS and a Properties page for most "materials" with some duplicated info in many if not all cases.

Now, if you look closely back at the old versions of the IsoData template, you might find where I first tried this scheme by breaking out the data for 6Li in it's own template. I was having trouble with Lead's Isotopes page (Lead, I seem to remember reading somewhere, has the most stable isotopes of any element, and also has a great many long-lived radioactive ones...it was a good test...but one which the scheme failed...miserably...the old n2 problem strikes again!)

In any event, it blew up the IsoData template because the pre-expand size was so big. The server would take a half hour to return the page and it was on the edge of crashing things I think. And Isotopes should be easier than physical properties...there are only so many of them. Apparently however, lead has enough of them to cause a problem...or perhaps I should say illustrate the problem.

Now, I'd already had the list idea worked out for the Isotopes, so I just decided to heck with it. If you want to know the Melting point for Foo, it can be found at Foo/Melting point. End of story. Things don't blow up and there is consistency and now that you have helped get the properties template working, we can show them all on a single page...Properties...or whatever people would like to call it. The downside for me is what it means is tossing out a bunch of templates (read as alot of work)...so I've been procrastinating :-)

There was one more thing with these properties tho...It's been buging me for a while and I think this fixes it too.

Let's say for the sake of argument that we want to compare the melting point of Hydrogen to the melting point of Iron. Obviously the actual measurements will be done at least somewhat differently, and probably quite differently indeed. With their own pages each property can easily have a significant amount of "metadata" attached. A :Foo/Melting point/Measurement_method page could give us valuable insight as to how we arrived at some particular measured or calculated number.--David Yamakuchi 02:38, 8 June 2008 (CDT)