<?xml version="1.0" encoding="UTF-8" ?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:base="http://everything2.com/">
    <title>wharfinger's New Writeups</title>
    <link rel="alternate" type="text/html" href="http://everything2.com/index.pl?node=Everything%20User%20Search&amp;usersearch=wharfinger" />
    <link rel="self" type="application/atom+xml" href="?node=New%20Writeups%20Atom%20Feed&amp;type=ticker&amp;foruser=wharfinger" />
    <id>http://everything2.com/?node=New%20Writeups%20Atom%20Feed&amp;foruser=wharfinger</id>
    <updated>2002-02-25T20:33:28Z</updated>
<entry><title>Join (idea)</title><link rel="alternate" type="text/html" href="http://everything2.com/user/wharfinger/writeups/Join"/><id>http://everything2.com/user/wharfinger/writeups/Join</id><author><name>wharfinger</name><uri>http://everything2.com/user/wharfinger</uri></author><published>2002-02-25T20:33:28Z</published><updated>2002-02-25T20:33:28Z</updated>
<content type="html">&lt;p&gt;Join is an &lt;a href=&quot;/title/SQL&quot;&gt;SQL&lt;/a&gt; (&quot;&lt;a href=&quot;/title/Structured+Query+Language&quot;&gt;Structured Query Language&lt;/a&gt;&quot;) &lt;a href=&quot;/title/keyword&quot;&gt;keyword&lt;/a&gt;. SQL is a language used to talk to databases. &lt;/p&gt;

&lt;p&gt;A join operation creates a temporary &lt;a href=&quot;/title/database&quot;&gt;database&lt;/a&gt; table or &quot;&lt;a href=&quot;/title/record+set&quot;&gt;record set&lt;/a&gt;&quot;, composed of elements of two existing tables. There are a few different ways you might go about joining. In all cases, each record in the new table is composed of at most one record from each of the two tables being joined. Your join statement will say how the database should decide which records go together. You can think of a &quot;record&quot; as a &quot;row&quot; much like in a &lt;a href=&quot;/title/spreadsheet&quot;&gt;spreadsheet&lt;/a&gt; such as &lt;a href=&quot;/title/Excel&quot;&gt;Excel&lt;/a&gt;, and a &quot;field&quot; as a &quot;column&quot; (again, as in a spreadsheet).  &lt;/p&gt;

&lt;p&gt;You can also take the result of one join operation, and join that with another table, or with the result of another join operation.  &lt;/p&gt;

&lt;p&gt;We'll define two very small tables and use those for each example. Even though SQL is &lt;a href=&quot;/title/case+blind&quot;&gt;case-blind&lt;/a&gt;, we'll use all caps for keywords so they stand out clearly. Each of these examples begins with &quot;&lt;tt&gt;SELECT&amp;nbsp;*&lt;/tt&gt;&amp;hellip;</content>
</entry><entry><title>pointer semantics (thing)</title><link rel="alternate" type="text/html" href="http://everything2.com/user/wharfinger/writeups/pointer+semantics"/><id>http://everything2.com/user/wharfinger/writeups/pointer+semantics</id><author><name>wharfinger</name><uri>http://everything2.com/user/wharfinger</uri></author><published>2002-02-24T23:37:18Z</published><updated>2002-02-24T23:37:18Z</updated>
<content type="html">&lt;p&gt;When we do &lt;a href=&quot;/title/object+oriented+programming&quot;&gt;object oriented programming&lt;/a&gt;, some &lt;a href=&quot;/title/class+instance&quot;&gt;class instance&lt;/a&gt;s represent things that are rather large. &lt;/p&gt;

&lt;p&gt;There are two ways of looking at such a &lt;a href=&quot;/title/class&quot;&gt;class&lt;/a&gt;: One is that it &lt;em&gt;is&lt;/em&gt; or &lt;em&gt;contains&lt;/em&gt; the representation of whatever it's representing. A string, for example. We call that &quot;&lt;a href=&quot;/title/value+semantics&quot;&gt;value semantics&lt;/a&gt;&quot;. If you make a copy of an object with value semantics, you get a copy of the whole thing: That's what copying &quot;means&quot; for that class; that's why we call it &quot;semantics&quot;. &lt;/p&gt;

&lt;p&gt;The other approach is &quot;&lt;a href=&quot;/title/pointer&quot;&gt;pointer&lt;/a&gt; &lt;a href=&quot;/title/semantics&quot;&gt;semantics&lt;/a&gt;&quot;: The object you have in your hand is to be thought of as a &lt;em&gt;reference&lt;/em&gt; to the data. If you make a copy of an object with pointer semantics, the &quot;meaning&quot; of that operation is like making a copy of a pointer: You get a new, and quite compact, reference to the same old thing. &lt;/p&gt;

&lt;p&gt;The &quot;pointer semantics&quot; approach is common with &lt;a href=&quot;/title/string+class&quot;&gt;string class&lt;/a&gt;es. Many instances of a pointer-semantical class can share the same data &quot;inside&quot;. Naturally, you need to implement a&amp;hellip;</content>
</entry><entry><title>Cascading Style Sheets (idea)</title><link rel="alternate" type="text/html" href="http://everything2.com/user/wharfinger/writeups/Cascading+Style+Sheets"/><id>http://everything2.com/user/wharfinger/writeups/Cascading+Style+Sheets</id><author><name>wharfinger</name><uri>http://everything2.com/user/wharfinger</uri></author><published>2002-02-24T15:45:25Z</published><updated>2002-02-24T15:45:25Z</updated>
<content type="html">&lt;p&gt;Cascading style sheets are, or more properly &lt;em&gt;is&lt;/em&gt;, a standard defined and promulgated (&quot;huh huh, he said 'promulgated'!&quot;) by the &lt;a href=&quot;/title/World+Wide+Web+Consortium&quot;&gt;World Wide Web Consortium&lt;/a&gt; or &lt;a href=&quot;/title/W3C&quot;&gt;W3C&lt;/a&gt;. As of this writing (February, 2002), the W3C's CSS &quot;&lt;a href=&quot;/title/home+page&quot;&gt;home page&lt;/a&gt;&quot; is a virtually unusable mess located at &lt;tt&gt;http://www.w3.org/Style/CSS/&lt;/tt&gt;. That page is not the worst example of malignant CSS abuse that I've seen, but it'll do. &lt;/p&gt;

&lt;p&gt;Most people use the abbreviation &lt;a href=&quot;/title/CSS&quot;&gt;CSS&lt;/a&gt; for the sake of convenience. In theory, CSS should separate presentation details from document structure: Tags &quot;should&quot; be used only if they have some logical meaning. Sheer decoration &quot;should&quot; be done with CSS. In practice, there's no good place to draw the line. Ideally, we'd do everything in &lt;a href=&quot;/title/XML&quot;&gt;XML&lt;/a&gt; with appropriate &lt;a href=&quot;/title/DTD&quot;&gt;DTD&lt;/a&gt;s and convert it into &lt;a href=&quot;/title/HTML&quot;&gt;HTML&lt;/a&gt; on the fly, but like all &lt;a href=&quot;/title/software+development&quot;&gt;software development&lt;/a&gt; everybody's got a deadline and it's just a mess. Any discussion of the issue degenerates rapidly into hair-splitting and &lt;a href=&quot;/title/holy+war&quot;&gt;holy war&lt;/a&gt;s. &lt;/p&gt;

&lt;p&gt;The current (Feb&amp;hellip;</content>
</entry><entry><title>root log: February 2002 (thing)</title><link rel="alternate" type="text/html" href="http://everything2.com/user/wharfinger/writeups/root+log%253A+February+2002"/><id>http://everything2.com/user/wharfinger/writeups/root+log%253A+February+2002</id><author><name>wharfinger</name><uri>http://everything2.com/user/wharfinger</uri></author><published>2002-02-23T23:54:52Z</published><updated>2002-02-23T23:54:52Z</updated>
<content type="html">&lt;p&gt;Except for the first one, this is mostly flash stuff that has little impact on functionality. &lt;/p&gt;

&lt;ol&gt;

&lt;li&gt;
&lt;p&gt;Added the &lt;a href=&quot;/title/collaboration&quot;&gt;collaboration&lt;/a&gt; nodetype. It's essentially a document with an access control list and with locking. CEs and gods have full access and can forcibly unlock. Locks expire after 15 minutes from last submit. &lt;/p&gt;

&lt;p&gt;It also supports the imaginary &lt;tt&gt;&amp;lt;highlight&amp;gt;&lt;/tt&gt; tag which is s//'d into &lt;tt&gt;&amp;lt;span&amp;nbsp;class=&quot;oddrow&quot;&amp;gt;&lt;/tt&gt; when the text is displayed. Is there a real tag that would be appropriate for that? I can't find one; &lt;tt&gt;&amp;lt;del&amp;gt;&lt;/tt&gt; is as close as it gets. &lt;/p&gt;

&lt;p&gt;I guess I'll also add a switch to hide text in highlight tags. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;This feature matters.&lt;/strong&gt; &lt;a href=&quot;/title/crtleads&quot;&gt;crtleads&lt;/a&gt; will in time be given access like that of CEs. Even now, we have a workable mechanism for users to collaborate on writing. Previously, this could be done only if one of the collaborators was a CE, and it had to go in a writeup, which is sucky for a number of reasons.&lt;/li&gt;&lt;/ol&gt;&amp;hellip;</content>
</entry><entry><title>wild geese (thing)</title><link rel="alternate" type="text/html" href="http://everything2.com/user/wharfinger/writeups/wild+geese"/><id>http://everything2.com/user/wharfinger/writeups/wild+geese</id><author><name>wharfinger</name><uri>http://everything2.com/user/wharfinger</uri></author><published>2002-02-19T23:53:23Z</published><updated>2002-02-19T23:53:23Z</updated>
<content type="html">&lt;p&gt;Even on dry days, you don't dare sit on the grass.  &lt;/p&gt;

&lt;p&gt;A small flock of &lt;a href=&quot;/title/Canada+goose&quot;&gt;Canada geese&lt;/a&gt; has chosen to winter at our &lt;a href=&quot;/title/office+park&quot;&gt;office park&lt;/a&gt; in &lt;a href=&quot;/title/Massachusetts&quot;&gt;Massachusetts&lt;/a&gt;. It's been warm this year and we've had very little snow. They seem fat enough, but it's hard to say. It's only late &lt;a href=&quot;/title/February&quot;&gt;February&lt;/a&gt;. They should have been on their way south long since. The geese waddle around the buildings, pulling at the grass with their bills and looking for something to eat. They wander back and forth across the &lt;a href=&quot;/title/parking+lot&quot;&gt;parking lot&lt;/a&gt; between the buildings and the woods. Sometimes when I'm driving in or out, I have to stop and let them pass. They're in no hurry. In the summer, we have &lt;a href=&quot;/title/chipmunk&quot;&gt;chipmunk&lt;/a&gt;s and &lt;a href=&quot;/title/squirrel&quot;&gt;squirrel&lt;/a&gt;s. I worry more about hitting the mammals because they're harder to spot, but at least they keep up the pace and get out of your way. &lt;/p&gt;

&lt;p&gt;Lately the geese have been spending their time in front of the building, under a pair of sizable oak trees and some ratty bushes. When I go outside to smoke, the geese look at me&amp;hellip;</content>
</entry><entry><title>pure virtual (thing)</title><link rel="alternate" type="text/html" href="http://everything2.com/user/wharfinger/writeups/pure+virtual"/><id>http://everything2.com/user/wharfinger/writeups/pure+virtual</id><author><name>wharfinger</name><uri>http://everything2.com/user/wharfinger</uri></author><published>2002-02-17T18:04:11Z</published><updated>2002-02-17T18:04:11Z</updated>
<content type="html">&lt;p&gt;If you know some C++ but you're not sure what a &lt;a href=&quot;/title/virtual+function&quot;&gt;virtual function&lt;/a&gt; is, please read that one first. If you don't know C++ at all, read &lt;a href=&quot;/title/Halspal&quot;&gt;Halspal&lt;/a&gt;'s stuff instead. He's really good. &lt;/p&gt;

&lt;p&gt;In the &lt;a href=&quot;/title/C%252B%252B&quot;&gt;C++&lt;/a&gt; &lt;a href=&quot;/title/programming+language&quot;&gt;programming language&lt;/a&gt;, a &quot;pure virtual&quot; &lt;a href=&quot;/title/function&quot;&gt;function&lt;/a&gt; is a &lt;a href=&quot;/title/class&quot;&gt;class&lt;/a&gt; &lt;a href=&quot;/title/member+function&quot;&gt;member function&lt;/a&gt; which is declared but not implemented. It is, of course, declared &lt;tt&gt;&lt;a href=&quot;/title/virtual&quot;&gt;virtual&lt;/a&gt;&lt;/tt&gt;. If you call a pure virtual function, your program will crash, because there's no function there. It turns out that calling a pure virtual is possible, and even fun, if that's your idea of fun&lt;sup&gt;&lt;small&gt;1&lt;/small&gt;&lt;/sup&gt;. &lt;/p&gt;

&lt;p&gt;You declare a pure virtual function by putting &quot;= 0&quot; at the end of the declaration of a virtual function: &lt;/p&gt;

&lt;pre&gt;
    class foo {
        virtual void bar() = 0;
    }

&lt;/pre&gt;

&lt;p&gt;We write pure &lt;a href=&quot;/title/virtual+function&quot;&gt;virtual function&lt;/a&gt;s in cases where we want to specify an &lt;a href=&quot;/title/interface&quot;&gt;interface&lt;/a&gt; which will be &lt;a href=&quot;/title/inheritance&quot;&gt;inherited&lt;/a&gt; by a &lt;a href=&quot;/title/subclass&quot;&gt;subclass&lt;/a&gt;, but we are unable and unwilling to specify &lt;em&gt;anything&lt;/em&gt; about the &lt;a href=&quot;/title/implementation&quot;&gt;implementation&lt;/a&gt;&amp;hellip;</content>
</entry></feed>
