8

if you want to encounter 400 lb angry virgin programmers go on r/Python and suggest they should add a static keyword to their classes.

They swarm out of the woodwork and take turns trolling you until a mod bans you for responding in suit.

Its amazing, the dumbest lack of language feature and they're like
'me no want the extra keystroke me like code that can lose peopel, me fo fucks no never, not gonna happen, you asshat, haha, now go bye now, *click*'

valid argument is python classes are lacking in decoration

this i suppose is ok overall, i mean they work. except the issue i was having the other day resulted from a variable not being DOUBLE DECLARED IN BOTH THE CLASS SCOPE AND INSIDE THE CONSTRUCTOR LIKE IT WAS A JS OBJECT BEING INTERPRETED AS A STATIC FIELD !

ADDITIONALLY IF THEY LIKE CONCISE WHY THE FUCK DO ALL THEIR CLASS METHODS REQUIRE YOU TO INCLUDE ===>SELF<== !!!!

BUT NOOOO TRY TO COMPARE SOMETHING SENSIBLE LIKE

MYINSTANCE.HI SHOULD NOT BE STATIC
MYCLASS.HI SHOULD BE STATIC AND THEY GET ALL PISSED

ONE ACTUALLY ACTED REJECTED FOR THE SAKE OF HIS LANGUAGE SAYING 'YOU WANT WHAT PYTHON HAS BUT YOU DON'T WANT PYTHON !'
...
...
...
I DIDN'T KNOW THEY MADE VIRGINS THAT BIG!

Comments
  • 2
    @theKarlisK ya its like stackoverflow all over again lol
  • 0
    @theKarlisK god i hate stackexchange, can we mine the data off the site sort through it and make something else ?
  • 4
    So you went in to a python forum, acted like an asshole, and they banned you. How would any forum be any different?

    If you really want a static variable in a function just assign a value to the function. It is an object. You can use a try/except clause to do the initialization of the static. Messy, but doable.
  • 1
    Am I seriously going to have to be the one to point out that you can already do static methods in Python using `@static`?
  • 0
    @YADU I see @staticmethod. I don't see a way to do static variables in a function. I don't understand why you would want a static class.

    I think the OP is Sheogorath.
  • 0
    @Demolishun it was a language feature suggestion you fucking moron. quick making assumptions.
  • 0
    @YADU fields.
    it was about specifying a field as explictly static
    or instance
    like you do in every other language.
    not methods
    fields.

    example.

    class myclass:

    instance:int
    def __init__(self):
    self.instance = 1

    class myclass1:
    instance:int =1
    def myfunc(self,v):
    self.instance =v

    obj1: myclass = myclass()
    obj1.instance = 1 # works

    obj2:myclass = myclass1()
    ob2.instance = 1 # actually gets no complaint
    # sets the value to be the same for alllll instances

    stop being a jackass.
  • 0
    @Demolishun in high level languages static classes sometimes make sense when you're trying to publish values across an entire application reachable by everything or to hold config values

    static methods make sense for factories and things that manipulate data not tied to an instance

    static fields make sense to create settings all instances will use like a mode value.

    static fields that mark a instance fields type make no sense at all
    fields that can be static if you forget to explicitly initialize them in a constructor make no sense at alll
    fields that only appear in a constructor make no sense at all

    python's class syntax is shit.
    and python may be easy to use but that doesn't make it an ideal language for more than just the lack of compilation and error checking PRIOR to execution.
  • 0
    @UnicornPoo i've been writing unit tests for literally every method i write in python lol its taking me for goddamn ever lol since many of them rely on the others !

    python not checking for syntax errors prior to execution is scary lol
  • 0
    god i hate repeats like listening to people be full of shit that once a long time ago i thought were being honest.

    its like listening to crazy people not realizing they're crazy and then being shown a film taken directly from inside their twisted mind prior to watching a recording of them talking about the same shit.

    such hypocrisy should be punishable by death
  • 1
    @Demolishun yes sorry I dont use Python often enough to actually remember what it is.
  • 0
    @YADU honestly if i could replace all bash shell scripts with python i would :P
  • 0
    @YADU have you ever seen bash syntax ?
    its disgusting.
  • 0
    @YouAllSuck you dont need to explicitly mark fields as static in Python, just make a variable in the class but outside any method...

    I guess I'm gonna get banned here for saying this lol
  • 0
    @YADU ok NOW i get the idea of why people sometimes think i';m a bot. that was random.
  • 0
    @UnicornPoo look at this adorable video.

    https://youtube.com/watch/...
  • 4
    @YouAllSuck I personally love bash, you can pry my shitty bash scripts out of my cold dead hands.

    At least Bash doesnt try to act like a real language, unlike Python.

    Bash stays in its place. Bash knows it's a piece of shit and doesn't get full of itself.
  • 0
  • 0
    @YouAllSuck ya its like stackoverflow all over again lol

    Thats the lifecycle of every 'community'.

    The people that are genuine and give a shit, eventually leave, hollowing out the community as a flood of self-interested shitheads swamp the entire thing and metastasize their shitty personality traits into a culture of utter failure.

    And then the good posters go elsewhere, and build up a new community.

    Rinse and repeat. termites versus carpenters.

    Also, what about dependency injection? I have this vague conception of

    what it is, but it strikes me as a five dollar word for a fifty cent concept.
  • 1
    @Wisecrack why did irc die ? it was incentivized by free movies, porn and music lol
  • 3
    Tell them to suck your private member.
  • 2
    There is behavioral difference between class variables and instance variables in Python.
  • 0
    @forcepushfixall yes that is the point
    my point is a simple decorator would make defining classes more readable.

    the paragraph style of most c++ like languages or the heavy access modifer and keyword syntax of c# makes how a class is organized easy to follow

    and that and the way you access static vs instance variables is defined well

    python allows for some.. questionable behaviors. see above
  • 0
    so my question is what happened that improved our life so much after this ? is that once they finish making excuses for lost time ? are they just storing these actions in the back of our heads until they invent whatever newest disaster they are going to create ?
  • 0
    i wonder if the ugly flat featured females these creeps go nuts over would prefer a male that thinks they're ugly :P you know like if i think I can get good looking smooth skinned women with curves and pretty features i'll take those any day

    but these guys go for the opposite half the time and they're evil perverse assholes, whereas if i like a girl like this its because i'm overlooking her flaws in comparison to my own..
    you know
    like a normal man
    in normal times
    who settles :P

    but if i'm choosing from all trash i prefer trash that is well.. in a nicer package lol
  • 0
  • 1
  • 2
    Its literally in the documentation:

    *instance variables are for data unique to each instance and class variables are for attributes and methods shared by all instances of the class*

    https://docs.python.org/3/tutorial/...
  • 0
    @forcepushfixall stop making excuses for a shitty syntax you’re acting like a child trying to be right
  • 1
    There is no shitty syntax, apparently you found out the hard way the difference between class and instance variables, now you're blaming the language and its syntax for your incompetence, as you could have known this by reading the most basic Python tutorial.
  • 0
    @forcepushfixall lets make love now :P if you can call sticking my dick into your head lovemaking. and no you are still incorrect.
  • 1
    @YouAllSuck what's up with the consistent homo-erotic tropes in your comments? Its okay to be gay. Stop the incel behavior please.
  • 0
    @forcepushfixall i;m not involuntarily celibate, i'm quite voluntarily celibate because i'm consistently surrounded by fucked up chomo freaks I want nothing to do with who would lay me, and the guy next door, and the other guy, and all the other guys.

    so no.

    i'm being a typical ninetees teen all grown up and making commentary over something taht suggests that we did have some bicurious tendencies but was more directed or expressed by digitally placing each other in the subordinate position.

    where you belong :P nothing homoerotic about it millenial :P I am chat rooming your mouth from afar in a buddy buddy way :P deal with it lol

    and its funny i looked up what an incel was a long time ago, and it kind of sounds like every male i ever met that had encountered dumb bitches but partly stuck because they didn't try but likely more a product of the gradual queering of all the women in the world into liking weird shit
  • 0
    @forcepushfixall like you who are obviously working, creating masculine tension with the leadin of targeting a personality type you likely don't understand except from a learned perspective of suggestiveness, to create a personality that denies its likely homosexual leaning by saying something pc like 'its ok to be gay' and annoying me with millenial lingo i find repugnant, which mocks and overcomplicates the world in a way which is unnecessary and annoying, which increases my resentment, but i would hazard to say you at least once upon a time had a pretty mouth, so since the best way of getting a pretty straight guy to hump another male is through their desire towards aggression if and when especially that is how they were molested which i was i found out in my late 30s, the way of translating that frustration into sexuality is to piss that male off and be a pretty girly man with a certain amount of shy but annoying characteristics.
  • 0
    @forcepushfixall when honestly if that is what you're looking for, find a chick with nice tits and create a suggestive sexual scenario in which i desire to fuck her and because you're there, fuck her with you, and then because i'm fucking her with you, and you are or were so pretty the last time i explained the finer points of sexual psych to you, and happily experiement a little :P instead you people play off of anger and rage and bad feeling which is more of a susceptibility towards being reminded of a victimizer and wanting to hurt them the same way than something which is as I like it which is enjoyable and happy and when i'm at my best look wise having hit a treadmill for half a year lol and honestly I think that is because your kind likes this and its the only way they can get excited for other adults. which i definitely don't like. if i want fucked up and dysfunctional i'll chase one of your females lol
  • 1
    @forcepushfixall bet you want to swallow that good bavarian sausage even more now don't you ? LMAO
  • 0
    @forcepushfixall that last was humor. lol just so you know lol
  • 2
  • 0
    @forcepushfixall i have no idea what that means but it is funny lol
  • 0
    In high-level languages, static classes are useful for publishing values across an entire application or holding config values. Static methods are useful for manipulating data not tied to an instance, such as factories. Static fields are good for creating settings all instances will use, like a mode value. However, static fields that mark an instance field's type, fields that can be static if you forget to initialize them explicitly in a constructor, and fields that only appear in a constructor are pointless. Python's class syntax is not good, and while it's easy to use, it's not an ideal language due to the lack of compilation and error checking prior to execution.
Add Comment