[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Off Topic: Evolution of a Programmer


ex programmer
Ok, I'll byte. In C/C++, 2b is neither an identifier nor a constant. But then
if (0x2b & !0x2b) { 
doesn't read as smoothly.
The & is a bitwise operator, whereas ! is a logical NOT. Did you mean
if (0x2b & ~0x2b) { 
or 
if (0x2b && !0x2b) { 
Either way it comes out false.

Why stop there? Doesn't XML enable far deeper levels of convolution? 

<?xml version="1.0"?>
<!DOCTYPE doc SYSTEM "doc.dtd">
<doc>
   <para>Hello World</para>
</doc>

<!ELEMENT doc (para)+>
<!ELEMENT para (#PCDATA)>

<xsl:stylesheet
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
   version="1.0">
<xsl:output method="text"/>
<xsl:template match="para">
<xsl:apply-templates/>
</xsl:template>
</xsl:stylesheet>

Niels Peter Strandberg wrote:
> Can you find the bug? The price is Helsingør castle!
> 
> 
> On Thursday, March 13, 2003, at 04:28 PM, Niels Peter Strandberg wrote:
> 
>> ============================
>> HAMLET
>> ============================
>>
>> if (2b & !2b) {
>>     out("That is the question!");
>> }
>>
>>
>> From a dane (!prince), Niels Peter
>>
>>
>> On Thursday, March 13, 2003, at 10:58 AM, Michael Kay wrote:
>>
>>> I once saw a version that added:
>>>
>>> ======================================================
>>> Ex-programmer who has been promoted to project manager
>>> ======================================================
>>>
>>> "Write me a program that says 'Hello World'"
>>>
>>> ==========================================
>>> Ex-programmer who has been promoted to CEO
>>> ==========================================
>>>
>>> "What is the business benefit of all this code we are writing?"
>>>
>>>
>>> Michael Kay
>>>
>>>
>>>> -----Original Message-----
>>>> From: Jonathan Robie
>>>> [mailto:jonathan.robie@d...]
>>>> Sent: 12 March 2003 18:35
>>>> To: xml-dev@l...
>>>> Subject:  Off Topic: Evolution of a Programmer
>>>>
>>>>
>>>> This was forwarded to me - I have no idea where it came from
>>>> originally.
>>>>

[snip!]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.