Pay attention to the way you write your software and you notice what
am I meaning...
Notice to syntax, it's the main reason I said that.

In ColdFusion, to define a variable you do a tag like in HTML: <cfset
message="Hello World!">
In PHP: $message = (string) "Hello World!";
In C#: string message = "Hello World!";
In Java: string message = "Hello World!";
In C:  String message = "Hello World!";
In ActionScript: var message::String = "Hello World!";

If you want more, just ask.... =)

Now pay attention... none of them (except CF) needs a tag. PHP is
loosely typed, so it does not need a cast, I added it just to make the
example more similar.
Now, let's go to a better example.... IF statement:

CF:
<cfif message eq "Hi">
  <!-- Do stuff -->
</cfif>

PHP:
if ($message == 'Hi') {
    // Do stuff
}

C#:
if (message == 'Hi') {
    // Do stuff
}

Java:
if (message == 'Hi') {
    // Do stuff
}

C:
if (message == 'Hi') {
    // Do stuff
}

Which ones are more similar to the rest... PHP or CF?
Of course there're MANY differences between one language and other...
and if you ask me which one is more similar to Java? C#.

So, I'm not telling PHP is like Java or C# or even C. I'm telling you
that the learn path (syntax has less impacts) is minimized if he
decides to learn PHP instead of CF.


Cheers,

On Wed, Aug 20, 2008 at 3:59 PM, Howard Fore <[EMAIL PROTECTED]> wrote:
> To take this further off-topic, what is it about your PHP experiences that
> have taught you Java and C? What similarities do you find between PHP and
> other languages?
>
> On Wed, Aug 20, 2008 at 2:53 PM, Guilherme Blanco
> <[EMAIL PROTECTED]> wrote:
>>
>> I'd suggest you PHP. Why?
>> Because it's similar to a lot of languages and the learn path to these
>> others will be minimized. Learning PHP you'll be able to learn C,
>> Java,
>
>
> --
> Howard Fore, [EMAIL PROTECTED]
> "The universe tends toward maximum irony. Don't push it." - Jeff Atwood
> 



-- 
Guilherme Blanco - Web Developer
CBC - Certified Bindows Consultant
Cell Phone: +55 (16) 9166-6902
MSN: [EMAIL PROTECTED]
URL: http://blog.bisna.com
Rio de Janeiro - RJ/Brazil

Reply via email to