Click here to Skip to main content
15,905,912 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: Is Python slowly losing its charm? Pin
Nelek29-Oct-20 9:19
protectorNelek29-Oct-20 9:19 
GeneralRe: Is Python slowly losing its charm? Pin
Peter Adam30-Oct-20 2:44
professionalPeter Adam30-Oct-20 2:44 
GeneralRe: Is Python slowly losing its charm? Pin
Kirk 1038982130-Oct-20 4:17
Kirk 1038982130-Oct-20 4:17 
GeneralRe: Is Python slowly losing its charm? Pin
Greg Utas29-Oct-20 0:50
professionalGreg Utas29-Oct-20 0:50 
GeneralRe: Is Python slowly losing its charm? Pin
5teveH29-Oct-20 1:13
5teveH29-Oct-20 1:13 
GeneralRe: Is Python slowly losing its charm? Pin
Kolya Ivankov30-Oct-20 22:03
Kolya Ivankov30-Oct-20 22:03 
GeneralRe: Is Python slowly losing its charm? Pin
theoldfool29-Oct-20 1:19
professionaltheoldfool29-Oct-20 1:19 
GeneralRe: Is Python slowly losing its charm? Pin
raddevus29-Oct-20 3:33
mvaraddevus29-Oct-20 3:33 
Why I Start Python then always Stop
I like a lot of programming languages.
C# is my favorite, but I like C++, Pascal, C, Java, Kotlin (more & more all the time), even Swift (very Kotlin-like), TypeScript and I also like JavaScript -- even though it has a lot of annoying things like === etc.

I try to like Python, I really do. But there are a number of reasons that every time I start using it again I stop.

3) whitespace dependent. I've hurt myself with this where code fails due to having a tab where I should have 3 spaces or vice-versa. It's annoying. Just use some friggin' brackets.
2) global variables in file. If you define a variable in a file it is global to every function in that file. What!?! Yep. It's painful and confusing and a bad idea.
1) But the number one, knock-down, all-time biggest reason I just can't get past it is the use of double-underscores. Dead | X|
Yes, I'm a syntax snob. Shucks | :-\
It's just the ugliest syntax ever and I don't want to type underscores all the time!
It's so ugly to look at Python code. Here's a sample from official documentation:

Python
class Mapping:
    def __init__(self, iterable):
        self.items_list = []
        self.__update(iterable)

    def update(self, iterable):
        for item in iterable:
            self.items_list.append(item)

    __update = update   # private copy of original update() method

It's so ugly, so I just stop Python as soon as possible and go back to one of the good languages.
I was also wondering why Van Rossum (creator of Python) used underscores so much and there are some good explanations in this post. But there is no excuse, because other modern languages have not had to use characters like that.
Why does python use two underscores for certain things? - Stack Overflow[^]
GeneralRe: Is Python slowly losing its charm? Pin
Peter R. Fletcher30-Oct-20 3:35
Peter R. Fletcher30-Oct-20 3:35 
GeneralRe: Is Python slowly losing its charm? Pin
Peter Adam30-Oct-20 8:41
professionalPeter Adam30-Oct-20 8:41 
GeneralRe: Is Python slowly losing its charm? Pin
Rage29-Oct-20 3:34
professionalRage29-Oct-20 3:34 
GeneralRe: Is Python slowly losing its charm? Pin
RedDk29-Oct-20 7:33
RedDk29-Oct-20 7:33 
GeneralRe: Is Python slowly losing its charm? Pin
Kolya Ivankov29-Oct-20 20:48
Kolya Ivankov29-Oct-20 20:48 
GeneralRe: Is Python slowly losing its charm? Pin
Martin ISDN29-Oct-20 23:44
Martin ISDN29-Oct-20 23:44 
GeneralRe: Is Python slowly losing its charm? Pin
Shawn_Eary30-Oct-20 2:52
Shawn_Eary30-Oct-20 2:52 
GeneralRe: Is Python slowly losing its charm? Pin
NightPen30-Oct-20 5:36
NightPen30-Oct-20 5:36 
GeneralRe: Is Python slowly losing its charm? Pin
Kolya Ivankov30-Oct-20 10:10
Kolya Ivankov30-Oct-20 10:10 
GeneralRe: Is Python slowly losing its charm? Pin
Bitbeisser31-Oct-20 7:13
Bitbeisser31-Oct-20 7:13 
GeneralRe: Is Python slowly losing its charm? Pin
SergeiV1-Nov-20 1:22
SergeiV1-Nov-20 1:22 
GeneralRe: Is Python slowly losing its charm? Pin
lognormal1-Nov-20 7:00
lognormal1-Nov-20 7:00 
GeneralRe: Is Python slowly losing its charm? Pin
BotReject10-Nov-20 3:24
BotReject10-Nov-20 3:24 
GeneralWhich is the best Javascript prettyprinter? Pin
trønderen28-Oct-20 12:31
trønderen28-Oct-20 12:31 
GeneralRe: Which is the best Javascript prettyprinter? Pin
RedDk28-Oct-20 12:35
RedDk28-Oct-20 12:35 
GeneralRe: Which is the best Javascript prettyprinter? PinPopular
Sander Rossel28-Oct-20 13:44
professionalSander Rossel28-Oct-20 13:44 
GeneralRe: Which is the best Javascript prettyprinter? Pin
Slacker00729-Oct-20 1:38
professionalSlacker00729-Oct-20 1:38 

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.