3,292 karma · joined Jul 1, 2013 (13y ago) · 1,194 submissions
comment 3y ago · link · parent
Inheritance, when used for implementing is-a relationship, is a pretty powerful tool. If you're surprised by overriding, maybe instead of complaining about `Parent parent = new Child()` examples, try to see a `Writer writer = new PdfWriter()`. Are you still surprised that `writer.write(document)` generates a pdf?
There are absolutely horrible ways of designing code in Java, but that can be said about any language.
comment 3y ago · link · parent
I don't impose fixed line counts for my methods. But when it makes sense, the readability improves a lot.
comment 3y ago · link · parent
1. https://ziglang.org/learn/overview/#small-simple-language
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 4y ago · link · parent
comment 4y ago · link · parent
That wasn't real text. Just holding some space here. Real text is going to be awesome.
comment 4y ago · link · parent
Square tiling is very obvious, as you can see from the first example [0]. Hex tiling shifts tiles to a less obvious pattern. Also, as I can see from the video, tiles can be rotated while hiding the seams perfectly, which eliminates repetition altogether.
0. https://github.com/mmikk/mmikk.github.io/blob/master/picture...
comment 4y ago · link · parent
comment 4y ago · link · parent
This is how things like Babashka (Clojure CLI scripting runtime) are possible [0]
comment 4y ago · link · parent
It's even possible to compile it ahead of time, making projects like a Clojure CLI scripting runtime with almost instant startup time possible (babashka).
comment 4y ago · link · parent
That volume is not the same volume processed by all filters in the same amount of time.
In the first minute:
E12 filters 10000 particles @ 99.5% performance -> removes 9950, leaves 50
H13 filters 10000 particles @ 99.95% performance -> removes 9995, leaves 5
RLv1 filters 10 particles @ 99.995% performance -> removes 10, leaves 0
RLv2 filters 1000000 particles @ 99% performance -> removes 990000, leaves 10000
RLv1 only filters a tiny amount of air each minute, while RLv2 filters a lot of air each minute (I've improved the flow, but drastically botched the performance)By your method, RLv2 is 2000x slower than H13, but in the same ammount of time filtered 99x more particles. RLv1 needs to run 99000 minutes to filter the same amount of particles RLv2 does in one minute.
The example is meant to show air flow totaly dominates performance, and it's not "a trick" to multiply by it. I also want to point out that comparing the amount of particles "left" (50 vs 5 vs 0 vs 10000) is nonsense and absolutely no indication of performance in any way.
comment 4y ago · link · parent
comment 4y ago · link · parent
> Jason Yuan has promoted the idea of “fidgetability” where, similar to a key fob or lighter, digital actions can be designed to feel satisfying.
I love fidgeting. I used to have a switch tumbler in my pocket just to turn it off / on when I didn't have anything to do with my hands. I think I would've enjoyed a checkbox that allowed you to drag it slightly to check it instead of just tapping. You can't add "fidgetability" with just flashy animations and sfx. You need something to do with your thumb: turn it on and off, feel the thing respond, turn it half way, try to keep it there before it snaps into place, that kind of thing.
I read an article some time ago that argued phones are the worst tools for our hands. While everything else is designed to use the entire hand or at least a few fingers while providing subtle feedback on every action that requires us to exercise multiple muscles to control properly, the phone only requires your thumb.
comment 4y ago · link · parent
> Windows is hurting as a retail business.
> License costs have been driven down by Chromebooks and resurgent Macs
> That leaves Azure and Office as the big cash cows.
Where are you pulling all this data from? And I don't mean coarse data from various articles, anectodal evidence or personal observations, I mean actual evidence that microsoft's revenue share is dominated by office and azure? Microsoft sells a lot of stuff to a lot of entities, I'm not convinced you can sum up their revenue so neatly without opening their books.
comment 4y ago · link · parent
Also, if the host opened the door with the prize, what would happen then?
comment 4y ago · link · parent