Click here to Skip to main content
15,217,193 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: I knew i was suspicious of python for a reason Pin
Gary R. Wheeler4-Feb-20 13:28
MemberGary R. Wheeler4-Feb-20 13:28 
GeneralRe: I knew i was suspicious of python for a reason Pin
Brady Kelly2-Feb-20 21:55
MemberBrady Kelly2-Feb-20 21:55 
GeneralRe: I knew i was suspicious of python for a reason Pin
Member 91670572-Feb-20 22:47
MemberMember 91670572-Feb-20 22:47 
GeneralRe: I knew i was suspicious of python for a reason Pin
Peter Shaw3-Feb-20 2:55
professionalPeter Shaw3-Feb-20 2:55 
GeneralRe: I knew i was suspicious of python for a reason Pin
Gary R. Wheeler4-Feb-20 13:32
MemberGary R. Wheeler4-Feb-20 13:32 
GeneralRe: I knew i was suspicious of python for a reason Pin
Peter Shaw5-Feb-20 1:27
professionalPeter Shaw5-Feb-20 1:27 
GeneralRe: I knew i was suspicious of python for a reason Pin
obermd3-Feb-20 3:05
Memberobermd3-Feb-20 3:05 
GeneralRe: I knew i was suspicious of python for a reason Pin
Kirk 103898213-Feb-20 3:27
MemberKirk 103898213-Feb-20 3:27 
As someone who taught a few CS courses...

for a NEW programmer, the Python Syntax makes MORE sense than the C style syntax.

x = 3 if I_Need_A_Small_Number else 3333

which is even cleaner in error checking:
addError("You can't have this") if X = 0
addError("You can't have this") if Y = 0
...
showErrors()

This was a feature of DEC Basic-Plus 2 (I called it an outside if) and in a world where something had to be tweaked in a block of code, and you did not want to affect program flow... Wow, it was a gift.

The C syntax is best explained as a "fake function" IIF() => X = IIF(cond, true_val, false_val);
but invariably the kids ask the correct question: Wouldn't that be BETTER/CLEARER syntax? (And I would explain that is why we have a PRE-PROCESSOR, LOL).

And again, I LOVE the PL/SQL DECODE() statement, which is "?:" on Steroids:
X = Decode(v0, V1, R1, V2, R2, V3, R3, R4) -> Where R4 (the extra param is the ELSE condition)
It is literally a CASE statement in function form!

That said. Python has ONE THING I absolutely hate. THE WHITESPACE inequity. I wish they treated a single tab as 2 spaces. Life would be simply. My editors convert Tabs to spaces. But ONLY when I edit a line. OMFG this might be bad in Python. LOL.
GeneralRe: I knew i was suspicious of python for a reason Pin
honey the codewitch3-Feb-20 5:12
mvahoney the codewitch3-Feb-20 5:12 
GeneralRe: I knew i was suspicious of python for a reason Pin
patbob3-Feb-20 7:27
Memberpatbob3-Feb-20 7:27 
GeneralRe: I knew i was suspicious of python for a reason Pin
honey the codewitch3-Feb-20 7:51
mvahoney the codewitch3-Feb-20 7:51 
GeneralRe: I knew i was suspicious of python for a reason Pin
Frank Malcolm3-Feb-20 12:05
MemberFrank Malcolm3-Feb-20 12:05 
GeneralRe: I knew i was suspicious of python for a reason Pin
honey the codewitch3-Feb-20 13:41
mvahoney the codewitch3-Feb-20 13:41 
GeneralRe: I knew i was suspicious of python for a reason Pin
FormerBIOSGuy5-Feb-20 3:49
MemberFormerBIOSGuy5-Feb-20 3:49 
GeneralHow much space will brexit free up in European union ? Pin
Rage1-Feb-20 2:59
professionalRage1-Feb-20 2:59 
AnswerRe: How much space will brexit free up in European union ? Pin
lopatir1-Feb-20 3:29
Memberlopatir1-Feb-20 3:29 
GeneralRe: How much space will brexit free up in European union ? Pin
Rage2-Feb-20 20:46
professionalRage2-Feb-20 20:46 
GeneralRe: How much space will brexit free up in European union ? Pin
Richard MacCutchan1-Feb-20 4:15
mveRichard MacCutchan1-Feb-20 4:15 
GeneralRe: How much space will brexit free up in European union ? Pin
OriginalGriff1-Feb-20 4:24
mveOriginalGriff1-Feb-20 4:24 
GeneralRe: How much space will brexit free up in European union ? Pin
dandy721-Feb-20 5:17
Memberdandy721-Feb-20 5:17 
GeneralRe: How much space will brexit free up in European union ? Pin
Richard MacCutchan1-Feb-20 5:20
mveRichard MacCutchan1-Feb-20 5:20 
GeneralRe: How much space will brexit free up in European union ? Pin
Rage2-Feb-20 20:47
professionalRage2-Feb-20 20:47 
QuestionRe: How much space will brexit free up in European union ? Pin
L. Braun3-Feb-20 4:03
MemberL. Braun3-Feb-20 4:03 
AnswerRe: How much space will brexit free up in European union ? Pin
Richard MacCutchan3-Feb-20 4:14
mveRichard MacCutchan3-Feb-20 4:14 
Generalwhy every college student should have a tricked-out Mac Pro Tower Pin
BillWoodruff1-Feb-20 1:23
mveBillWoodruff1-Feb-20 1:23 

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.