mastodontech.de ist einer von vielen unabhängigen Mastodon-Servern, mit dem du dich im Fediverse beteiligen kannst.
Offen für alle (über 16) und bereitgestellt von Markus'Blog

Serverstatistik:

1,5 Tsd.
aktive Profile

#hooks

0 Beiträge0 Beteiligte0 Beiträge heute

Getting #Claude Code to do Exactly What You Ask : #Hooks

Claude #Code’s “hooks” feature provides developers with precise control over coding tasks, allowing automation, rule enforcement, and error minimization.

Hooks act as predefined rules or guardrails, making sure code adheres to specific standards like naming conventions, architectural guidelines, and testing protocols.

geeky-gadgets.com/flawless-ai-

Geeky Gadgets · Getting Claude Code to do Exactly What You Ask : HooksLearn how to use hooks in Claude Code to streamline workflows, reduce errors, and enforce coding standards effortlessly. Claude Code hooks is

React-like functional webcomponents, but with vanilla HTML, JS and CSS

Introducing Dim – a new #Framework that brings #ReactJS-like functional #JSX-syntax with #VanillaJS. Check it out here:
🔗 Project: github.com/positive-intentions
🔗 Website: dim.positive-intentions.com

My journey with #WebComponents started with Lit, and while I appreciated its native browser support (less #Tooling!), coming from #ReactJS, the class components felt like a step backward. The #FunctionalProgramming approach in React significantly improved my #DeveloperExperience and debugging flow.

So, I set out to build a thin, functional wrapper around #Lit, and Dim is the result! It's a #ProofOfConcept right now, with "main" #Hooks similar to React, plus some custom ones like useStore for #EncryptionAtRest. (Note: #StateManagement for encryption-at-rest is still unstable and currently uses a hardcoded password while I explore #Passwordless options like #WebAuthn/#Passkeys).

You can dive deeper into the #Documentation and see how it works here:
📚 Dim Docs: positive-intentions.com/docs/c

This #OpenSource project is still in its early stages and very #Unstable, so expect #BreakingChanges. I've already received valuable #Feedback on some functions regarding #Security, and I'm actively investigating those. I'm genuinely open to all feedback as I continue to develop it!

GitHubGitHub - positive-intentions/dimContribute to positive-intentions/dim development by creating an account on GitHub.
Fortgeführter Thread

oh wait, you know #hooks can be conditional - please go learn the rules of #leakyabstractions, I mean rules of hooks

oh wait, you can't import that third party library because they didn't add '#useclient' to the top of any of their files so now you have to wrap them all with your own 'use client' components to use them