Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

The Evil Spaghetti [Code] Monster

Name: Anonymous 2008-01-31 23:21

I created a huge-ass, 2009-line PHP script to make a dynamically-generated XHTML document with Javascript (also dynamically generated) that averages 92 lines. The majority of this I didn't write: the script is dominated by a gargantuan array of file names and index numbers, which I used a Bash script to generate, and most of the rest is from a publically available script to parse SWF header information. However, this PHP script needs ANOTHER PHP script (much smaller) to call it, and that PHP script generates half of the XHTML. All in all, it's a coding nightmare trying to fix this.

Anyone else have similar problems with spaghetti code?

Name: Anonymous 2008-01-31 23:22

No.

Name: Anonymous 2008-01-31 23:25

No.

Name: Anonymous 2008-01-31 23:55

No.

Name: Anonymous 2008-02-01 0:01

Nope.

Name: Anonymous 2008-02-01 1:27

Use Arc. It always work□s □□□□□□□ for me□

Name: Anonymous 2008-02-01 1:28

>>6
</table>

Name: Anonymous 2008-02-01 3:17

Nope.

Name: Anonymous 2008-02-01 4:59

i avoid spaghetti code by using functions. i think php has this feature

Name: Anonymous 2008-02-01 16:25

>>9
PHP has built in features to prevent spaghetti code:

<?php
if (!extension_loaded('anti_spaghetti')) {
    $prefix = (PHP_SHLIB_SUFFIX === 'dll')?'php_':'';
    dl($prefix.'anti_spaghetti.'.PHP_SHLIB_SUFFIX);
}
$code = new $ANTI_SPAGHETTI_OBJECT;
$func = $code->new_function("$a","echo 'Hello '.$a.' World! '.;");
$program = $code->main(($func,"/prog/"),0);
$code->run($program); // Outputs "Hello /prog/ World!" and returns 0;
?>

Name: Anonymous 2008-02-01 17:33

All my code is spaghetti code.

ITS DELICIOUS, YOU SHOULD TRY SOME.

Name: Anonymous 2008-02-02 6:45

>>10 here

I might try and write the anti_spaghetti extension.

Name: Anonymous 2008-02-02 7:39

>>10
Enjoy your \0LAMBDA_53.

Name: Anonymous 2008-02-02 11:03

Anyone ever notice that MIPS has the forced spaghettification of code?

Name: Anonymous 2010-11-26 22:48

Name: Anonymous 2011-01-17 8:14

HAX MY SPAGHETTI CODE

Name: Anonymous 2011-01-17 8:46

>>1
Adhere to best practices and this won't be an issue. Learn to abstract. It may take longer to get something working, but it will take less time to get something finished, with the bonus of maintainability.

Name: Anonymous 2011-01-17 9:38

>>1
check out cakePHP for your next project (or racket) and break your code up into parts.

Name: Anonymous 2011-01-17 10:28

>>18
Fuck that.  Don't use PHP.

Name: Anonymous 2011-01-17 12:31

>>19
PHP IS STILL INDUSTRY STANDARD

Name: Anonymous 2011-01-17 14:57

>>20
standard for the shitty web development industry.  Not for ENTERPRISE web development.

Name: Anonymous 2011-01-17 15:38

Perl + Mojolicious = Awesome. Forget about PHP, Racket or Ruby.

Perl is the [b]MASTERRACE[b].

Name: Anonymous 2011-01-17 15:39

>>22
*MASTERRACE

Name: Anonymous 2011-01-17 15:46

Spaghetti code is a sure sign that you're doing something wrong, or that you're overdoing something.

Name: Anonymous 2011-01-17 15:51

>>22
Is that Perl 6?

Name: Anonymous 2011-01-17 15:59

>>25
No, Perl 5.

Name: Anonymous 2011-01-17 16:03

>>26
Then it's unscientific and ultimately destructive.

Name: Anonymous 2011-01-17 22:48

>>25,27

Perl 6 is still SLOW AS FUCK, so subbing it for Ruby would not be a great idea. (Someone has some blog software running it, but it's just used to generate static pages.)

Don't change these.
Name: Email:
Entire Thread Thread List