Kissaki

joined 1 year ago
[–] Kissaki@programming.dev 1 points 1 month ago* (last edited 1 month ago) (2 children)

Looking at the Web Archive; Diatraxis has been around since 2021. That divio docs since May of this year.

I doubt they didn't "get inspiration" from Diatraxis.

[–] Kissaki@programming.dev 1 points 1 month ago* (last edited 1 month ago)

It's certainly something that looks better, but contrary to green washing, I see real, practical value.

I would rather be able to see and inspect source code than not. And I would rather have the right to take and fork a two year old version than not. Or be able to wait two years to fork the current version.

Those are real good value. Those bring certainty in infrastructure robustness and freedoms.

[–] Kissaki@programming.dev 2 points 1 month ago (4 children)

You posted the article link in the post content instead of linking it in the post. Was that deliberate?

You can still edit the post and set the link. (Then people can open it from the post title.)

[–] Kissaki@programming.dev 2 points 1 month ago

The conversion is part of the license. It does not require the company to take any action.

The source is available with a restricted license, and e.g. two years later it relicenses itself to a FOSS license, automatically, as defined by the original license.

[–] Kissaki@programming.dev 2 points 1 month ago

You are going to get lots of downvotes, and this comment will too.

👀

[–] Kissaki@programming.dev 6 points 1 month ago

Hahahahahahahahahahaha

(Pause for breath)

Hahahahahahahahahahaha

Was that tone really necessary? I would have liked your comment more without this part.

[–] Kissaki@programming.dev 3 points 1 month ago* (last edited 1 month ago)

I've not seen those kinds of issues. Apart from some dedicated pseudo-/farm-projects.

But still, it has entirely lost its appeal or even viability to me.

I participated many years, until - I presume - it got too big. I was not able to find good projects, the contributions I made most of the time were not reviewed nor labeled hacktoberfest-accepted. An an extrinsic motivator, it became more frustrating than motivating.

[–] Kissaki@programming.dev 4 points 1 month ago* (last edited 1 month ago) (5 children)

It baffles me when people use flex layout when it's clearly visually a grid layout. Nothing here is flexing with varying element sizes and auto-fill-wrap-break of items.

A colleague of mine prefers flex too. But to me, grid is so much more intuitive and simple.

https://css-tricks.com/quick-whats-the-difference-between-flexbox-and-grid/

[–] Kissaki@programming.dev 9 points 1 month ago* (last edited 1 month ago)

Using early returns and ternary conditional operator changes

private boolean meetsRiderPreferences(Rider rider, Driver driver) {
    if (driver.rating >= 4.5) {
        if (rider.preferences.includes('Premium Driver')) {
              return driver.isPremiumDriver;
        } else {
              return true;
        }
    } else if (driver.rating >= 4.0) {
        return true;
    } else {
        return false;
    }
}

to

private boolean meetsRiderPreferences(Rider rider, Driver driver) {
    if (driver.rating < 4.0) return false;
    if (driver.rating < 4.5) return true;

    return rider.preferences.includes('Premium Driver') ? driver.isPremiumDriver : true;
}

dunno if java has them, but in C# switch expressions could put more of a case focus on the cases

private boolean meetsRiderPreferences(Rider rider, Driver driver) {
    return driver.rating switch {
        < 4.0 => false,
        < 4.5 => true,
        _      => rider.preferences.includes('Premium Driver') ? driver.isPremiumDriver : true,
    };
}

or with a body expression

private boolean meetsRiderPreferences(Rider rider, Driver driver) => driver.rating switch {
    < 4.0 => false,
    < 4.5 => true,
    _      => rider.preferences.includes('Premium Driver') ? driver.isPremiumDriver : true,
};

The conditional has a true result so it can be converted to a simple bool condition as well.

private boolean meetsRiderPreferences(Rider rider, Driver driver) => driver.rating switch {
    < 4.0 => false,
    < 4.5 => true,
    _      => !rider.preferences.includes('Premium Driver') || driver.isPremiumDriver,
};
[–] Kissaki@programming.dev 1 points 1 month ago

For me that's the wrong way around.

I want to be able to fix the issues I see. I hate it when I can't.

[–] Kissaki@programming.dev 1 points 1 month ago* (last edited 1 month ago)

I'm thankful I am full stack and can do my stuff across borders. I hate the interfaces, waiting for stuff, or being hindered by dissatisfactory (to me anyway) stuff from them. So I'm glad when I have control over the entire stack - from talking to the customer to running production.

Anything I don't have control over - most if it doesn't get done, the rest can be okay or bothersome.

I hate that I don't see what the admin set up and does on the infrastructure. It makes it harder to assess issues and potential issues and how they could correlate with infrastructure changes and activities..

[–] Kissaki@programming.dev 1 points 1 month ago

so you put up a front?

view more: ‹ prev next ›