News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Jani Hartikainen's Blog:
Static/Dynamic typing sweet spot
October 08, 2008 @ 10:24:28

In a new post today Jani Hartikainen takes a look at one of the things that makes PHP both powerful and unpredictable at times - its variable typing, static versus dynamic.

It seems that PHP has moved a bit towards static typing, and languages like C# seem to be implementing some dynamic features. Are we going towards a "mixed" language with static and dynamic typing? What's the "sweet spot" between completely static (like C++) and completely dynamic typing (like Python)?

He compares the benefits of static and dynamic, and a particular place where PHP falls a bit flat - type hinting in certain situations. He agrees, though, that dynamic typing is "the way to go" since it gives the developer the flexibility they might need for more "typing tricks" in their apps. Oh, and "duck typing"...

0 comments voice your opinion now!
static dynamic typing type variable hint compare


blog comments powered by Disqus

Similar Posts

Hasin Hayder's Blog: Did you know 'you can have cheese burger' could be a variable name?

DevShed: Understanding Static Properties with PHP 5

Wojciech Sznapka's Blog: Dynamic LAMP setup for localhost development

Jonathan Snook's Blog: CodeIgniter vs. CakePHP

Davey Shafik's Blog: Mini-Review: Zend Guard vs IonCube PHP Encoder


Community Events





Don't see your event here?
Let us know!


opinion community language introduction list release unittest code developer interview experience symfony2 install podcast laravel threedevsandamaybe api framework series testing

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework