Spaghetti code can be soo Good

I love this spaghetti program. Right out of the 70's

  • (11 Pages)
  • +
  • « First
  • 6
  • 7
  • 8
  • 9
  • 10
  • Last »

159 Replies - 42832 Views - Last Post: 10 March 2010 - 07:27 AM

#94 MentalFloss   User is offline

  • .
  • member icon

Reputation: 619
  • View blog
  • Posts: 1,590
  • Joined: 02-September 09

Re: Spaghetti code can be soo Good

Posted 10 February 2010 - 12:43 PM

*
POPULAR

There has GOT to be a moment in time when you are modifying this source (http://www.telusplanet.net/public/stonedan/source.txt) where your brain just reels in disbelief at what you're working with.

When do you say to yourself "Holy shit... I need to refactor this thing because it's a damn nightmare to work with!"? Obviously not yet.

In fact, based on your original post, you're actually quite smug about this thing.

Anyway, don't get me wrong - I write a lot of bad code - I implement anti-patterns - I over-engineer - I screw up.
I do something about it though. I better my source and my tactics and I avoid keeping that kind of crap around for very long. I don't just flaunt to everyone that I'm hot shit because I'm able to maintain MY nasty code.

Ultimately, it's your program. You're the one that maintains it. If no one else has to, there's no harm in how you wrote it.
Just understand that you need some goddamn humility here. Understand that that code you posted IS bad - and it could be better.

Take care.
Was This Post Helpful? 5
  • +
  • -

#95 SpectateSwamp   User is offline

  • D.I.C Regular

Reputation: 66
  • View blog
  • Posts: 393
  • Joined: 31-December 07

Re: Spaghetti code can be soo Good

Posted 10 February 2010 - 04:19 PM

The results are far more important than the coding style. Far more important. This program is the only app I need. I have been doing video for nearly 7 years and have over 5000+ family album pictures cataloged. All my email since 1996 and personal and work notes from about that time are quickly searched. And the program runs from a USB flash drive. This is computing dumbed down for the average user. If you can't find it, what good is it.
Was This Post Helpful? 2
  • +
  • -

#96 Raynes   User is offline

  • D.I.C Lover
  • member icon

Reputation: 616
  • View blog
  • Posts: 2,815
  • Joined: 05-January 09

Re: Spaghetti code can be soo Good

Posted 10 February 2010 - 04:44 PM

Heh heh. What about that browser you're posting in?
Was This Post Helpful? 1
  • +
  • -

#97 NeoTifa   User is offline

  • NeoTifa Codebreaker, the Scourge of Devtester
  • member icon





Reputation: 4935
  • View blog
  • Posts: 20,264
  • Joined: 24-September 08

Re: Spaghetti code can be soo Good

Posted 10 February 2010 - 05:38 PM

*
POPULAR

Okay, so what I've gotten from this thread is that you are so stubborn in your love for an inefficient outdated language that anyone who says anything bad about you is a "C loving faggot" or whatever. The only reason you probably hate OOP languages and structures is because you are so dumb and closed-minded that you cannot wrap your mind around the concept. Ass. I bet your every day life is as stupid as your code. I bet you pile all your food mixed together on a plate and if you want to eat mashed potatoes, you eat one chunk of potato, then goto another chuck randomly on the other side, then goto another random chunk on another part of the plate. Then you throw all the leftovers in one container: mashed potatoes, chicken, corn, and macaroni all together.
Was This Post Helpful? 6
  • +
  • -

#98 Gorian   User is offline

  • ninja DIC
  • member icon


Reputation: 156
  • View blog
  • Posts: 1,856
  • Joined: 28-June 08

Re: Spaghetti code can be soo Good

Posted 10 February 2010 - 10:56 PM

So, before anyone else comments on this thread, to save you all from saying what has been repeated over and over, read this thread
Was This Post Helpful? 1
  • +
  • -

#99 Gorian   User is offline

  • ninja DIC
  • member icon


Reputation: 156
  • View blog
  • Posts: 1,856
  • Joined: 28-June 08

Re: Spaghetti code can be soo Good

Posted 10 February 2010 - 11:03 PM

@NeoTifa That about explains it. He puts everything in one huge text file, and then searches it with his a program. Basically, Notepad's find function, with the added "feature" to show you random stuff as you are searching. About 20-30 images displayed a second if you want. You will note it is lacking the disclaimer for people with epilepsy....

EDIT: Apologies for the double post, I assumed it would merge the 2nd into an edit of the first.... :P

This post has been edited by Gorian: 10 February 2010 - 11:04 PM

Was This Post Helpful? 0
  • +
  • -

#100 SpectateSwamp   User is offline

  • D.I.C Regular

Reputation: 66
  • View blog
  • Posts: 393
  • Joined: 31-December 07

Re: Spaghetti code can be soo Good

Posted 11 February 2010 - 08:21 AM

View PostGorian, on 10 February 2010 - 10:03 PM, said:

@NeoTifa That about explains it. He puts everything in one huge text file, and then searches it with his a program. Basically, Notepad's find function, with the added "feature" to show you random stuff as you are searching. About 20-30 images displayed a second if you want.

I put the original file name into the huge text file as well. So when doing a search, the originating file shows up in the form border. Otherwise a search required going through the directory everytime. This is quite slow. 1 huge file is extremely fast 20,000,000 cps and beyond. As for the random text feature. I seldom use it myself. The last use of random text was a set of 38 questions for candidates during a local civic election. It would pick a random question and display it in large font (48pt) with delayed print. You could just as easily use it for a random todo list display. Sequential start to finish is so boring in comparison.

The 20 to 30 pics a second. Resulted from the screen saver for pictures. With the display time set to near zero, it is far better than those tiny thumbnails.

As for not using OOP. That was to be the last BIG feature. With a nice skin with scrolling selections etc. Passing those selections to the Swamp search in the background.

My primary goal on these tech forums was to find all the possible dumb responses to this desktop search. For the most part, not many were valid. Because few if any of the respondents had ever written a search engine. I find that more can be learned by discussing a topic with those that don't agree with you than those that do. Seems very few agree with me.

The video features of slow-motion, freeze on final frame, selectable or random start points along with a predefined play duration makes video way more fun to view. (and no video editing is ever required)

You poor poor search deprived techies need this Swamp search.
Was This Post Helpful? -4
  • +
  • -

#101 KYA   User is offline

  • Wubba lubba dub dub!
  • member icon

Reputation: 3213
  • View blog
  • Posts: 19,241
  • Joined: 14-September 07

Re: Spaghetti code can be soo Good

Posted 11 February 2010 - 08:46 AM

Am I dumb for still not knowing exactly what's going on?
Was This Post Helpful? 2
  • +
  • -

#102 Sergio Tapia   User is offline

  • D.I.C Lover
  • member icon

Reputation: 1259
  • View blog
  • Posts: 4,168
  • Joined: 27-January 10

Re: Spaghetti code can be soo Good

Posted 11 February 2010 - 08:52 AM

I tried reading the source code. This is me after 50 minutes:
Posted Image

Also, DreamInCode has too many errors lately. :x
Was This Post Helpful? 1
  • +
  • -

#103 Raynes   User is offline

  • D.I.C Lover
  • member icon

Reputation: 616
  • View blog
  • Posts: 2,815
  • Joined: 05-January 09

Re: Spaghetti code can be soo Good

Posted 11 February 2010 - 10:30 AM

View PostNeoTifa, on 10 February 2010 - 04:38 PM, said:

The only reason you probably hate OOP languages and structures is because you are so dumb and closed-minded that you cannot wrap your mind around the concept.


I wonder how many times I've said the same thing replacing OOP with FP and structures with immutability. :o
Was This Post Helpful? 0
  • +
  • -

#104 erik.price   User is offline

  • D.I.C Lover
  • member icon

Reputation: 486
  • View blog
  • Posts: 2,690
  • Joined: 18-December 08

Re: Spaghetti code can be soo Good

Posted 11 February 2010 - 04:11 PM

Quote

Sequential start to finish is so boring in comparison.

Boring, because it's useful and the right way to do it?
I don't want to be excited by a search application, I want it to find stuff, quickly. Displaying the middle of a video or text file is just moronic.

Also, someone pointed out on another forum that his glorious encryption scheme was rot37. WHY DIDN'T WE THINK OF THAT?!

How Spectate Swamp clears text: "I put the color of the [text to] match to that of the background to clear that from display."

<insert your favorite facepalm picture here>

This post has been edited by erik.price: 11 February 2010 - 05:00 PM

Was This Post Helpful? 0
  • +
  • -

#105 TriggaMike   User is offline

  • Using up all your 1's and 0's
  • member icon

Reputation: 85
  • View blog
  • Posts: 1,103
  • Joined: 26-September 08

Re: Spaghetti code can be soo Good

Posted 11 February 2010 - 05:07 PM

Dude, you're using a video player that was already coded. That's like claiming you made the best XML parser when you're using DOM but you made a shitty GUI. No body gives a shit.
Was This Post Helpful? 2
  • +
  • -

#106 NeoTifa   User is offline

  • NeoTifa Codebreaker, the Scourge of Devtester
  • member icon





Reputation: 4935
  • View blog
  • Posts: 20,264
  • Joined: 24-September 08

Re: Spaghetti code can be soo Good

Posted 11 February 2010 - 07:53 PM

Just because I've never written a search engine doesn't mean I'm a poor programmer or don't know what I'm talking about. So you made a search engine for a shitty purpose, using shitty outdated technique, using a shitty language, and you brag about how much better you are than everyone else because you're so "retro". Whoopty fucking do. *finger twirl* Why don't you do something useful and make a program people will actually use because they have a need for it... using relevant techniques and languages that aren't so ambiguous that no one who might want to fix it once you're gone will want to touch with a ten foot pole. Oh, and gtfo.
Was This Post Helpful? 1
  • +
  • -

#107 KYA   User is offline

  • Wubba lubba dub dub!
  • member icon

Reputation: 3213
  • View blog
  • Posts: 19,241
  • Joined: 14-September 07

Re: Spaghetti code can be soo Good

Posted 11 February 2010 - 07:56 PM

Stop feeding the troll.
Was This Post Helpful? 0
  • +
  • -

#108 NeoTifa   User is offline

  • NeoTifa Codebreaker, the Scourge of Devtester
  • member icon





Reputation: 4935
  • View blog
  • Posts: 20,264
  • Joined: 24-September 08

Re: Spaghetti code can be soo Good

Posted 11 February 2010 - 07:57 PM

Stfu, I like arguing. It makes me feel young and frisky lol.
Was This Post Helpful? 2
  • +
  • -

  • (11 Pages)
  • +
  • « First
  • 6
  • 7
  • 8
  • 9
  • 10
  • Last »