What programming language should I learn?

Scripting languages are a subset of programming languages.

Scripting languages are programming languages.

The idea that the two types are separate ("versus") comes from people who are trapped in the mindset that a language cannot be both convenient and powerful. Mostly, these people have a C or C++ background, and they've worked hard to stay as close as possible to their language of origin (Java, C#). It's natural that they choose to denigrate whatever the new, popular language is this way.

Damn my roots must be showing :]

C# or Python for beginners. I'm not a fan of Microsoft so I would say Python, but if you know that you will never need portability it is probably faster to prototype in C#; it also has native support for threads.
 
doesn't matter with what you start

for webdesign: html/css FIRST f cours
for programs: vb.net

once you know those, everything else is peanuts to catch up on.
 
if you have to ask this question then you shouldnt learn to program. Because what you consider a program is what I consider diahrea 30 mins after a bigmac.
 
Depends what you want to do. I love Perl. But Javascript is popular now, both on the backend and frontend and seems like a good investment.
 
PHP is very strong these days and it's my choice. You can do a lot with it, cross platform, ties in nice with the web and databases, can write good shell applications with it too.
 
Online Work - Javascript / PHP

Programs and application - Python / Java

Research or calculation : Lisp or Erlang

My 2 cents
 
I 'll just copy paste something from the internet.



There 's no actual distinction apart from historical reasons. Anyone who thinks PHP is a language for "scripts", probably still uses version 2 and lives in 1998.

PHP is a scripting language. All scripting languages are programming languages.
One of the reasons PHP being a scripting language is that it interprets the code and execute it.
 
One of the reasons PHP being a scripting language is that it interprets the code and execute it.

PHP compiles code into bytecode and that is interpreted at run time by the execution engine.

So, by using your criteria, do you categorize Java & .NET langs as scripting languages because they too, like PHP, use bytecode and don't create native binaries? :D
 
PHP compiles code into bytecode and that is interpreted at run time by the execution engine.

So, by using your criteria, do you categorize Java & .NET langs as scripting languages because they too, like PHP, use bytecode and don't create native binaries? :D

/wins the thread
 
PHP compiles code into bytecode and that is interpreted at run time by the execution engine.

So, by using your criteria, do you categorize Java & .NET langs as scripting languages because they too, like PHP, use bytecode and don't create native binaries? :D

Wrong PHP code is not compiled(the webserver interprets the code, reading the code as text), a wiki article for you:
http://en.wikipedia.org/wiki/PHP
Java is compiled to bytecode and .NET is compiled to MSIL, the keyword is COMPILED. I said ONE of the reason why PHP is a scripting language.


/wins the thread
And you /WIN the thread for the most useless post here.
 
MSIL is compiled to bytecode, as are some JIT implementations of PHP. Neither are compiled to native code.
 
And you /WIN the thread for the most useless post here.

Ummm, no. Read the wiki you linked you would have seen this:

"Since PHP4 the PHP parser compiles input to produce bytecode for processing by the Zend Engine, giving performance increase over it's interpreter.."

Surprisingly I am not here to argue, I really do not care but to call my post useless because I know what I am talking about and simply agreed with an excellent post annoys me. Believe what you want but the person I quoted mentioned everything I was going to say, modern languages "scripting" have evolved big time past the days when "scripting" had a big difference over "non-scripting" languages, PHP in particular has evolved so much in 10+ years to provide full OOP support, you can treat it as a pure programming language just like Java or C#, you can build desktop apps, enterprise web apps, command line apps, "scripts" and more. You can interface with various web APIs and PHP is quite fast as it has many similiarities to C, is based off C, and has a fast efficient engine with practically a decade of fine tuning. Is it as fast as C? No, but neither is Java.
 
Wrong PHP code is not compiled(the webserver interprets the code, reading the code as text), a wiki article for you:
http://en.wikipedia.org/wiki/PHP

Sometimes it 's better to chew some gum instead of speaking :) This way you get better chances of not exposing your ignorance.

For starters, it 's not the webserver that interprets the code, it 's the php engine - which you can have it installed as a web server module or standalone using the FastCGI protocol (google: php-fpm).

When you want to run a PHP file, it compiles the source to bytecode.
Since you seem to not even understand what bytecode is, let me draw it for you
Bytecode, also known as p-code (portable code), is a form of instruction set designed for efficient execution by a software interpreter.

Read it a few times to absorb it.

Then the bytecode gets executed by ... let 's see by whom:
a) in case of the vanilla PHP, by the PHP Interpreter.
b) In case of the HipHop VM, by the JIT compiler

PHP does not have to recreate the bytecode every time we want to run a script, although that is the default behavior in many installations. In contrast, we can choose to cache the bytecode and keep using it forever without parsing the source again (google: php apc).

Java is compiled to bytecode and .NET is compiled to MSIL, the keyword is COMPILED.

No shit Sherlock.

And as I already said before, PHP compiles to bytecode as well. Of course, PHP does not call that "MicroSoft Intermediate Language" :D

The reason you are confused in your head about this (apart from your ignorance of PHP internals) is that you don't get to see the bytecode in PHP. No .jar files, no .exe files. It gets passed directly to the interpreter or stored in a caching scheme and called from there.

I said ONE of the reason why PHP is a scripting language.

And given that you have no idea what you are talking about on this particular "ONE of the reason", I can about the quality of the rest of the thing you might have said. :o
 
Last edited:
u didnt told us what u trying to achieve so how u want us to give you a good answer? for sites PHP, for SEO tools (e.g. bots) C#, Python or something else is better. PHP would work to but has some limitations like no multithreading support (you can work around this to a certain extent but is a hassle). For performance C/C++. Portability - Java (kinda shitty security though). Personally I don't like PHP as a language. Is ugly and shitty. But for websites is the best not to mention i know it very well.
 
Sometimes it 's better to chew some gum instead of speaking :) This way you get better chances of not exposing your ignorance.

For starters, it 's not the webserver that interprets the code, it 's the php engine - which you can have it installed as a web server module or standalone using the FastCGI protocol (google: php-fpm).

When you want to run a PHP file, it compiles the source to bytecode.
Since you seem to not even understand what bytecode is, let me draw it for you


Read it a few times to absorb it.

Then the bytecode gets executed by ... let 's see by whom:
a) in case of the vanilla PHP, by the PHP Interpreter.
b) In case of the HipHop VM, by the JIT compiler

PHP does not have to recreate the bytecode every time we want to run a script, although that is the default behavior in many installations. In contrast, we can choose to cache the bytecode and keep using it forever without parsing the source again (google: php apc).



No shit Sherlock.

And as I already said before, PHP compiles to bytecode as well. Of course, PHP does not call that "MicroSoft Intermediate Language" :D

The reason you are confused in your head about this (apart from your ignorance of PHP internals) is that you don't get to see the bytecode in PHP. No .jar files, no .exe files. It gets passed directly to the interpreter or stored in a caching scheme and called from there.



And given that you have no idea what you are talking about on this particular "ONE of the reason", I can about the quality of the rest of the thing you might have said. :o

You are right that php engine is interpreting the code, not the webserver. You are correct about the php bytecode, my mistake again.
But that doesn't change the fact that PHP is a scriping language.
http://php.net/
"PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML."
 
"PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML."

Yes, it 's still being referred as scripting language but that 's for historical reasons. PHP was indeed a scripting language when it was created and for many years in the past, just like Perl and Ruby.
 
Back
Top