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

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 17 2008, 03:48:24 UTC
Yea... looks like some variation of Visual Basic...

I loathed that language so very, very much.

Reply

yaodema February 17 2008, 04:58:03 UTC
You're far from the only one. VB's good for teaching, but I wouldn't use it for much else. Meanwhile, a C-based language should stick to that syntax, and not toss in pseudo-VB at random.

Now I remember why I gave up on ASP.

Reply


Leave a comment

Up