How a Programmer with broken English types code
-
Here is what s programmer who often speaks bad or broken English would type when programming. The code he would add is something like:
var mike
If (mike =jerk) Than
mike=0
end
var less_then
if (joe = less_then ) than
joe=100
end
joe.status = definatelyThen the log reads:
Compiler error: Unknown keyword "Than"
Compiler error: Illegal variable name "less_then"
Compiler error: Illegal grammar "definately"Maybe take it to "Weird and Wonderful" ? It does point out why computer languages should not be based on natural language.
-
Um. I don't really get your point. Yes, that's rubbish code. No, it won't compile in any sensible language. Even English. But quite why you posted it here I have no idea.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!
Looks trollish to me.
-
Here is what s programmer who often speaks bad or broken English would type when programming. The code he would add is something like:
var mike
If (mike =jerk) Than
mike=0
end
var less_then
if (joe = less_then ) than
joe=100
end
joe.status = definatelyThen the log reads:
Compiler error: Unknown keyword "Than"
Compiler error: Illegal variable name "less_then"
Compiler error: Illegal grammar "definately" -
the compiler is the best friend of the programmer :rolleyes:
Press F1 for help or google it. Greetings from Germany
Nah ... the compiler is a mate (a good mate, but not besties) - the debugger is his best friend!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!
-
Here is what s programmer who often speaks bad or broken English would type when programming. The code he would add is something like:
var mike
If (mike =jerk) Than
mike=0
end
var less_then
if (joe = less_then ) than
joe=100
end
joe.status = definatelyThen the log reads:
Compiler error: Unknown keyword "Than"
Compiler error: Illegal variable name "less_then"
Compiler error: Illegal grammar "definately"Member 3983331 wrote:
If (mike =jerk)
In many popular programming languages that
if
statement will always resolve as true and you will be mutating mike to be a jerk. So in effect, generalising for many popular programming languages, mike is always a jerk based on the code above.“That which can be asserted without evidence, can be dismissed without evidence.”
― Christopher Hitchens
-
Here is what s programmer who often speaks bad or broken English would type when programming. The code he would add is something like:
var mike
If (mike =jerk) Than
mike=0
end
var less_then
if (joe = less_then ) than
joe=100
end
joe.status = definatelyThen the log reads:
Compiler error: Unknown keyword "Than"
Compiler error: Illegal variable name "less_then"
Compiler error: Illegal grammar "definately"Is this a commentary against IDEs not picking up the mistakes before compilation? Or about developers who simply don't have the skills to code being offered jobs, without adequate on the job training, making life hard for others in the team? Or are you simply bashing the 80% of the Earth's population that don't speak English?
cheers Chris Maunder
-
Nah ... the compiler is a mate (a good mate, but not besties) - the debugger is his best friend!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!
Pfft, no. The debugger is more like a programmer's mother-in-law.
-
Is this a commentary against IDEs not picking up the mistakes before compilation? Or about developers who simply don't have the skills to code being offered jobs, without adequate on the job training, making life hard for others in the team? Or are you simply bashing the 80% of the Earth's population that don't speak English?
cheers Chris Maunder
It just seems trollish to me.
-
Is this a commentary against IDEs not picking up the mistakes before compilation? Or about developers who simply don't have the skills to code being offered jobs, without adequate on the job training, making life hard for others in the team? Or are you simply bashing the 80% of the Earth's population that don't speak English?
cheers Chris Maunder
I think he's bashing the people who do speak English, but never paid attention in school.
The difficult we do right away... ...the impossible takes slightly longer.
-
Member 3983331 wrote:
If (mike =jerk)
In many popular programming languages that
if
statement will always resolve as true and you will be mutating mike to be a jerk. So in effect, generalising for many popular programming languages, mike is always a jerk based on the code above.“That which can be asserted without evidence, can be dismissed without evidence.”
― Christopher Hitchens
GuyThiebaut wrote:
...mike is always a jerk based on the code above.
Still better than
mike = Karen;
:rolleyes: (No offense meant to those Karen's who haven't appeared on the numerous YouTube vids now prelevant.) -
Is this a commentary against IDEs not picking up the mistakes before compilation? Or about developers who simply don't have the skills to code being offered jobs, without adequate on the job training, making life hard for others in the team? Or are you simply bashing the 80% of the Earth's population that don't speak English?
cheers Chris Maunder
-
Is this a commentary against IDEs not picking up the mistakes before compilation? Or about developers who simply don't have the skills to code being offered jobs, without adequate on the job training, making life hard for others in the team? Or are you simply bashing the 80% of the Earth's population that don't speak English?
cheers Chris Maunder
-
GuyThiebaut wrote:
...mike is always a jerk based on the code above.
Still better than
mike = Karen;
:rolleyes: (No offense meant to those Karen's who haven't appeared on the numerous YouTube vids now prelevant.)I am so tempted to make a comment on that, but given the current climate, anything I said would get me into trouble...
“That which can be asserted without evidence, can be dismissed without evidence.”
― Christopher Hitchens
-
Um. I don't really get your point. Yes, that's rubbish code. No, it won't compile in any sensible language. Even English. But quite why you posted it here I have no idea.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!
OriginalGriff wrote:
. I don't really get your point.
Don't you speak in your mind when writing code? If this happens then do this, but you type out c#. If your English was not very good, you're c# would also not compile.
Social Media - A platform that makes it easier for the crazies to find each other. Everyone is born right handed. Only the strongest overcome it. Fight for left-handed rights and hand equality.
-
Here is what s programmer who often speaks bad or broken English would type when programming. The code he would add is something like:
var mike
If (mike =jerk) Than
mike=0
end
var less_then
if (joe = less_then ) than
joe=100
end
joe.status = definatelyThen the log reads:
Compiler error: Unknown keyword "Than"
Compiler error: Illegal variable name "less_then"
Compiler error: Illegal grammar "definately" -
Um. I don't really get your point. Yes, that's rubbish code. No, it won't compile in any sensible language. Even English. But quite why you posted it here I have no idea.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!
I think the whole point was to get to the (highlighted) punch line: Compiler error: Unknown keyword "Than" Compiler error: Illegal variable name "less_then" Compiler error: Illegal grammar "definately" To give whomever it is a break, I'd say it must have seemed funnier when he/she thought of it when it actually turned out.
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein
"If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010
-
I think the whole point was to get to the (highlighted) punch line: Compiler error: Unknown keyword "Than" Compiler error: Illegal variable name "less_then" Compiler error: Illegal grammar "definately" To give whomever it is a break, I'd say it must have seemed funnier when he/she thought of it when it actually turned out.
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein
"If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010
"If you have to explain a joke, it isn't funny". :-D
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!
-
Maybe take it to "Weird and Wonderful" ? It does point out why computer languages should not be based on natural language.
Better yet... Start a "Weird and Not So Wonderful"
Remember, no matter where you go... there you are.
-
I am so tempted to make a comment on that, but given the current climate, anything I said would get me into trouble...
“That which can be asserted without evidence, can be dismissed without evidence.”
― Christopher Hitchens
"There be sharks in them waters!" :laugh:
-
Um. I don't really get your point. Yes, that's rubbish code. No, it won't compile in any sensible language. Even English. But quite why you posted it here I have no idea.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!