Bleh

Feb 15, 2008 22:07

Ran into some really really hideous code today. Considering that it was part of a popular bulletin board program, that stole part of it's code from a really, really, really popular blog program, I was surprised ( Read more... )

Leave a comment

Comments 7

yaodema February 16 2008, 05:35:03 UTC
Ack, that sounds like a mess. You've got me morbidly curious about that undocumented if statement syntax, though, just in case I run into it one day.

Still, sounds like you've got some well-deserved rest ahead of you.

Reply

karolluis February 17 2008, 02:46:03 UTC
Instead of

if(){

}else{

}

They're using:

if( condition ):

else:

endif;

It really screws up my whole scan for start and end braces, and of course my editor has no clue whats going on either.

Also. o.o If I know who you are, I've forgotten. Enlightenment, please!

Reply

yaodema February 17 2008, 02:54:01 UTC
*blinks at the code* ... I honestly have never seen that before. If I ran into it, I'd probably skip right over it without knowing what it was, on the first pass. It looks like it's trying to be Basic.

Oh, and you probably wouldn't know this account, especially with that icon. PG of Angus Weaver, here.

Reply

karolluis February 17 2008, 03:01:56 UTC
That would explain why the 'Weaver' was so familiar!

Yah, the only reference to it I can find is in a COMMENT on the syntax page of the docs. I'm wondering if its perhaps part of the ASP tag compatibility? I haven't used asp so can't say for sure.

Reply


databank February 16 2008, 09:01:58 UTC
Well, given some of the sh...tuff that you've seen in the "popular bulletin board program" that I'm still banging my head upon..

Still, remember that globals do serve a use! Just... that... every function shouldn't start with a list of globals a mile long. Best if you actually reference them in as few places as possible, then just talk to those places.

The hard-coded file paths are even stupider. Somehow, though, I'll get a neat and tidy directory structure. Or something of the sort... >.>'

On that last part... do share?

Reply


Leave a comment

Up