Click here to Skip to main content
14,390,256 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
 
GeneralRe: python - tail stuck under the rocks? Pin
Fueled By Caffeine14-Jul-19 23:48
MemberFueled By Caffeine14-Jul-19 23:48 
GeneralRe: python - tail stuck under the rocks? Pin
Sander Rossel15-Jul-19 0:30
professionalSander Rossel15-Jul-19 0:30 
JokeRe: python - tail stuck under the rocks? Pin
lopatir13-Jul-19 8:09
Memberlopatir13-Jul-19 8:09 
GeneralRe: python - tail stuck under the rocks? Pin
OriginalGriff13-Jul-19 8:56
mveOriginalGriff13-Jul-19 8:56 
GeneralRe: python - tail stuck under the rocks? Pin
David O'Neil13-Jul-19 9:12
professionalDavid O'Neil13-Jul-19 9:12 
GeneralRe: python - tail stuck under the rocks? Pin
OriginalGriff13-Jul-19 9:20
mveOriginalGriff13-Jul-19 9:20 
GeneralRe: python - tail stuck under the rocks? Pin
David O'Neil13-Jul-19 12:31
professionalDavid O'Neil13-Jul-19 12:31 
GeneralRe: python - tail stuck under the rocks? Pin
Member 798912215-Jul-19 1:03
MemberMember 798912215-Jul-19 1:03 
lopatir wrote:
but how do you misspell "i"
Right. That cost me a couple days of work, in the days when Fortran, as well as hardcopy code, were still around. (Yes I know there are languages called Fortran today, but they look completely different!). The loop went trhough once (as Fortran always does), but wouldn't repeat. I didn't discover the problem until I sat down with a printout of the disassebled binary code. Fortunately, the disassembler made use of the symbol defintions in the debug info, and fortunately, the printer (as opposed to the screen) used serif fonts. Then I could distinguish an "l" from an "I", so a conditional jump out of the loop used a diferent variable from the intended one.

There are several such "false friends". I should have known, because in my student days, one of my friends who was a TA in the elementary Fortran programming class caused and "incident": The professor insisted on Norwegian variable names, so instead of "QUEUE" the variable should be named "KØ". "Ø" isn't recognized in Fortran, but ø is commonly transcribed to English as oe, which makes it "K0E". Because we have Ø as a letter, we do not slash zeroes here. Depending on the typeface, KOE and K0E may look almost perfectly identical. They did on our screens. When Jon discovered, he exclaimed loudly so that everybody around could hear hear it to the very good-looking, 18 year old female freshman: "Look, here you are not saying k-oh-e, you are saying k-null-e!" Zero is "null" in Norwegian and "knulle" means f**k... Jon didn't realize was he was "suggesting" until the word had been pronounced, and he got so ashamed that he wanted to flee away. But the girl did accept his excuses.

Actually, it doesn't take national characters, like ø, to confuse 0 and O - even in English-speaking environments, non-slashed zeroes are common. Some typeface do not distinguish much between 1 and l either - I have seen troubles caused by that pair as well.
GeneralRe: python - tail stuck under the rocks? Pin
DerekT-P17-Jul-19 0:53
professionalDerekT-P17-Jul-19 0:53 
GeneralRe: python - tail stuck under the rocks? Pin
Member 798912217-Jul-19 4:12
MemberMember 798912217-Jul-19 4:12 
GeneralRe: python - tail stuck under the rocks? Pin
GuyThiebaut14-Jul-19 0:39
professionalGuyThiebaut14-Jul-19 0:39 
GeneralRe: python - tail stuck under the rocks? Pin
Mike Winiberg14-Jul-19 21:55
professionalMike Winiberg14-Jul-19 21:55 
GeneralRe: python - tail stuck under the rocks? Pin
GuyThiebaut14-Jul-19 22:18
professionalGuyThiebaut14-Jul-19 22:18 
GeneralRe: python - tail stuck under the rocks? Pin
Mike Winiberg14-Jul-19 22:27
professionalMike Winiberg14-Jul-19 22:27 
GeneralRe: python - tail stuck under the rocks? Pin
r_hyde13-Jul-19 8:06
Memberr_hyde13-Jul-19 8:06 
GeneralRe: python - tail stuck under the rocks? Pin
Sander Rossel13-Jul-19 10:14
professionalSander Rossel13-Jul-19 10:14 
AnswerRe: python - tail stuck under the rocks? Pin
PIEBALDconsult13-Jul-19 6:07
professionalPIEBALDconsult13-Jul-19 6:07 
AnswerRe: python - tail stuck under the rocks? Pin
Sander Rossel13-Jul-19 10:19
professionalSander Rossel13-Jul-19 10:19 
AnswerRe: python - tail stuck under the rocks? Pin
GuyThiebaut13-Jul-19 21:07
professionalGuyThiebaut13-Jul-19 21:07 
AnswerRe: python - tail stuck under the rocks? Pin
Member 798912215-Jul-19 1:37
MemberMember 798912215-Jul-19 1:37 
AnswerRe: python - tail stuck under the rocks? Pin
Member 798912215-Jul-19 2:00
MemberMember 798912215-Jul-19 2:00 
AnswerRe: python - tail stuck under the rocks? Pin
Member 787811615-Jul-19 6:28
MemberMember 787811615-Jul-19 6:28 
AnswerRe: python - tail stuck under the rocks? Pin
Asday15-Jul-19 7:09
MemberAsday15-Jul-19 7:09 
GeneralRe: python - tail stuck under the rocks? Pin
Member 798912215-Jul-19 11:29
MemberMember 798912215-Jul-19 11:29 
GeneralRe: python - tail stuck under the rocks? Pin
Asday15-Jul-19 12:13
MemberAsday15-Jul-19 12:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.