General statistics
List of Youtube channels
Youtube commenter search
Distinguished comments
About
Dr Gamma D
hearted comments
Youtube hearted comments of Dr Gamma D (@DrDeuteron).
Descartes reasoning was circular, but no more than Fermat's was triangular.
1100
@AnotherRoof uhh, I think you meant, "Holy Cow!"?
82
Since you didn't ask, here are my tips for functions: docstring for users comment for devs pass arguments as keywords (for devs--from Raymond Hettinger--If you don't know who that is, you're not a pystro) single point return for successful use-cases use guard clause to catch errors early and raise/return early minimize branches (cyclic complexity). only ONE purpose per function: break it down, use private helpers if needed) so devs never scroll to see the whole function. all functions should be PURE: if it depends on state or mutates parameters, make it a class method....and don't mutate someone else's state. only 'type(self) should mutate 'self's attributes.
39
No 1's telemetry is sick!
32
itertools is written by pystro: Raymond Hettinger, and it is optimized af. Moreover: it reduces your code's cyclomatic complexity. Many for loops, with indented if-blocks disappear. IT doesn't matter that they occur in functions, they are NOT in your code, and your code is less complex by definition of complexity.
31
It's time for Time-Life to make Rick's 100 Great Songs into a CD collection, with 4 easy payments.
27
you should never use the class name in an instance method, use "type(self)". If you need to know the exact class then it's time to, ugg, use name mangling. and top speed of "200" is a magic number, it should be a private class attribute: _top_speed = 200 in the class namespace.
10
No 15: overloading repr() is a good idea. You can also use "type(self)._name__" or self.__class___.__name_ instead of the explicit "Person" in the f-string.
9
Northrup Grumann for the win.
3
They’ve come a long way since the Stockholm Telephone Tower.
3
they're educational and us avoid common accidents
3
I don’t get it, sonar is for underwater. How do they get above surface images? Doesn’t look like SAR, so LiDAR? How do you combine the data?
2
Don’t apologize for pronouncing the names in English, because they were 1) correct in English, 2) understandable. Had you switched to failed non English phonemes, I’d have no idea where this happened.
2
I got it, but only b/c Nathan told me how to do it.
1
You mentioned relativity. A lot of ppl get mixed up thinking you can move relative to space…moving is just a shapeshift….stretching time and squishing length for some other observer. But as far as you, you moving persons thinks: you just still a regular 1/x hyperbola. This is why you can never reach the speed of light: no matter what you do , it’s alway “c” away in all directions.
1
I can reduce the sum to 1 + 1/3 + 1/3*5 + ..... but then I get stuck
1
You had me at I know my vernacular is very good
1
18:00 he’s just describing alpha, sigma and woketard
1
You missed a major "feature" of lambda that allows evil code: it has global scope: >>> f = lambda: x * n >>>f(3) NameError >>>n = 10 >>>f(3) 30 >>>n = 'wtf' >>>f(3) 'wtfwtfwtf' WTF!?
1