<?xml version="1.0" encoding="utf-8"?>          <rss version="2.0">     <channel>     <title>Cozmo&apos;s Dev Blog - Bad code</title>     <link>http://www.myinternetisbroken.com/index.cfm</link>     <description>The Dev Blog</description>     <language>en-us</language>     <pubDate>Sun, 05 Sep 2010 08:41:18-0700</pubDate>     <lastBuildDate>Tue, 19 May 2009 20:22:00-0700</lastBuildDate>     <generator>BlogCFC</generator>     <docs>http://blogs.law.harvard.edu/tech/rss</docs>     <managingEditor>coz@myinternetisbroken.com</managingEditor>     <webMaster>coz@myinternetisbroken.com</webMaster>          <item>      <title>Seeking  recommendations  for a drop down menu (tabs)</title>      <link>http://www.myinternetisbroken.com/index.cfm/2009/5/19/Seeking--recommendations--for-a-drop-down-menu-tabs</link>      <description>            I have a very finicky and non trivial CSS based layout that I have finally worked all the kinks out of. Actually it is only finicky in IE. Now the powers that be want to add drop down menus (tabs) the top nav bar that use the &lt;a href=&quot;http://www.alistapart.com/articles/slidingdoors/&quot; target=&quot;_blank&quot;&gt;sliding door rounded corner technique&lt;/a&gt;.  I have tried a bunch of menuing systems: Dynamic Drive menus, Spry, some jQuery plugins, Massimo&apos;s hiermenu and a bunch of stuff I found off of the Google and all of them have problems of one sort or another. I can&apos;t position it correctly, it trows off other page elementsm the drop down columns are mis-aligned etc... forever and ever, world with out end. Amen.  I posted this to CF_talk a few months back (the site got shelved since then and it is back in production) and though I would hit up the blogosphere.. Has anybody out there had any luck with this and can recommend a tabbed menu dropdown solution?  The primary requirement are: &lt;ul&gt;  &lt;li&gt;It can have sub menus&lt;/li&gt;  &lt;li&gt;W3C XHTML compliant.&lt;/li&gt;  &lt;li&gt;Allows for text based links&lt;/li&gt; &lt;/ul&gt;    These are the Menus that I have tried so far: &lt;ul&gt;     &lt;li&gt;&lt;a href=&quot;http://labs.adobe.com/technologies/spry/samples/menubar/MenuBarSample.html&quot;  target=&quot;_blank&quot;&gt;Spry Menu bar &lt;/a&gt;&lt;/li&gt;     &lt;li&gt;&lt;a href=&quot;http://www.massimocorner.com/&quot; target=&quot;_blank&quot;&gt;Massimo&apos;s hiermenu Hiermenu 1.1 &lt;/a&gt;&lt;/li&gt;     &lt;li&gt;&lt;a href=&quot;http://www.cssmenus.co.uk/&quot; target=&quot;_blank&quot;&gt;CSS menus&lt;/a&gt; &lt;/li&gt;     &lt;li&gt;&lt;a href=&quot;http://www.softcomplex.com/products/tigra_menu/&quot; target=&quot;_blank&quot;&gt;tigra menus &lt;/a&gt;&lt;/li&gt;     &lt;li&gt;&lt;a href=&quot;http://www.dynamicdrive.com&quot; target=&quot;_blank&quot;&gt;AnyLink CSS Menu (Dynamic Drive DHTML) &lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; (ot)     Pleas leave a comment below. Many TIA!!!       </description>            <category>Stupid Shite</category>                <category>Tools</category>                <category>Bad code</category>                <category>Interweb</category>                <category>Working Smart</category>                <pubDate>Tue, 19 May 2009 20:22:00-0700</pubDate>      <guid>http://www.myinternetisbroken.com/index.cfm/2009/5/19/Seeking--recommendations--for-a-drop-down-menu-tabs</guid>           </item>          <item>      <title>It seems that I am not alone</title>      <link>http://www.myinternetisbroken.com/index.cfm/2008/4/30/It-seems-that-I-am-not-alone</link>      <description>            &lt;b&gt;&lt;a href=&quot;http://mashable.com/2008/04/30/are-you-frustrated-with-firefox/&quot;&gt;Are You Frustrated With Firefox?&lt;/a&gt; &lt;/b&gt;       </description>            <category>Bad code</category>                <category>Open Sores</category>                <category>Geeks</category>                <category>Interweb</category>                <category>FireFox</category>                <pubDate>Wed, 30 Apr 2008 15:19:00-0700</pubDate>      <guid>http://www.myinternetisbroken.com/index.cfm/2008/4/30/It-seems-that-I-am-not-alone</guid>           </item>          <item>      <title>FireFox - Just like a disfunctional relationship</title>      <link>http://www.myinternetisbroken.com/index.cfm/2008/3/23/FireFox--Just-like-a-disfunctional-relationship</link>      <description>            I loved firefox at one time. She had everything I wanted and needed, and more, from a browser. She was fast, nimble, extensible, she had and did everything I needed. And I do mean EVERYTHING. She was HOT!!  Then we got married. She put on a lot of weight, she became very sluggish and started to really slow me down. She uses all of my resources and will sit there and do nothing for long periods of time so I cannot do anything else but wait for her.  It is over baby. You are a fat, sluggish, resource hogging glutton that is taking more than you give.  I still love you, but I have to move on. And even though I will be dating your red headed step sister I will still want to see you from time to time so I can use firebug.  Open Source used to be so sexy. What happened to you? Are you becoming like Britteny Spears?       </description>            <category>Tools</category>                <category>Bad code</category>                <category>FireFox</category>                <category>Working Smart</category>                <pubDate>Sun, 23 Mar 2008 02:05:00-0700</pubDate>      <guid>http://www.myinternetisbroken.com/index.cfm/2008/3/23/FireFox--Just-like-a-disfunctional-relationship</guid>           </item>          <item>      <title>I think Fire fox has a memory leak</title>      <link>http://www.myinternetisbroken.com/index.cfm/2008/3/21/I-think-Fire-fox-has-a-memory-leak</link>      <description>            I could be wrong though. I often am.  &lt;br /&gt; &lt;a href=&quot;/stuff/memory_leak.jpg&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;/stuff/memory_leak_sm.jpg&quot; width=500 height=298 alt=&quot;&quot; border=&quot;0&quot;&gt;&lt;/a&gt;       </description>            <category>Bad code</category>                <category>Open Sores</category>                <pubDate>Fri, 21 Mar 2008 18:57:00-0700</pubDate>      <guid>http://www.myinternetisbroken.com/index.cfm/2008/3/21/I-think-Fire-fox-has-a-memory-leak</guid>           </item>          <item>      <title>My script goes to eleven.</title>      <link>http://www.myinternetisbroken.com/index.cfm/2008/3/6/My-script-goes-to-eleven</link>      <description>            Whiskey Tango Foxtrot?   This reminds me of debugging PERL back in the 90&apos;s.  &lt;a href=&quot;/stuff/WierdError.PNG&quot; target=&quot;_blank&quot;&gt; &lt;img src=&quot;/stuff/WierdErrorSM.png&quot; width=500 height=568 alt=&quot;Whiskey Tango Foxtrot&quot; border=&quot;0&quot;&gt;&lt;/a&gt;       </description>            <category>WTF?</category>                <category>Interweb</category>                <category>Bad code</category>                <category>ColdFusion</category>                <pubDate>Thu, 06 Mar 2008 22:22:00-0700</pubDate>      <guid>http://www.myinternetisbroken.com/index.cfm/2008/3/6/My-script-goes-to-eleven</guid>           </item>          <item>      <title>Open Source my ass</title>      <link>http://www.myinternetisbroken.com/index.cfm/2008/2/24/Open-Source-my-ass</link>      <description>            &lt;b&gt;Open Source is starting to get on my nerves.&lt;/b&gt;  I love open source about 90% of the time. But FF and Eclipse are turning into a bloated sacks of fark that makes MS&apos;s worst bloated sack of fark look like notepad.   Let me see.... Right now FF is using 450 megs of ram and Eclipse is @ 358 megs.   A browser using 450 megs of ram? I close out all but one browser window and it is still using 450 megs.  Open what? Suck what?  If a site has a flash video (like Youtube), FF pegs the processor of my 3 yr old (1.8 gig P4 - 1.28 gig ram) laptop and grinds it to a farking halt. Unusable.   Flash videos also pegs my 2.8 gig duel processor HP box. Nice.   No wonder I think that OSS zealots are idiots.   &quot;But OSS is FREE!&quot;   So is dirt. Blow me. &lt;br /&gt; &lt;br /&gt;       </description>            <category>Stupid Shite</category>                <category>Idgiots</category>                <category>Open Sores</category>                <category>Geeks</category>                <category>Bad code</category>                <category>FireFox</category>                <category>Rants</category>                <pubDate>Sun, 24 Feb 2008 01:54:00-0700</pubDate>      <guid>http://www.myinternetisbroken.com/index.cfm/2008/2/24/Open-Source-my-ass</guid>           </item>          <item>      <title>The spaghetti monster from hell - and a mentor</title>      <link>http://www.myinternetisbroken.com/index.cfm/2007/10/12/The-spaghetti-monster-from-hell--and-a-mentor</link>      <description>            The intranet I work with at work is a nightmare. I hate it. It is the spaghetti monster from hell. I have written some crappy code in the past but this thing takes the cake. When I first started I thought that I just didn&apos;t &quot;get it&quot;... that the guy before me had some mojo I just couldn&apos;t get my head around. Now I know he was a bad coder and a &lt;b&gt;horrible&lt;/b&gt; architect.   Smart? yes.  talented? Sorta. Good? no.  Both my boss and myself &lt;B&gt;DREAD&lt;/B&gt; having to deal with his code.    My second thought:  I want a mentor. There is no one that I work with that can bring me to the next level with Coldfusion. My boss is a gifted programmer but he is a VB Jedi and is still learning CF. He has taught me a lot but I want an Andr&#xe9;s Segovia type mentor. Someone who will not take no for an answer, whip me into shape, and teach me the ways of the code warrior.   I am truly ready, willing and able.       </description>            <category>Stupid Shite</category>                <category>Bad code</category>                <category>Geeks</category>                <category>Life</category>                <category>Working Smart</category>                <pubDate>Fri, 12 Oct 2007 01:49:00-0700</pubDate>      <guid>http://www.myinternetisbroken.com/index.cfm/2007/10/12/The-spaghetti-monster-from-hell--and-a-mentor</guid>           </item>          <item>      <title>Why God hates me</title>      <link>http://www.myinternetisbroken.com/index.cfm/2007/9/14/Why-God-hates-me</link>      <description>            This &lt;a href=&quot;/stuff/WhyGodHatesMe.html&quot; target=&quot;_blank&quot;&gt;&lt;b&gt;lovely little nugget of SUCK &lt;/b&gt; my predecessors left me&lt;/a&gt; fills me with the urge to vomit       </description>            <category>Stupid Shite</category>                <category>Bad code</category>                <category>Rants</category>                <pubDate>Fri, 14 Sep 2007 17:51:00-0700</pubDate>      <guid>http://www.myinternetisbroken.com/index.cfm/2007/9/14/Why-God-hates-me</guid>           </item>          <item>      <title>&amp;lt;CFSet ArrayNew = &quot;My Life sucks&quot; &amp;gt;</title>      <link>http://www.myinternetisbroken.com/index.cfm/2007/4/22/CFSet-ArrayNew--My-Life-sucks-</link>      <description>            I inherited a huge intranet at my new job. It is all done using CFWACK (ColdFusion Web Application Construction Kit) procedural style development. No biggie. I have been do  that sort of development for years... I learned CF using CFWACK as my guide. But my predecessor loved arrays... As my boss told me &lt;i&gt;&quot;I cannot express to you how much that man loved arrays&quot;&lt;/i&gt;. It was not some sort of neurosis... this man was psychotic about it. The site is &lt;B&gt; littered &lt;/B&gt; with him &lt;B&gt;literally creating and parsing arrays for the sake of doing so&lt;/B&gt;. He literally spent &lt;B&gt;four months&lt;/B&gt; converting the site from using query datasets to arrays. So there is &lt;B&gt;four months&lt;/B&gt; of bat shit crazy code that I have to un-scramble. The man was a human code obfuscater. Oh, and did I mention that the man &lt;B&gt;did not indent his code&lt;/B&gt;? I mean, AT ALL? Ever? Never ever?  This is what I wrote my boss the other day:    &lt;p&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;span  &amp;nbsp;From: Jerry       Guido &lt;br&gt;   Sent: Thursday, April 19, 2007 12:10 PM&lt;br&gt;   To: My Boss&lt;br&gt; Subject: ArrayNew = My Life sucks&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;   &lt;p&gt;&lt;font color=&quot;navy&quot; face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font-size: 10pt; color: navy;&quot;&gt;I am really, &lt;/span&gt;&lt;/font&gt;&lt;b&gt;&lt;font color=&quot;navy&quot;&gt;&lt;span style=&quot;color: navy; font-weight: bold;&quot;&gt;really&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font color=&quot;navy&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font-size: 10pt; color: navy;&quot;&gt;, &lt;/span&gt;&lt;/font&gt;&lt;b&gt;&lt;font color=&quot;navy&quot; size=&quot;3&quot;&gt;&lt;span style=&quot;font-size: 12pt; color: navy; font-weight: bold;&quot;&gt;REALLY,  &lt;/font&gt;&lt;/b&gt;&lt;b&gt;&lt;font color=&quot;red&quot; size=&quot;5&quot;&gt;&lt;span style=&quot;font-size: 16pt; color: red; font-weight: bold;&quot;&gt;REALLY&lt;/span&gt;&lt;/font&gt;&lt;/b&gt;&lt;font color=&quot;navy&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font-size: 10pt; color: navy;&quot;&gt; starting to hate arrays. If people made cars the way my predecessor made data structures a gocart would be the size of an oil tanker, have 400 steering wheels, no brakes and starting it would require more secret hand signals than an epileptic third base coach on meth.&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p&gt;&lt;font color=&quot;navy&quot; face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font-size: 10pt; color: navy;&quot;&gt;Z&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;        Here is an example of the &lt;B&gt;shit&lt;/B&gt; I have to deal with:  &lt;code&gt; &lt;CFQuery NAME=&quot;GetContacts&quot; Datasource=&quot;db_CS&quot;&gt;        SELECT * FROM tbl_Contact WHERE NOT Email IS NULL AND StatusID = 2  &lt;/cfquery&gt;       &lt;CFSet EmailArray=ArrayNew(2)&gt;      &lt;CFOutput Query=&quot;GetContacts&quot;&gt;          &lt;CFSet EmailArray[CurrentRow][1]=NAME&gt;             &lt;CFSEt EmailArray[CurrentRow][2]=EMail&gt;             &lt;CFSet EMailArray[CurrentRow][3]=Title&gt;             &lt;CFSet EmailArray[CurrentRow][4]=Addr1&gt;             &lt;CFSet EmailArray[CurrentRow][5]=Addr2&gt;             &lt;CFSet EmailArray[CurrentRow][6]=City&gt;             &lt;CFSet EmailArray[CurrentRow][7]=StateID&gt;             &lt;CFSet EmailArray[CurrentRow][8]=Zip&gt;             &lt;CFSet EmailArray[CurrentRow][9]=ProjID&gt;                         &lt;CFQuery NAME=&quot;GetProj&quot; Datasource=&quot;#DSN#&quot;&gt;                   SELECT ProjNum, Title FROM tblProj WHERE ID=#ProjID#             &lt;/cfquery&gt;              &lt;CFSet EmailArray[CurrentRow][10]=GetProj.ProjNum&gt;              &lt;CFSet EmailArray[CurrentRow][11]=GetProj.Title&gt;                         &lt;CFQuery NAME=&quot;GetClientName&quot; Datasource=&quot;#DSN#&quot;&gt;                  SELECT tblRP.ClientName FROM tblRP INNER JOIN tblRPProj ON tblRP.ID=tblRPProj.RPID WHERE tblRPProj.ProjID=#ProjID#              &lt;/cfquery&gt;              &lt;CFSet EmailArray[CurrentRow][12]=GetClientName.ClientName&gt;              &lt;CFSet EmailArray[CurrentRow][13]=ID&gt;    &lt;/cfoutput&gt;   &lt;cfmail Subject=&quot;Some email&quot;&gt;  &lt;BR&gt;  #DateFormat(Now(),&quot;dddd, mmmm d, yyyy&quot;)#&lt;BR&gt;  &lt;BR&gt; Dear #EMailArray[L][1]#:&lt;BR&gt;  #EmailArray[L][1]#&lt;BR&gt; #EmailArray[L][3]#&lt;BR&gt; #EmailArray[L][12]#&lt;BR&gt; #EmailArray[L][4]#&lt;CFIF Len(TRIM(EmailArray[L][5])) neq 0&gt;&lt;BR&gt; #EmailArray[L][5]#&lt;BR&gt;&lt;/cfif&gt; #EmailArray[L][6]#, #Application.StateArray[EmailArray[L][7]][1]#  #EMailArray[L][8]#&lt;BR&gt;  &lt;BR&gt; ..... etc &lt;/code&gt;  &lt;BR&gt;  When ever I see ArrayNew &lt;B&gt;I know that my life is going to suck&lt;/B&gt;. All I have to say is why in the fark don&apos;t you use the variable names? I mean, CF casts the query as a structure with the variable scope being the name of the query for fucks sake. Why in the name of all that is not stupid do you need to turn it into yet another data structure?&lt;/b&gt;       </description>            <category>Bad code</category>                <category>Geeks</category>                <pubDate>Sun, 22 Apr 2007 02:21:00-0700</pubDate>      <guid>http://www.myinternetisbroken.com/index.cfm/2007/4/22/CFSet-ArrayNew--My-Life-sucks-</guid>           </item>     </channel></rss>