« first day (4901 days earlier)      last day (53 days later) » 

12:02 AM
When the package name is exactly the same as the prefix, I'd definitely omit it
 
There are so many examples where people are using prefix, even if it's the same as the package name. The "http" module does it, for example "HTTPMessage". Or the "mysql" package that has "MySQLConnection"
 
 
2 hours later…
1:53 AM
_"is there some sort of @abc.virtualmethod and @abc.override (or I missing something more fundamental?)?"_

Yes, there is an `override` decorator - https://docs.python.org/3/library/typing.html#typing.override for exactly this purpose: "This helps prevent bugs that may occur when a base class is changed without an equivalent change to a child class."
(as [MisterMiyagi has already mentioned](https://chat.stackoverflow.com/transcript/message/57193150#57193150))

but - for a method which has a default implementation (ie not-abstract) - if someone typos the method name AND forgets to use the ov
 
 
1 hour later…
2:55 AM
Had mis-Intuition about standalone use of @override, without corresponding paired decorator in the base;
also adding dummy @virutalmethod gives a better hint than docstring (may be also there is something useful to place in this method instead of pass)
Thanks to you and MisterMiyagi's slightly obfuscated answer, seems this is good enough!
 
 
7 hours later…
10:15 AM
throws 20 cents into Aran's Sphinx Killer collection bag
 
Oh boy, that thing has been on the back burner for so long there's probably only a bit of char and ash left
Last commit to my one published project: 2 weeks ago. Last time I updated its documentation: 2 years, 2 months ago
 
 
3 hours later…
1:26 PM
Back in my old role when people asked about my strict 80 character limit on a line of code, I always said that when I open a repo that sticks to it, even if it's less relevant these days, it gives me (perhaps premature) confidence that the repo owners are taking things seriously. I feel vindicated when I find things like this in hugging-face
How does attention_mask[0, 0, -1, -1] < -1 even work?
 
magic numbers are so last century, eh?
Magic multi-dimensional indexing is the new black!
 
1:39 PM
My bug alarm is going berserk on that one. I'm assuming it follows numpy semantics but I can't get anything similar to evaluate as a bool (or even truthy/falsey)
Aaaand I'm done trying to play with that :P I just wandered over to their repo after youtube decided to give me a bunch of documentaries about how they're valued in the $billions now and I went poking about in their codebase
 
@roganjosh Has poking in the codebase of high-valued tech ever turned out well for anyone? :P
 
1:59 PM
Certainly in my own experience, no. Every time I see big news stories about some open-source package that's raking the money in, I tend to go poking about. I'm always surprised at how minimal the libraries are and yet I'm still plodding on with my behemoth that's nearly at 30k lines and I haven't even got to the point of it doing something useful, let alone building the solver
 

« first day (4901 days earlier)      last day (53 days later) »