eupolicy.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
This Mastodon server is a friendly and respectful discussion space for people working in areas related to EU policy. When you request to create an account, please tell us something about you.

Server stats:

240
active users

#dev

14 posts13 participants0 posts today

There are a number of useful little functions in node:util besides util.inspect() that I’m only just familiarising myself with after admittedly rolling my own versions for a number of them. Hmm, should’ve read through this documentation page more carefully sooner.

e.g., util.deprecate(), util.diff(), util.debugLog(), util.isDeepStrictEqual(), etc.

New Kitten release

• Fixes #236¹: The data preview pages in Kitten’s settings how handle circular references in the deserialised data (which may contain your custom classes if that’s what you were persisting in the database).

kitten.small-web.org

:kitten:💕

PS. Those pages are very rudimentary at the moment and are good for getting quick visual overview of the data you’re persisting. For a fully interactive view, use Kitten’s interactive shell (REPL)² to explore your data until I’ve had a chance to implement a more comprehensive visual interface.

PPS. You persist data in Kitten using the built-in JavaScript Database (JSDB)³ (Or, of course, you can install and use any other database.)

¹ codeberg.org/kitten/app/issues
² kitten.small-web.org/reference
³ codeberg.org/small-tech/jsdb#j

The usual end-of-something/something-is-doomed article on Medium.
I wonder why a lot of people insist in considering dead some technologies which are calmly and peacefully around since ages and with no intention to die, thanks to a reasonably percentage of devs and users that depend on them happily.
I have a couple of suspects, but for the usual click-bait strategy. Promoting new stuff at all costs is one of them. #dev #foss #fomo

medium.com/@devlink/the-end-of

Medium · The end of Docker? The Reasons Behind Developers Changing Their RuntimesBy Devlink Tips

“On a décidé de le faire en interne pour économiser.”
Dans 90% des cas, cette mauvaise décision te fait perdre de l’argent :

Quand tu es en entreprise et que tu veux répondre à un besoin, tu as deux choix.

👉🏻 Le faire toi-même (investissement en temps)
👉🏻 L’externaliser (investissement en argent)

Quand tu as un service IT, tu es tenté de tout faire par toi-même.
Tu as besoin d’un outil → tes développeurs vont le créer.

#startup #industrialisation #dev

1/5

Mulla on nyt itsetehty markdown-editori johon lisään erillisiin kenttiin frontmatterit ja päivämäärä tulee automaagisesti jne. MD tiedostopäätteinen filu ladataan tallettaessa sitten blogitekstien kansioon ja Astro tekee sille sitten taikoja.

Onko jotain muitakin MD-editoreita jotka handlaisivat frontmatterin tai voisi tehdä jonkun templaten jolla voisi tehdä saman. Editorini on hyvä, mutta lisätietämys aiheesta olisi rok.

New Kitten release

• Fix: messages that are promises are properly awaited before being sent.

kitten.small-web.org

Kitten automatically and transparently handles asynchronous content in your templates for you so you don’t have to worry about it. One place where this wasn’t working properly is if you addressed `this.component` to stream a custom update of your component manually instead of calling the `this.update()` method of Kitten component instances.

e.g.,

```js
export default class AdminPage extends kitten.Page {
// …
onSelectedPost (data) {
this.send(kitten.html`<${this.component} postId='${data.selectedPost.postId}' />`)
}
}
```

:kitten:💕

I'm not someone to point fingers and blame developers for mistakes they made, but if I run into incomprehensible code and the author says "I dunno what the code does; I just asked #chatGPT to generats it", I'm gonna be pointing lots of fingers. Six on each hand at least. #ai #dev

“slopsquatting, a new term for a surprisingly effective type of software supply chain attack that emerges when LLMs “hallucinate” package names that don’t actually exist. If you’ve ever seen an AI recommend a package and thought, “Wait, is that real?”—you’ve already encountered the foundation of the problem.

And now attackers are catching on.”

The Rise of Slopsquatting: How #AI Hallucinations Are Fueling... socket.dev/blog/slopsquatting- #npm #dev #infosec

Edit: more info: bleepingcomputer.com/news/secu

SocketThe Rise of Slopsquatting: How AI Hallucinations Are Fueling...Slopsquatting is a new supply chain threat where AI-assisted code generators recommend hallucinated packages that attackers register and weaponize.
Oh, your service logged me out for my security? Great, I'll just open up the vault that contains my private keys so that I can open up the password manager with the master password of my other vault, which has the credentials I'll use to log back into my account. And then to finish the login process you'll send me a one-time password in clear text through SMS or email because those are the only options you offer for a "second factor". I feel much more secure now thank you.

(For clarity this is a sardonic post).

#InfoSec #cybersecurity #security #web #dev #tech

New Kitten feature: Icons!

You can now make use of a subset of the icons in the Phosphor icons set by @minoraxis and @rektdeckard.

kitten.small-web.org/reference

Search through them in your editor by referencing `kitten.icons.categories` and `kitten.icons.tags`.

Add this to a file called index.page.js and run `kitten` to see a large duotone pink cat (because why not?):

export default function () {
return kitten.html`
<${kitten.icons.c.Cat}
size=40%
weight=duotone
colour=deeppink
/>
`
}

(And yes, the set includes icons for the fediverse. This one of the reasons I chose it.) ;)

Enjoy!

:kitten:💕

How to simplify integration testing in C# in 2025 ?

Integration tests are usually seen as slow, fragile or cumbersome. In today's article I present 2 techniques that will mitigate these drawbacks : snapshot testing and containers. I will describe each of them along with tools that can be used in C# and of course a sample project to illustrate my points.

guillaume.techene.net/2025/04/

A Method to Madness · How to simplify integration testing in C# in 2025 - A Method to MadnessThrough this article, I will have a look at 2 specific tools that definitely help simplify integration testing in C# in 2025.

Coming tomorrow to Kitten… Kitten icons!

Kitten will have built-in support for the Phosphor icons set with full authoring-time language intelligence where you can search for icons via category and tag (in addition to the canonical alphabetical categorisation).

Thought this was going to take me a few hours but it took a few days thanks to running into issues with size limits, type inference from JavaScript types in modules, etc., with the TypeScript language server but I believe I’ve finally cracked it :)

:kitten: 💕