Show newer

@Satsuma no i asked her what we'll need to do to fix it and it will be a Pain In The Ass

@aschmitz it was form so bad that the other roommates assumed she had never done it before (she had, in fact, done it before.)

type of cat who breaks the goddamn rice cooker

re: ⚠️ i've been writing python for most of my time on earth ⚠️ 

@vaporeon_ @monorail @The_T normally in OOP, object instantiation logic is contained within a constructor, but Python decided to split the process into two steps:

1) __new__ is a function which returns the instantiated object,
2) __init__ is a function that receives the instantiated object and and initializes its state

It is very rare that a Python programmer ever use __new__. In 99% of cases, what you would put in a constructor in some other language is put in the __init__ method when you use Python.

You can override __new__, however, so that it returns anything you want. You typically do this when you subclass immutable types. Because, if you try to manipulate a subclassed immutable object in the __init__ function, well you can't. Because its immutable. So you have to override the creation of the object itself, typically by calling the superclass's constructor, in the __new__ method.

type of guy who sends a 76.4MB 24-second video over signal on dogshit wifi

@cam you're bringing me back to my "watching street vendors make chai masala" phase

definitely not an image of clodsire holding a gun 

@aescling @Satsuma @vaporeon_ @Lady figure it out and help me.

@cam @Kirito at first i thought this was an overwatch toot for some reason lmao

@aescling @vaporeon_ @Lady I know we can do it technically, I specifically am asking you to add it to our frontend.

@vaporeon_ yeah i reported @aescling and @Lady daily for it but they still haven't fixed it

@cam holy shit once i noticed the eggy crust i pogged irl

Apparently I need to post about JavaScript more so I can salvage my legacy

Show older
📟🐱 GlitchCat

A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.