KBD

Keith Devens .com

Saturday, August 30, 2008 Flag waving
The three chief virtues of a programmer are: Laziness, Impatience and Hubris. – Larry Wall (Programming Perl)
← Conservative-style thinking from a liberalBeat-boxing harmonica →

Daily link icon Sunday, April 4, 2004

I'm de-assholing my code

I'm simplifying and de-assholing some code I wrote a while ago. I keep swearing at my past-self and bitching him out for what an code-asshole/jerk he was.

← Conservative-style thinking from a liberalBeat-boxing harmonica →

Comments XML gif

Alister (http://abulman.co.uk) wrote:

How about some before and after examples?

∴ Alister | 4-Apr-2004 6:47am est | http://abulman.co.uk | #4290

Keith (http://keithdevens.com/) wrote:

Unfortunately, there aren't really any concrete examples I can give. Basically, I've given up on trying to write a great "web application framework" for my site. It turns out a lot of the things I liked about my CMS/WAF can just be used as libraries, and a lot of other stuff just isn't necessary.

As my current self looks back on the attempts of my past self, the code often looks like what some pretentious asshole would write. I had hooks where I didn't need them (I look back and say "hmm... what was this doing again? Oh, nothing! Great... jerk!"), and other stuff that as I rewrite it in my new, much more sensible way, just gets way shorter and simpler.

Keith | 4-Apr-2004 4:23pm est | http://keithdevens.com/ | #4291

Crawford Forbes (http://www.playonwordsmusic.com/) wrote:

yeah, i think most people who do creative things feel that way about their earlier work...an artist is often his own worst critic.

∴ Crawford Forbes | 5-Apr-2004 9:57am est | http://www.playonwordsmusic.com/ | #4294

Mark Permsuvan (http://amazinasian.com) wrote:

not me, my stuff's awesome.

∴ Mark Permsuvan | 5-Apr-2004 10:12pm est | http://amazinasian.com | #4306

Feel free to post a comment below. Please see my comment policy.

Formatting Rules (No HTML):

  • **bold**, *italic*, _underlined_, --strikeout--
  • "text"="url" creates a link, and URLs are auto-highlighted
  • Blockquote: Like e-mail, begin paragraph with > (greater-than sign)
  • Lists: begin paragraph with *,-, or + (unordered), or # (ordered)
  • Code block: ?!code:language=perl|php|sql|javascript|etc.{\n}...{\n}?!/code

:
(will be your IP address if blank)
: (optional)
(Will not be shown on site)

: (optional)
:

August 2008
SunMonTueWedThuFriSat
 12
3456789
10111213141516
17181920212223
24252627282930
31 



RSS feed RSS feed for Keith's Weblog
Atom feed Atom feed for Keith's Weblog
Weblog archive
Recent comments
  on 2 posts

Recent comments XML

new⇒Johnny Walker Blue Label

Wow, thanks for the scotch review​:D

Lagavulin and Laphroaig are​some of...

Keith: Aug 29, 3:35pm

Girls, please don't get breast implants

Wow, After all this time, the​comments on this page continue to​grow. It wa...

Ajeet: Aug 25, 2:36am

Generated in about 0.261s.

(Used 8 db queries)

mobile phone