Skip Navigation

InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)L
Posts
0
Comments
656
Joined
3 yr. ago

  • This is the ideal rendition, I would say. On a related note, I just love it when there are backspaces in my filenames

  • There are many regexes that validate email, and they usually aren't compliant with the RFC, there are some details in the very old answer on SO. So, better not validate and just send a confirmation, than restrict and lock people out, imo

  • That's true, there's even a party game that consists solely of controversial topics to talk about, not even this kind of weird ones

  • Also a spin-off where Trolley Man cures incurable patients one by one using sacrifices of 5

  • Living with knowing you did nothing to save 4 people may affect you as badly. To be fair, the person doing the choice is fucked up both ways, if ey is not a sociopath.

  • testing oneself with fun hypotheticals

    fun

    you've got a peculiar taste for fun, I must admit

    to be fair, I don't disagree, and discussing things like that or pondering them can be fun, but I still wouldn't expect such a choice of words 😅

  • I kinda think it's more to create contrast than to signify eating innocence

  • True hero's move, really, retire and let others become heroes (half /s)

  • and which of these two you are going to get paid more for

    neither :(

  • It looks like exactly 4 characters are missing, so public and static would fit, but I never saw static instead of public static, so I think you're right. On the other hand, I don't use Java anymore and couldn't be bothered about such details

  • Depends on what was the course about. If it's about computation, then sure. If it's about OOP or architecture design (this one I wouldn't expect, unfortunately, but would be nice if it was taught somewhere), then the point is not just to run something.

  • I mostly come to prefer composition, this approach apparently even has a wiki page. But that's in part because I use Rust that forbids inheritance, and don't have such bullshit (from delegation wiki page):

     java
        
    class A {
        void foo() {
            // "this" also known under the names "current", "me" and "self" in other languages
            this.bar();
        }
    
        void bar() {
            print("a.bar");
        }
    }
    
    class B {
        private delegate A a; // delegation link
    
        public B(A a) {
            this.a = a;
        }
    
        void foo() {
            a.foo(); // call foo() on the a-instance
        }
    
        void bar() {
            print("b.bar");
        }
    }
    
    a = new A();
    b = new B(a); // establish delegation between two objects
    
      

    Calling b.foo() will result in b.bar being printed, since this refers to the original receiver object, b, within the context of a. The resulting ambiguity of this is referred to as object schizophrenia

    Translating the implicit this into an explicit parameter, the call (in B, with a a delegate) a.foo() translates to A.foo(b), using the type of a for method resolution, but the delegating object b for the this argument.

    Why would one substitute b as this when called from b.a is beyond me, seriously.

  • Even if it is not their fault, what people see is that they provide bad quality service. Very low percentage ofthem will care to read details when Netflix publishes a post-mortem of an issue, assuming they even do.

  • I feel like 'a half is one-third more than a third' is ambiguous and same as in 'X is N% more than Y' one may use X or Y as 100%

    I'm sure that one interpretation is more common, but I don't think that it is exclusively correct

  • I thought Zaktor wrote "I voted for Harris" how's that "held back eir vote"?

  • But honestly, I admire the fact that you care about grammar, spelling, and such. This seems not very rare on Lemmy, but is otherwise a rare sight

  • Got it. I agree that their drivers are (were?) of exemplary bad quality

    But I don't think that it is realistically possible to drop all the proprietary firmware blobs, and if it's not maybe it's better to not actively sabotage something to 'avoid those being feasible'?

  • Early returns improve readability in that they make it simpler to read, but I also find them decreasing readability in that you may miss an early return and wonder why is execution not hitting the line you expect it to

  • If I understand correctly, each data-access structure represents single workflow, and you may have Transaction in that structure without the need for Arc<Mutex<…>> inside, but maybe you will need to wrap the structure itself with that.