DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: How To Write Unmaintainable Code  (Read 14,552 times)

Jibz

  • Cold Warrior
  • Developer
  • Joined in 2005
  • ***
  • Posts: 1,187
    • Programming School - Stage 1 Medal
    • Coding Snacks
    • Participated in NANY Challenge Four Times
How To Write Unmaintainable Code
« on: September 22, 2011, 10:39 AM »
I hadn't read this one before, but it is absolutely brilliant:

http://thc.org/root/phun/unmaintain.html

;D
"A problem, properly stated, is a problem on it's way to being solved" -Buckminster Fuller
"Multithreading is just one damn thing after, before, or simultaneous with another" -Andrei Alexandrescu

Josh

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 3,411
    • Gathering Badge
    • Official Forum Clown
    • Coding Snacks
    • Plugin Coding Medal
    • Volunteers/Staff
    • Military Service Badge - US Army
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Re: How To Write Unmaintainable Code
« Reply #1 on: September 22, 2011, 10:40 AM »
I saw the title and immediately thought about mouser coming out of the woodworks and talking about his coding "style" ;-)
Strength in Knowledge

Renegade

  • Tell me something you don't know...
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,291
    • Participated in NANY Challenge Three Times
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Re: How To Write Unmaintainable Code
« Reply #2 on: September 22, 2011, 11:09 AM »
That was very good. I skimmed a lot of it, but there are some real gems in there. :)
Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: How To Write Unmaintainable Code
« Reply #3 on: September 22, 2011, 12:02 PM »
Great stuff.  ;D

capitalH

  • Participant
  • Joined in 2008
  • *
  • Posts: 71
Re: How To Write Unmaintainable Code
« Reply #4 on: September 22, 2011, 12:11 PM »
Blocked at work - will read later.

Luckily I do not need instructions - it comes naturally to me :D

Renegade

  • Tell me something you don't know...
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,291
    • Participated in NANY Challenge Three Times
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Re: How To Write Unmaintainable Code
« Reply #5 on: September 22, 2011, 01:43 PM »
Luckily I do not need instructions - it comes naturally to me :D

Hahahahaha~!

Nice one! :)
Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker

40hz

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 11,861
Re: How To Write Unmaintainable Code
« Reply #6 on: September 22, 2011, 02:45 PM »
You could always hire a certain someone I know. Lovely person to talk to. She handles web projects for her employer - who thinks she's a wizard. She's the living embodiment of the 'stream of consciousness' school of programming... :)

iphigenie

  • curiosity FTW!
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,170
Re: How To Write Unmaintainable Code
« Reply #7 on: September 25, 2011, 08:17 AM »
You could always hire a certain someone I know. Lovely person to talk to. She handles web projects for her employer - who thinks she's a wizard. She's the living embodiment of the 'stream of consciousness' school of programming... :)

Actually that style worked pretty well for web programming for the longest time, since http is a)linear and b)amnesiac. The industry is full of people like that who managed quite well on the server side programming.
It's harder in our days of ajax, html5, rich interfaces in javascript, flash and silverlight etc.

Renegade

  • Tell me something you don't know...
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,291
    • Participated in NANY Challenge Three Times
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Re: How To Write Unmaintainable Code
« Reply #8 on: September 25, 2011, 10:24 AM »
You could always hire a certain someone I know. Lovely person to talk to. She handles web projects for her employer - who thinks she's a wizard. She's the living embodiment of the 'stream of consciousness' school of programming... :)

Actually that style worked pretty well for web programming for the longest time, since http is a)linear and b)amnesiac. The industry is full of people like that who managed quite well on the server side programming.
It's harder in our days of ajax, html5, rich interfaces in javascript, flash and silverlight etc.

It can be extremely difficult sometimes when you're working with umpteen trillion different technologies.

In 1 portion of 1 project, this is what I need to deal with:

C#
VB.NET
ASP.NET
X/HTML
CSS
XML
TXT
HTTP
JavaScript
2 Frameworks
4 Components
1 Database
6 Projects
4 Web applications (3 are also projects)
? APIs... I don't feel like counting...

I'm sure I'm forgetting some things, but whatever. Point is, it takes a lot of effort to keep each section separate and clean and working well with every other part. It's easy to see why some things turn into complete disasters. (I've been taking my time to make certain that things are as maintainable as possible. e.g. TONS of comments in code with everything as atomic as possible.)

In some ways, you're kind of like a conductor when you're programming -- it's up to you to orchestrate everything and "make music".

Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker

40hz

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 11,861
Re: How To Write Unmaintainable Code
« Reply #9 on: September 27, 2011, 01:41 PM »
Iphigenie is perceptive as ever.  8) :Thmbsup:

The woman I was speaking of dates back to the "fly by the seat of your pants" era in web development; and built her reputation back when transparent 1-pixel gifs were considered a brilliant web hack. Unfortunately, she has not kept up with current best practices.

f0dder

  • [Well, THAT escalated quickly!]
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
    • Participated in NANY Challenge Once
Re: How To Write Unmaintainable Code
« Reply #10 on: September 28, 2011, 06:23 PM »
and built her reputation back when transparent 1-pixel gifs were considered a brilliant web hack.
What, why are you using past tense?
- carpe noctem

40hz

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 11,861
Re: How To Write Unmaintainable Code
« Reply #11 on: September 28, 2011, 06:35 PM »
and built her reputation back when transparent 1-pixel gifs were considered a brilliant web hack.
What, why are you using past tense?

Yeah. There is that.  :-\
But I was thinking more along the lines of it being clever rather than sneaky.
;D :Thmbsup:

Armando

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 2,727
    • Coding Snacks
Re: How To Write Unmaintainable Code
« Reply #12 on: September 29, 2011, 01:48 AM »
Utterly hilarious. What's also great about that piece is that it serves as a good reminder about annoying practices.

Spoiler (click to show/hide)
I should probably ashamed, but... I do like some of the "Hungarian notation" principles...  :-[ I find that, more often then not, it makes my code more readable in a simple text editor. Of course, more readable to me, hehe.
"I suppose it can be said that I'm an absent-minded driver. It's true that I've driven through a number of red lights on occasion, but on the other hand, I've stopped at a lot of green ones but never gotten credit for it."
Glenn Gould

Armando

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 2,727
    • Coding Snacks
Re: How To Write Unmaintainable Code
« Reply #13 on: September 29, 2011, 01:52 AM »
[Related to spoiler in previous post... ] Aaaaah. This just made me feel better. I love you guys  :-*

http://www.donationcoder.com/forum/index.php?topic=26284.msg244024#msg244024
"I suppose it can be said that I'm an absent-minded driver. It's true that I've driven through a number of red lights on occasion, but on the other hand, I've stopped at a lot of green ones but never gotten credit for it."
Glenn Gould
« Last Edit: September 29, 2011, 01:56 AM by Armando »

ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,922
    • Plugin Coding Medal
    • Participated in NANY Challenge Three Times
Re: How To Write Unmaintainable Code
« Reply #14 on: September 29, 2011, 09:33 AM »
From the source:

Quote
If you give someone a program, you will frustrate them for a day; if you teach them how to program, you will frustrate them for a lifetime.
- Anonymous

:)

Thanks for sharing, Jibz!

Armando

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 2,727
    • Coding Snacks
Re: How To Write Unmaintainable Code
« Reply #15 on: September 29, 2011, 02:45 PM »
^^^Would make a great "signature".
"I suppose it can be said that I'm an absent-minded driver. It's true that I've driven through a number of red lights on occasion, but on the other hand, I've stopped at a lot of green ones but never gotten credit for it."
Glenn Gould

Renegade

  • Tell me something you don't know...
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,291
    • Participated in NANY Challenge Three Times
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Re: How To Write Unmaintainable Code
« Reply #16 on: September 30, 2011, 12:25 PM »
and built her reputation back when transparent 1-pixel gifs were considered a brilliant web hack.
What, why are you using past tense?

Hahahahahaha~! ;D

Nice one~!
Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker

Original address: https://www.donationcoder.com/forum/index.php?topic=28128.0