Click here to Skip to main content
16,004,458 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: what is the fascination with Python ? ( CAUTION semi-programming rant ) Pin
charlieg5-Aug-24 1:47
charlieg5-Aug-24 1:47 
GeneralRe: what is the fascination with Python ? ( CAUTION semi-programming rant ) Pin
Peter Shaw5-Aug-24 2:14
professionalPeter Shaw5-Aug-24 2:14 
GeneralRe: what is the fascination with Python ? ( CAUTION semi-programming rant ) Pin
charlieg6-Aug-24 1:16
charlieg6-Aug-24 1:16 
GeneralI think it's similar to Apple popularity. It's what people learned. Pin
Mike Breeden5-Aug-24 2:07
Mike Breeden5-Aug-24 2:07 
GeneralRe: I think it's similar to Apple popularity. It's what people learned. Pin
obermd6-Aug-24 4:42
obermd6-Aug-24 4:42 
GeneralRe: what is the fascination with Python ? ( CAUTION semi-programming rant ) Pin
pibbur5-Aug-24 2:05
pibbur5-Aug-24 2:05 
JokeRe: what is the fascination with Python ? ( CAUTION semi-programming rant ) Pin
Daniel Pfeffer7-Aug-24 11:37
professionalDaniel Pfeffer7-Aug-24 11:37 
GeneralRe: what is the fascination with Python ? ( CAUTION semi-programming rant ) Pin
brucelehmann5-Aug-24 6:08
brucelehmann5-Aug-24 6:08 
I use Python because it has a HUGE library of math, data plotting and other functions. Many of these libraries are in C/C++ or Fortran, so run fast, and have a long legacy or are actively maintained, so are reliable. I also use Python for machine learning where most of the work is data or method exploration and the immediate running of code cells (in Jupyter, for instance) allows fast iteration of the code.

On the other hand, I wouldn't use Python for a time-critical real-time system, although I have used it to interface with Arduino's and data acquisition boards. However, Python is not that much slower than compiled languages unless the run-time is very long. Even then, if the code is solving big matrices then most of the time is in Fortran anyway.

From my understanding, the reduction in speed in Python is mainly to do with it not being a typed language: the interpreter has to figure out the data type on the fly. I'm not sure why this has to be since best coding practice is to use type-hints, which can be statically checked, but are ignored by the interpreter. I don't see why type-hints, if present, can't be used by the interpreter to enforce typing.

As to the comments about using white-space for formatting, I was already indenting to make the code readable so ; and {} are redundant to me and now seem like clutter whenever I work in C/C++/Java/PHP.
GeneralWordle 1,141 Pin
OriginalGriff2-Aug-24 18:36
mveOriginalGriff2-Aug-24 18:36 
GeneralRe: Wordle 1,141 (3/6) Pin
Jeremy Falcon2-Aug-24 19:46
professionalJeremy Falcon2-Aug-24 19:46 
GeneralRe: Wordle 1,141 - lucky 2 4 me Pin
pkfox2-Aug-24 22:53
professionalpkfox2-Aug-24 22:53 
GeneralRe: Wordle 1,141 Pin
Cp-Coder3-Aug-24 3:26
Cp-Coder3-Aug-24 3:26 
GeneralRe: Wordle 1,141 Pin
StarNamer@work3-Aug-24 4:21
professionalStarNamer@work3-Aug-24 4:21 
GeneralRe: Wordle 1,141 Pin
jmaida3-Aug-24 18:08
jmaida3-Aug-24 18:08 
GeneralWordle 1,140 Pin
StarNamer@work2-Aug-24 14:09
professionalStarNamer@work2-Aug-24 14:09 
GeneralRe: Wordle 1,140 Pin
Jeremy Falcon2-Aug-24 18:37
professionalJeremy Falcon2-Aug-24 18:37 
GeneralRe: Wordle 1,140 Pin
StarNamer@work3-Aug-24 4:19
professionalStarNamer@work3-Aug-24 4:19 
RantJust asking ... (see type ) Pin
jana_hus2-Aug-24 10:11
jana_hus2-Aug-24 10:11 
GeneralRe: Just asking ... (see type ) Pin
David O'Neil2-Aug-24 11:56
professionalDavid O'Neil2-Aug-24 11:56 
GeneralRe: Just asking ... (see type ) Pin
trΓΈnderen2-Aug-24 16:43
trΓΈnderen2-Aug-24 16:43 
GeneralRe: Just asking ... (see type ) Pin
OriginalGriff2-Aug-24 23:27
mveOriginalGriff2-Aug-24 23:27 
GeneralRe: Just asking ... (see type ) Pin
jana_hus3-Aug-24 7:33
jana_hus3-Aug-24 7:33 
GeneralRe: Just asking ... (see type ) Pin
trΓΈnderen3-Aug-24 17:38
trΓΈnderen3-Aug-24 17:38 
GeneralRe: Just asking ... (see type ) Pin
jschell4-Aug-24 6:44
jschell4-Aug-24 6:44 
GeneralRe: Just asking ... (see type ) Pin
trΓΈnderen4-Aug-24 10:03
trΓΈnderen4-Aug-24 10:03 

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.