Stack Overflow's 6th moderator election has come to a close, the votes have been tallied, and the 3 new moderators are:
They'll be joining the existing crew shortly — please thank them for volunteering, and share your assistance and advice with them as they learn the ropes!
For details on ...
@JGreenwell Network admin just asked me to test a specific terminal and it worked. He texted back in response "Ugh not what I wanted to hear. I'll be busy for next several hours reconfiguring routers."
I don't think I understand this voting system. Why are rounds 12, 13, and 14 all transferring surplus votes? Shouldn't there be eliminations between each one?
which inherits from basement. Both fistF and secondF need to setup a location and name that is passed to groundFloor which then passes this information to basement
@Fuchida Sounds like an unusual design, since inheritance usually follows an "is-a" relationship. A car is a vehicle, so it may be logical for Car to inherit from Vehicle. But SecondFloor is not a GroundFloor, so it doesn't make sense to inherit from it.
Depending on what you're trying to do, it may make sense to have a single Floor class, with basement and first_floor and second_floor all being instances of that one class.
Perhaps you can represent this "each floor passes information to the floor below it" with a parameter to __init__. Ex. basement = Floor(); first_floor = Floor(parent=basement); second_floor = Floor(parent=first_floor)
This kind of design is fairly common. For example, the widgets of Tkinter assign master elements this way.
If you really truly do need fifty different classes for a fifty story building (or whatever your actual use case is), then maybe metaclasses are in order here. But I have zero experience with them so I can't be much help there.
As our thanks to everyone that participated in this room (by typing at least 10 things that weren't flagged), you'll also get an email from me asking for some details as you helped guide folks through this process.
@GeorgeStocker “We see it without any links or formatting, we just see plain text.” – That’s kind of sad. Have you considered opening a feature request on meta about it? ;) — poke44 secs ago
@poke Confusingly, the transcript has no formatting at all, so when I got that notification and clicked it from the main site, I didn't see any italics and went "Huh? Example of what?"