Cédric Belin

@cedx
70 Followers
146 Following
493 Posts
Yet another full stack developer, addicted to .NET/C#/PowerShell, but also to JavaScript/TypeScript, Haxe and PHP.
GitHubhttps://github.com/cedx
LinkedInhttps://linkedin.com/in/cedxbelin

Need to process data in batches?

Forget the complex math. Use .Chunk() in LINQ:
1) Takes an IEnumerable
2) Splits it into fixed-size arrays
3) No external libraries needed

#dotnet #codingtips

#PowerShell Announcing PowerShell 7.6 (LTS) GA Release http://dlvr.it/TRZGqx

Realising that most of my fears about LLM-based AI services can be summed up thus:

The mega corps want to create Knowledge-as-a-Service.

They made your TV a subscription.

They made your music a subscription.

They made your books a subscription.

They made your car a subscription.

Now they want you to become dependent on them for knowledge for a monthly fee.

A themeable, accessible component library inspired by the Warcraft III interface.
https://wc3ui.banteg.xyz
Warcraft III — UI Component Library

It's a shame Safari and iOS don't support the "is" attribute. It's so useful for turning a table row (i.e. "<tr>") into a web component.

https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes/is

#WebDev #JavaScript #HTML #Apple

HTML is global attribute - HTML | MDN

The is global attribute allows you to specify that a standard HTML element should behave like a defined customized built-in element (see Using custom elements for more details).

MDN Web Docs

What a strange time. I just read this sentence in an article about an HTTP client:

"Lightweight : Just 157~ KB in size"

Sorry but 157 KB is NOT lightweight. Especially for an alternative to "fetch".

#WebDev #JavaScript #TypeScript

FrankenPHP elePHPants are now available worldwide 🧟‍♂️ Get yours before they sell out! Expect your order to ship in March.

🐘 https://lemonstre.frankenphp.dev/

Marre des traductions par IA de Microsoft : c'est une catastrophe.

Je ne compte plus le nombre de fois où un libellé n'a plus aucun sens dans leurs logiciels ou leur documentation.

Exemple parmi tant d'autres... (J'ai en un rayon !)

Chrome : "Désactiver les traces de pile asynchrones"
(OK, je comprends ce que ça veut dire)

Edge : "Désactiver les arborescences des appels de procédure"
(Plus aucun rapport avec le code asynchrone !!!)

#WebDev #Programming #Microsoft #Translation

Relative dates are terrible: they don't help anyone determine the exact day and time of an operation.

Please stop using relative dates.

#WebDev #Programming

LLMs are so bad for coding.

Copilot: `NullabilityInfoContext` is thread‑safe. [...] The internal cache is thread‑safe.

The .NET documentation: This type is not thread safe. [...] methods can't be called concurrently from multiple threads, as they use a non-concurrent cache internally.

(My code confirms that `NullabilityInfoContext` is NOT thread‑safe)

#CSharp #AI #LLM #Copilot #Programming #VibeCoding