And C, C++, C#, etc...
Printable View
I thought that C++ and C# were //
<!-- is there any body there -->
C started out with /* */. I believe it was C++ that added //. Naturally, the difference is between a single line comment and a block comment. It would be kind of nice if VB would add a block comment, but they haven't, so whatever.
I always read PCP when I see PHP.
Wishful thinking I suppose.
That's how I read it, too. I'm afraid to code in that language unless I get tested.
Interesting that the [php][/php] and [highlight=php][/highlight] format differently...
php Code:
if ("PHP" == "PCP") { echo "You're on the drugs"; } else { echo "You need the drugs"; }
PHP Code:
if ("PHP" == "PCP") {
echo "You're on the drugs";
} else {
echo "You need the drugs";
}
I haven't really done any PHP work, but that looks very similar to JavaScript.
They are both based on C...
My Arduino is programmed in C and its all the same looking.
PHP Code:$something = tacos;
if ($something == "tacos") {
// do something
}
javascript Code:
var something = "tacos"; if (something == "tacos") { // do something }
Arduino
c Code:
String something = "tacos"; if (something == "tacos") { // do something }
I've edited your code. For some reason only PHP and HTML have their own BB code tags.
One thing I never understood, and this goes for older versions of BASIC too, is why in the world would you want to use symbols to represent type names. Like in your example you have:
Why does $ represent a string? It makes no sense to me.PHP Code:$something = tacos;
I was editing it too. As soon as it posted i fixed it. We probably edited it at the same time.
Anyone want to give me $600,000?
I would love to give you $600,000. The only issue is I don't have any money to give away(well $2.77, but that's there to keep me from overdrafting until Friday).
$ was used as a string from early in BASIC. It still seems like a stupid idea, but it is certainly historic.
Well y'all I have some good news and some bad news.
The good news is... I've been offered a programming job for $20 an hour even with my lack of experience and lack of education.
This is $6 an hour more than what I'm currently making.
However, the bad news is that the job is an hour away and I cannot finish my 8:30 - 5:30 job, then finish my night classes for college, and then drive an hour to work the programming job.
It just puts too much of a strain on my wife.
So I'm forced to tell the employer that I'll have to decline his offer.
Telecommute?
The whole reason why I approached him was because I figured that I could do most of it from my home and either Skype or get on a Teleconfrence when they had meetings. But he said that a lot of their databases contain sensitive information and would not allow for me to work on it from home.
******.
Wow. Didnt know that was a bad word...
Spell it with underscores after each letter.
Can you not see it either?
w_a_n_k_e_r
Yeah, that's a bad word.
Never use that word. Probably because I am American...
How many Mexican's does it take to put up a roof?
Just Juan!
I guess it takes Juan to know Juan.
Jesus is going to cater my Christmas party next week...
Did you know that after singing the national anthem, Jose yells "I can see!"
Left cheek or right?