Pondering... Multi-dimensional programming

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post by alex.barylski »

Just to add to what Feyd has said...

Polymorphic code is usually refered to as code which changes dynamically...

Viruses have been know to do this...to change their signature so scanners had a difficult time detecting them...

Although what you have described is not so much polymorphic code as it is emulating a compiler compiler, taking one language to write another is generally referd as just that.

Using PHP eval() would be more analogous to polymorphic code...although I would personally technically, it's the ability to dynamically execute code.

You would have to pysically change your PHP source text before I would call it polymorphic...

Just my 2 cents
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

I just think it's cool dynamically writing javascript... never really done it before. Check it out: (I know it needs some work and it doesn't work in IE yet, but still cool!!)

http://www.mc2design.com/google/

It's pulling coordinates for those counties from a database and writing the javascript... way cool IMO
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Daedalus- wrote:I was thinking about using PHP to do the math I wish I could do in CSS when I deal with absolute positioning.
I think that's what DHTML is for, although your page would (possibly) break if JS was disabled.
Post Reply