Skip Navigation
New Superhero
  • testing oneself with fun hypotheticals

    fun

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

    edit

    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 😅

  • TIFU by not using objects in my object-oriented programming coursework
  • 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

  • TIFU by not using objects in my object-oriented programming coursework
  • 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.

  • TIFU by not using objects in my object-oriented programming coursework
  • 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):

    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.

  • Someone's gettin fired
  • 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.

  • Very normal
  • I would argue that you mentioned events that were rare and much prepared (also omit failed attempts), while what is required for any resource extraction must be mass-available. On the other hand, I don't think any space resource mining will be reasonable, as I expect it to require more resources than provide.

  • Rorschach rule
  • They can also use vague AI-generated 'meme' and ask what memes do you see. But they will need to use older and dumber models, current ones make stuff too specific.

    What I mean is something like this: chat-gpt generated art from when it didn't use dedicated image model for that

  • A Boring Dystopia @lemm.ee lad @programming.dev
    www.bbc.com 'Russia now is like 1984': Inside a Russian dystopian library

    Deep in Putin's Russia, Ivanovo's George Orwell library is still lending books on totalitarianism.

    'Russia now is like 1984': Inside a Russian dystopian library

    Dystopia in the books has stark contrasts, great oppression, heroic moves. A boring real-life dystopia seems to mainly consist of tired people trying to cope with life while half-believing the propaganda and not upsetting themselves too much on one side, and equally tired people doing their best to rebel however they can on the other.

    > If the billboards in Ivanovo are to be believed, Russia’s really going places. > > “Record harvest!” > > “More than 2000km of roads repaired in Ivanovo Region!” > > “Change for the Better!” > > In this town, a four-hour drive from Moscow, a giant banner glorifying Russia’s invasion of Ukraine covers the entire wall of an old cinema. With pictures of soldiers and a slogan: > > “To Victory!” > > These posters depict a country marching towards economic and military success. > > But there is one place in Ivanovo that paints a very different picture of today’s Russia. > > I’m standing outside it. There’s a poster here, too. Not of a Russian soldier, but a British novelist. George Orwell’s face stares down at passers-by. > > The sign above it reads The George Orwell Library. George Orwell library in Ivanovno The small library keeps books about totalitarianism and dystopian worlds > > Inside, the tiny library offers a selection of books on dystopian worlds and the dangers of totalitarianism. > > There are multiple copies of Orwell’s classic novel Nineteen Eighty-Four; the story in which Big Brother is always watching and the state has established near-total control over body and mind. > > “The situation now in Russia is similar to Nineteen Eighty-Four,” librarian Alexandra Karaseva tells me. “Total control by the government, the state and the security structures.” > > In Nineteen Eighty-Four, the Party manipulates people’s perception of reality, so that citizens of Oceania believe that "war is peace" and "ignorance is strength". > > Russia today has a similar feel about it. From morning until night, the state media here claims that Russia’s war in Ukraine is not an invasion, but a defensive operation; that Russian soldiers are not occupiers, but liberators; that the West is waging war on Russia, when, in reality, it was the Kremlin that ordered the full-scale invasion of Ukraine. > > “I’ve met people who are hooked on TV and believe that Russia isn’t at war with Ukraine, and that the West was always out to destroy Russia,” Alexandra says. > > “That’s like Nineteen Eighty-Four. But it’s also like Ray Bradbury’s novel Fahrenheit 451. In that story the hero’s wife is surrounded by walls that are essentially TV screens, talking heads telling her what to do and how to interpret the world.” > > Alexandra Karaseva thinks Orwell's novel is now the reality in Russia > > It was a local businessman, Dmitry Silin, who opened the library two years ago. > > A vocal critic of the Russian invasion of Ukraine, he wanted to create a space where Russians could “think for themselves, instead of watching TV”. > > Dmitry was later prosecuted for “discrediting the Russian armed forces”. He’d been accused of scrawling “No to war!” on a building. He denied the charge. He has since fled Russia and is wanted by police. > > Alexandra Karaseva gives me a tour of the library. It’s a treasure trove of literary titans from Franz Kafka to Fyodor Dostoevsky. There is non-fiction, too; histories of the Russian Revolution, of Stalin’s repressions, the fall of communism and of modern Russia’s failed attempts to build democracy. > > The books you can borrow here are not banned in Russia. But the subject matter is very sensitive. Any honest discussion of Russia’s past or present can bring problems. > > Although not banned, the contents of the books at the library can bring problems > > Alexandra believes in the power of the written word to bring change. That’s why she is determined the library stays open. > > “These books show our readers that the power of autocratic regimes is not forever,” Alexander explains. “That every system has its weak points and that everyone who understands the situation around them can preserve their freedom. Freedom of the brain can give freedom of life and of country.” > > “Most of my generation had no experience of grassroots democracy,” recalls Alexandra, who is 68. “We helped destroy the Soviet Union but failed to build democracy. We didn’t have the experience to know when to stand firm and say ‘You mustn’t do this.’ Perhaps if my generation had read Ninety Eighty-Four, it would have acted differently.” > > Eighteen-year-old Dmitry Shestopalov has read Ninety Eighty-Four. Now he volunteers at the library. > > “This place is sacrosanct,” Dmitry tells me. “For creative young people it’s a place they can come to find like-minded citizens and to get away from what’s happening in our country. It’s a little island of freedom in an unfree environment.” > > As islands go, it is, indeed, little. Alexandra Karaseva is the first to admit that the library has few visitors. > > By contrast, I find a large crowd in the centre of Ivanovo. It’s not Big Brother people have stopped to listen to. It’s a Big Band. > > In bright sunshine an orchestra is playing classic Soviet melodies and people start dancing to the music. Chatting to the crowd I realise that some Russians are more than willing to believe what the billboards are telling them, that Russia’s on the up. > > “I’m happy with the direction Russia’s heading in,” pensioner Vladimir tells me. “We’re becoming more independent. Less reliant on the West.” > > “We’re making progress,” says a young woman called Natalya. “As Vladimir Putin has said, a new stage for Russia has begun.” > > But what about Russia’s war in Ukraine? > > “I try not to watch anything about that any more,” Nina tells me. “It’s too upsetting.” > > Back at the George Orwell Library they’re holding an event. A local psychologist is finishing a lecture on how to overcome "learned helplessness" and believe you have the power to change your life. There are ten people in the audience. > > Pro-invasion propaganda is a fact of daily life in Russia now > > When the lecture ends, librarian Alexandra Karaseva breaks the news. > > “The building’s been put up for sale. Our library has to move out. We need to decide what to do. Where do we go from here?” > > The library’s been offered smaller premises across town. > > Almost immediately one woman offers her van to help with the move. Another member of the audience says she’ll donate a video projector to help the library. Others suggest ideas for raising money. > > This is civil society in action. Citizens coming together in time of need. > > Admittedly, the scale is tiny. And there’s no guarantee of success. In a society with less and less space for “little islands of freedom,” the library’s long-term future is uncertain. > > But they’re not giving up. Not yet.

    1
    Placebo Méme Forte, now twice as efficient

    Image with a text, an image is of a blue top, white bottom pill laying on a red background.

    The top text reads: "This is a placebo meme".

    The bottom text is: "Studies show placebo Memes are still reacted to even when users know they are a placebo"

    13
    me_irl @lemmy.ml lad @programming.dev
    me irl every time
    38
    Space after `:::` in spoiler

    It seems that the web UI treats spoilers without a space after ::: the same as the regular ones, while Thunder ignores those as spoilers. It looks like the closing spoiler marker may be entered without whitespace but it consumes extra text after the spoiler, and overall acts weird

    I can create an issue if that's needed, or this post may be referenced in an existing issue to be used as a test

    ```

    no whitespace

    Content

    whitespace present

    Content

    one-liner no whitespace

    Content:::

    one-liner whitespace present

    Content:::

    Extra text in the end

    one-liner whitespace present

    Content

    Second extra text ```

    produces

    no whitespace

    Content

    whitespace present

    Content

    one-liner no whitespace

    Content:::

    one-liner whitespace present

    Content:::

    Extra text in the end

    one-liner whitespace present

    Content

    Second extra text

    5
    Red Bean is contributing to New Year air

    It's going to be her first New Year 😅

    We don't erect a new year tree but there was a storm that broke lots of branches off trees, so we used one of those to create a holiday air

    0
    Icons near username in comments

    I can't seem to find a definition for different kinds of icons Sync uses for special users, e.g. I know how OP and my account are denoted, I have seen bot accounts marked, also I guess that I have seen a mark where a user blocked me.

    Is there a place where I can check what each pictogram means and what are the possible ones?

    5
    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/)SU
    lad @programming.dev

    Rust dev, I enjoy reading and playing games, I also usually like to spend time with friends.

    You can reach me on mastodon @sukhmel@mastodon.online or telegram @sukhmel@tg

    Posts 6
    Comments 1.8K