[-] Kissaki@programming.dev 10 points 1 week ago

After we disclosed PHP2Shell, we realized many people didn't know what PHP was. So we decided to go after something a little more familiar: Java.

haha

[-] Kissaki@programming.dev 10 points 3 months ago

“I think Nvidia is very much a community,

🤨

[-] Kissaki@programming.dev 10 points 4 months ago

Granular repository watch settings

Ooh, very nice. Watching for release notifications is something I use excessively on GitHub. Looking forward to being able to use that on Codeberg.

[-] Kissaki@programming.dev 9 points 5 months ago

The first version included a 'Fuck you' but they edited it away.

[-] Kissaki@programming.dev 10 points 1 year ago* (last edited 1 year ago)

GodotCon Boston 2025 by Godot Engine video playlist items with direct links:


Created through… (JS Snippet)

Array.from(document.querySelectorAll('#video-title')).map(x => `* [${x.innerText.replace(/ – GodotCon 2025$/, '')}](${x.href})`).join("\n")

(I had to manually remove some timestamp parameters because I had watched them previously)

Feel free to copy into post description (via comment source).

[-] Kissaki@programming.dev 9 points 1 year ago

Enable squash commits. Each PR should be squashed to a single commit. This makes the master branch linear and simple. This ensures each individual commit on master has been reviewed and is in a working state.

In non-minimal changesets, I would miss information/documentation about individual logical changes that make up the changeset. Commit separation that is useful for review will also be useful for history.

I prefer a deliberate, rebase- and rewrite-heavy workflow with a semi-linear history. The linear history remains readable, while allowing sum-of-parts changesets/merges.

It's an investment, but I think it guides into good structuring and thoughts, and whenever you look at history, you have more than a squashed potential mess.

Squash-on-merge is simpler to implement and justify, of course. Certainly much better than "never rebase, never rewrite, always merge", which I am baffled some teams have no problem doing. The history tree quickly becomes unreadable.

[-] Kissaki@programming.dev 10 points 1 year ago

For comparison, "amazing" occurs six times.

[-] Kissaki@programming.dev 10 points 2 years ago

It's in a process of development and testing in Europe as an official currency/payment technology.

taler.net has a post about that - NGI Taler - too.

We may be seeing much more concrete news and use in and from two years from now.

[-] Kissaki@programming.dev 10 points 2 years ago

learned from 10 years/millions of users in production

10 years per millions of users is an interesting metric :P

90
submitted 2 years ago* (last edited 2 years ago) by Kissaki@programming.dev to c/programming@programming.dev

Today, we’re thrilled to announce Deno 2, which includes:

  • Backwards compatibility with Node.js and npm, allowing you to run existing Node applications seamlessly
  • Native support for package.json and node_modules
  • Package management with new deno install, deno add, and deno remove commands
  • A stabilized standard library
  • Support for private npm registries
  • Workspaces and monorepo support
  • Long Term Support (LTS) releases
  • JSR: a modern registry for sharing JavaScript libraries across runtimes

We are also continually improving many existing Deno features:

  • deno fmt can now format HTML, CSS, and YAML
  • deno lint now has Node specific rules and quick fixes
  • deno test now supports running tests written using node:test
  • deno task can now run package.json scripts
  • deno doc’s HTML output has improved design and better search
  • deno compile now supports code signing and icons on Windows
  • deno serve can run HTTP servers across multiple cores, in parallel
  • deno init can scaffold now scaffold libraries or servers
  • deno jupyter now supports outputting images, graphs, and HTML
  • deno bench supports critical sections for more precise measurements
  • deno coverage can now output reports in HTML

Deno is a single binary for the TypeScript and JavaScript ecosystems. Deno is secure by default (installing npm libs do not automatically have full system perms/access).

The new standard library stabilizes a vetted collection of safe binaries instead of having to search for and install random libraries for basic or common use cases with [or without] own security assessments.

Deno compile compiles the TS/JS project into a single binary.

The backwards compatibility to npm and npm/js frameworks enables deno usage in existing projects and with existing libs with the benefits of deno and a path to incremental migration.

The announcement video is worth watching. The intro is great.

193
submitted 2 years ago* (last edited 2 years ago) by Kissaki@programming.dev to c/programming@programming.dev

Every second Tuesday of October Ada Lovelace Day is celebrated - to commemorate the famous English mathematician of the XIX century, and the first programmer in history.

To mark this occasion, we rounded up a party of games that are not only fun to play, but can teach you to think like a true engineer and feel like a tech wizard!

Welcome to Ada Lovelace Day Sale. Hello, world!

ends 14th (tomorrow)

14
[-] Kissaki@programming.dev 9 points 2 years ago* (last edited 2 years 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,
};
11

A very long, verbose article with many area topics.

7
329

researchers conducted experimental surveys with more than 1,000 adults in the U.S. to evaluate the relationship between AI disclosure and consumer behavior

The findings consistently showed products described as using artificial intelligence were less popular

“When AI is mentioned, it tends to lower emotional trust, which in turn decreases purchase intentions,”

29
-16
1
11
submitted 2 years ago* (last edited 2 years ago) by Kissaki@programming.dev to c/dotnet@programming.dev

Some of the changes:

  • System.Text.Json now provides the JsonSchemaExporter type, which supports generating a JSON schema that represents a .NET type.
  • System.Text.Json: The JsonObject type now exposes ordered-dictionary-like APIs that enables explicit property order manipulation
  • [GeneratedRegex] on properties
  • The Regex class provides a Split method, similar in concept to the String.Split method. With String.Split, you supply one or more char or string separators, and the implementation splits the input text on those separators.
  • Generic OrderedDictionary<TKey, TValue>
  • ReadOnlySet<T>
  • new Base64Url class
  • System.Diagnostics.Metrics now provides the Gauge instrument
  • NuGetAudit now raises warnings for vulnerabilities in transitive dependencies
  • dotnet nuget why
  • MSBuild BuildChecks
  • C#: Partial properties
  • ASP.NET Core: Fingerprinting of static web assets
12

That intro though.

33
[-] Kissaki@programming.dev 10 points 2 years ago

A patch from January and MFA prevents account takeover.

If you're not updating gitlab for over three months, across max severity security patches, you're negligent.

[-] Kissaki@programming.dev 10 points 2 years ago

Personally, I like to call catched exception variables up, so for a rethrow I can throw up;.

view more: ‹ prev next ›

Kissaki

0 post score
0 comment score
joined 3 years ago
MODERATOR OF