Click here to Skip to main content
15,918,808 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 Decaff14-Jul-19 22:48
Fueled By Decaff14-Jul-19 22:48 
GeneralRe: python - tail stuck under the rocks? Pin
Sander Rossel14-Jul-19 23:30
professionalSander Rossel14-Jul-19 23:30 
JokeRe: python - tail stuck under the rocks? Pin
lopatir13-Jul-19 7:09
lopatir13-Jul-19 7:09 
GeneralRe: python - tail stuck under the rocks? Pin
OriginalGriff13-Jul-19 7:56
mveOriginalGriff13-Jul-19 7:56 
GeneralRe: python - tail stuck under the rocks? Pin
David O'Neil13-Jul-19 8:12
professionalDavid O'Neil13-Jul-19 8:12 
GeneralRe: python - tail stuck under the rocks? Pin
OriginalGriff13-Jul-19 8:20
mveOriginalGriff13-Jul-19 8:20 
GeneralRe: python - tail stuck under the rocks? Pin
David O'Neil13-Jul-19 11:31
professionalDavid O'Neil13-Jul-19 11:31 
GeneralRe: python - tail stuck under the rocks? Pin
kalberts15-Jul-19 0:03
kalberts15-Jul-19 0: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-P16-Jul-19 23:53
professionalDerekT-P16-Jul-19 23:53 
GeneralRe: python - tail stuck under the rocks? Pin
kalberts17-Jul-19 3:12
kalberts17-Jul-19 3:12 
GeneralRe: python - tail stuck under the rocks? Pin
GuyThiebaut13-Jul-19 23:39
professionalGuyThiebaut13-Jul-19 23:39 
GeneralRe: python - tail stuck under the rocks? Pin
Mike Winiberg14-Jul-19 20:55
professionalMike Winiberg14-Jul-19 20:55 
GeneralRe: python - tail stuck under the rocks? Pin
GuyThiebaut14-Jul-19 21:18
professionalGuyThiebaut14-Jul-19 21:18 
GeneralRe: python - tail stuck under the rocks? Pin
Mike Winiberg14-Jul-19 21:27
professionalMike Winiberg14-Jul-19 21:27 
GeneralRe: python - tail stuck under the rocks? Pin
r_hyde13-Jul-19 7:06
r_hyde13-Jul-19 7:06 
GeneralRe: python - tail stuck under the rocks? Pin
Sander Rossel13-Jul-19 9:14
professionalSander Rossel13-Jul-19 9:14 
AnswerRe: python - tail stuck under the rocks? Pin
PIEBALDconsult13-Jul-19 5:07
mvePIEBALDconsult13-Jul-19 5:07 
AnswerRe: python - tail stuck under the rocks? Pin
Sander Rossel13-Jul-19 9:19
professionalSander Rossel13-Jul-19 9:19 
AnswerRe: python - tail stuck under the rocks? Pin
GuyThiebaut13-Jul-19 20:07
professionalGuyThiebaut13-Jul-19 20:07 
AnswerRe: python - tail stuck under the rocks? Pin
kalberts15-Jul-19 0:37
kalberts15-Jul-19 0:37 
AnswerRe: python - tail stuck under the rocks? Pin
kalberts15-Jul-19 1:00
kalberts15-Jul-19 1:00 
AnswerRe: python - tail stuck under the rocks? Pin
Member 787811615-Jul-19 5:28
Member 787811615-Jul-19 5:28 
AnswerRe: python - tail stuck under the rocks? Pin
Asday15-Jul-19 6:09
Asday15-Jul-19 6:09 
GeneralRe: python - tail stuck under the rocks? Pin
kalberts15-Jul-19 10:29
kalberts15-Jul-19 10:29 
GeneralRe: python - tail stuck under the rocks? Pin
Asday15-Jul-19 11:13
Asday15-Jul-19 11: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.