Click here to Skip to main content
15,887,376 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 - no arguments, please Pin
PIEBALDconsult26-Sep-22 5:31
mvePIEBALDconsult26-Sep-22 5:31 
GeneralRe: Python - no arguments, please Pin
Maximilien26-Sep-22 7:53
Maximilien26-Sep-22 7:53 
GeneralRe: Python - no arguments, please Pin
Chris Maunder26-Sep-22 5:40
cofounderChris Maunder26-Sep-22 5:40 
AnswerRe: Python - no arguments, please Pin
megaadam26-Sep-22 7:30
professionalmegaadam26-Sep-22 7:30 
GeneralRe: Python - no arguments, please Pin
Chris Maunder26-Sep-22 7:32
cofounderChris Maunder26-Sep-22 7:32 
GeneralRe: Python - no arguments, please Pin
megaadam26-Sep-22 7:54
professionalmegaadam26-Sep-22 7:54 
GeneralRe: Python - no arguments, please Pin
Chris Maunder26-Sep-22 9:48
cofounderChris Maunder26-Sep-22 9:48 
GeneralRe: Python - no arguments, please Pin
megaadam26-Sep-22 10:26
professionalmegaadam26-Sep-22 10:26 
Now I am quite confused and almost wonder if you are commenting on my comment. #1 I said nothing about comments. #2 I said nothing about variable names. But...

Maybe I just triggered you think about these things. Funny thing is that neither of these two are what I was thinking of.

As for comments I dunno. You surely remember the hype around the Ada programming language. They only (AFAIK) had -- on each line for comments. And one of the key language design criteria was: "WORMS i.e Write Once Read Many timeS" And actually Python has docstrings that lazy people could use for multi-line comments. But that would be considered extremely bad style, certainly any formal code review would reject such stuff.

As for naming, there are at least strong linting/formatting tools (Pep8/Black), that my organisation has in our CI, you cannot check in without it. And what I've seen of naming culture the Python community is quite strong. In web snippets? Maybe less so. Yeah, I have done my fair share of FORTRAN too, where naming was darkness...

Despite such draconic measures Python code rots rapidly, but IMO the key reason is the lack of typing combined with optional arguments. In long call chains, in the end, you have no idea what the elephant is being passed or returned.

Cheerz
Java | [Coffee]
"If we don't change direction, we'll end up where we're going"

GeneralRe: Python - no arguments, please Pin
Chris Maunder26-Sep-22 11:56
cofounderChris Maunder26-Sep-22 11:56 
GeneralRe: Python - no arguments, please Pin
Zak River27-Sep-22 1:04
Zak River27-Sep-22 1:04 
QuestionRe: Python - no arguments, please Pin
CPallini29-Sep-22 20:08
mveCPallini29-Sep-22 20:08 
GeneralRe: Python - no arguments, please Pin
Gerry Schmitz26-Sep-22 7:45
mveGerry Schmitz26-Sep-22 7:45 
GeneralRe: Python - no arguments, please Pin
trønderen26-Sep-22 11:10
trønderen26-Sep-22 11:10 
GeneralRe: Python - no arguments, please Pin
Greg Utas26-Sep-22 12:22
professionalGreg Utas26-Sep-22 12:22 
GeneralRe: Python - no arguments, please Pin
trønderen27-Sep-22 7:56
trønderen27-Sep-22 7:56 
GeneralRe: Python - no arguments, please Pin
Greg Utas27-Sep-22 8:33
professionalGreg Utas27-Sep-22 8:33 
GeneralRe: Python - no arguments, please Pin
jsc4226-Sep-22 22:12
professionaljsc4226-Sep-22 22:12 
GeneralRe: Python - no arguments, please Pin
BryanFazekas27-Sep-22 1:39
BryanFazekas27-Sep-22 1:39 
GeneralRe: Python - no arguments, please Pin
trønderen27-Sep-22 6:52
trønderen27-Sep-22 6:52 
GeneralRe: Python - no arguments, please Pin
Derek Hunter26-Sep-22 21:39
Derek Hunter26-Sep-22 21:39 
GeneralRe: Python - no arguments, please Pin
maze326-Sep-22 23:29
professionalmaze326-Sep-22 23:29 
GeneralRe: Python - no arguments, please Pin
Drew Rankin27-Sep-22 3:55
professionalDrew Rankin27-Sep-22 3:55 
GeneralRe: Python - no arguments, please Pin
Marc Clifton27-Sep-22 4:50
mvaMarc Clifton27-Sep-22 4:50 
GeneralRe: Python - no arguments, please Pin
Member 1194113127-Sep-22 8:11
Member 1194113127-Sep-22 8:11 
GeneralRe: Python - no arguments, please Pin
Martin ISDN3-Oct-22 6:58
Martin ISDN3-Oct-22 6:58 

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.