I didn't think I'd ever see anything quite so insane, you CAN keep track... but its myopic and masterbatory. If you know your own code you are fine, but as an outsider looking at the code it is immediately a giant confusing pile.
Today I'm dealing with the code of a guy who names every query "get" and who is also the LEAST linear coldfusion I've ever seen. Currently I'm trying find a specific "get" query that may be one of about 80 spread across 20 or so includes.
At least this time I realized it myself, and didn't stumble across it in someone else's product.
You have a fixed series of things, that loops when it reaches its end (like days of the week, or months in a year, spokes on a wheel... whatever )...
How many times have I written some variant of this?
if( day > 7 ) day=day-7; if( day < 1 ) day=day+7;
day = (day+dayChange)%7;
How have I never seen "toggleVar = !toggleVar;"
how many times have I written "if( toggleVar ) toggleVar=false; else toggleVar = true;" ?
I feel like an infant sometimes.
- Current Mood: confused
I am a regular reader of Coding Horror by Jeff Atwood who is one of the founders of Stack Overflow, so I knew about, and was waiting for it to open long before it did.
While I use it for answers all the time, and occasionally try to answer myself (given the insanely awesome smarts floating around out there, coupled with my WICKED slow composition speed, I never have an answer anything in time for it to matter), I hadn't contributed until this morning.
I used to get an error every couple days at a shop I worked at, one of the users called it "Beak" because she thought it reminded her of one:
...which, in the source, looks like:
"Beak" can be readily reserved by bouncing JRun on the Coldfusion server, and that was enough for me when I had direct control over my server, and bouncing it took no time and impacted no one too severely.
Now I'm in a shop where I don't have admin access to the webserver, and moreover (from a business perspective), the servers are transacting big dollar signs at any given moment, and can't just be bounced.
My undying curiosity was perpetually thwarted by Google's inability to search for anything other than a random collection of B's and P's.
If it's an Adderall day, the day usually flies and I get a bit done, of course, you know how that goes.. once you're in that "zone" you could be fixing a small HTML alignment issue for 6 hours, but when you're done.. you'll fix the HELL out of it!
Which is about the most accurately described good medication day I've ever heard...
joked with my brother that while it's great for someone like me who's all over.. it's like a big huge laser cannon that takes a whole day to charge: aim it right, you're good, but god help you... get distracted on a message board somewhere, or debating politics, or working on something that isn't exactly what needs to be done...
Hadn't thought of that analogy, but its pretty solid. You get one shot a day, what you hit is dependent on what you can stay focused on for the first hour of your "charging" time... if you get off target, you probably WON'T get back on target... if you can actually stay focused for that full hour, its actually difficult and upsetting (it actually gives me vertigo and a little nausea) to get off target.
A message board WILL be the death of you (take LiveJournal and this morning for instance, killing my productivity)
Its a lot like the Hyperfocus of the un-medicated ADD brain, only you have a LOT more control over it. You come out from the haze 5 to 8 hours later and see your work layed out before you, and you see that you are a god. (Its a statement like that, to a psychiatrist, who decided that I was Bipolar and not ADD ( she had no concept of Hyperfocus and thought all ADD had to be ADHD ), its true though... the difference I point out now is that I don't feel like I CAN do anything during the Hyperfocus... but afterward when you look back at your own wake and realized you COULD do anything when you were there.
- Current Mood:awake
There has NOT been a lack of coding.
I just finished configuring a Joomla site...
I think I hate Joomla.
It is built in PHP, which I don't love, but respect in the way you respect cockroaches...
Its extrememly powerful... but it took probably 100 man hours to get the site up... that was tremendous for an "out of the box" solution... and 50% of that was spent working with actual code, rather than configuring (and 40% was probably css unbuggering)
About halfway through my brain said "You know... a CMS in ColdFusion could be pretty sweet."