String operations in Python are fast as well. f-strings are the fastest formatting style, while even the slowest style is still measured in just nano-seconds.
Concatenation (+) 39.1 ns (25.6M ops/sec)
f-string 64.9 ns (15.4M ops/sec)
It says f-strings are fastest but the numbers show concatenation taking less time? I thought it might be a typo but the bars on the graph reflect this too?
String concatenation isn't usually considered a "formatting style", that refers to the other three rows of the table which use a template string and have specialized syntax inside it to format the values.
In the case of multiple base classes wouldn't it be more sensible for the derived class to forego the lexical convenience of super() and simply call each base explicitly? i.e.
If one wants to inherit from multiple classes then they should be responsible for specifying the details of how that happens. Why should a base class be expected to add boilerplate just in case some external consumer comes along and wants to use it in some unforeseeable context?
That super() has a "method resolution order" seems like a fudge. Now 'super' doesn't necessarily mean 'superclass' anymore at the point of use. Am I missing some other hypothetical situation in which super()'s MRO brings more value for the price of having to know about this extra, implicit behaviour?
And what's funny is that in the example given, the first base class not calling super() leads to the bad consequence that the other base class doesn't get to set some internal state (self.mode). Yet in the next section, "When to use a Mixin", it advises: "A mixin is a class that [...] does not contain state"
Interesting. I loved Flow and I'm glad the stars aligned for it on this particular occasion. This article [1] lists a bunch of other Oscar-related firsts:
* Gints Zilbalodis, who is 30 years old, is the youngest director to win the Oscar for best animated feature.
* Flow is the first fully-European produced and funded film to win the feture animation Oscar.
* Flow is the first dialogue-less film to win the feature animation Oscar.
* Flow, made for under $4 million, is by far the lowest-budget film to ever win the category.
It also says the winner of the animated short category, In the Shadow of the Cypress, was unexpected since the Iranian filmmakers couldn't do any of the usual in-person campaigning of Academy voters due to visa problems.
This inspires me as a programmer and delights me as a player. Surprising variety in the stages and lovely precise feel to the car handling. 3 or 4 goes before I started to beat it, first with keyboard then with a pad. Fired up some smooth techno to accompany me in the background :)
Lovely. Unexpectedly I feel more immersed with the sound off. When it's on it's like I'm watching just another video on the Internet, and the wind blusters through the mic in a way that sounds different to actually being there; whereas when it's off the unnaturally complete peacefulness meshes with the sound of my actual surroundings and the images seem to pop more.
Intriguing and fun. I haven't played it enough to confidently suggest changes to the game mechanics, but I think they're strong enough on their own that any/all added UI comfort would be welcome - like others have been saying, a less clunky dictionary (maybe right-click on a word on the board to look it up?), and maybe a preview of whether your attack is going to succeed or not (maybe just on 'easier' levels, since there is an element of not making a 'simple' miscalculation while you overthink a complex board position, like in Chess. Also, think of a game like Puzzle Bobble / Bust-a-Move where the first few levels give you a line showing you exactly where your bubble is going to land).
reply