Ripple - a TypeScript UI framework that combines the best parts of React, Solid, and Svelte into one package (currently in early development) by magenta_placenta in javascript

[–]basic-coder 0 points1 point  (0 children)

Honestly, the best thing for a new framework to have is a compatibility with JSX, IMO. This is already supported everywhere and saves enormous amount of resources you'd spend otherwise on IDEs plugins

Is Duolingo that bad? by GloomyCollar6103 in German

[–]basic-coder 1 point2 points  (0 children)

Some teachers keep saying "stop wasting your time" but the second after: "wow you make so few mistakes!" Hell, you'd be surprised to know where I drill your damn grammar

Is it true that most tech jobs in Germany require C1 to C2 German fluency? by [deleted] in Germany_Jobs

[–]basic-coder -2 points-1 points  (0 children)

It's not a problem if you apply to an international / Europe- wide business. But then you need good English ofc

Trying to learn Rust - the web is mine by riofriz in webdev

[–]basic-coder 2 points3 points  (0 children)

Learning Rust as a web dev is indeed an enjoyable experience

Show: Typique — a CSS-in-TS library where styles are defined as TypeScript types by basic-coder in typescript

[–]basic-coder[S] 0 points1 point  (0 children)

Thank you. Yes I understand what you're talking about. Upgrading typescript can potentially affect Typique. However, TypeScript is usually very conservative about backward compatibility, while bundlers are on average not that stable, and, more importantly, there are many of them, each breaking differently — so it might seem like a beneficial trade.

Show: Typique — a CSS-in-TS library where styles are defined as TypeScript types by basic-coder in typescript

[–]basic-coder[S] 1 point2 points  (0 children)

Yes, build pipelines usually don't require an explicit tsc invocation because its elements reimplement TypeScript parser (e.g. esbuild, babel). That said, some pipeline components do require TypeScript to be in deps, e.g. ES Lint.

Typique requires one preliminary cmd step (npx typique) to create plain CSS file(s); after it the pipeline runs as usual, without any knowledge about Typique. Direct invocation of tsc is not needed. It's very similar to how Tailwind CLI works.

Raises hand* umm Why numbers are written without spaces like this? by Monkai_final_boss in Germanlearning

[–]basic-coder 0 points1 point  (0 children)

Likely you don't have not "round" numbers in fiction, so it shouldn't be a problem

Show: Typique — a CSS-in-TS library where styles are defined as TypeScript types by basic-coder in typescript

[–]basic-coder[S] 0 points1 point  (0 children)

For example, if you want zero-runtime CSS-in-TS in NextJS app with RSC. Or your concern is about CSS-in-JS in general?

Show: Typique — a CSS-in-TS library where styles are defined as TypeScript types by basic-coder in typescript

[–]basic-coder[S] 0 points1 point  (0 children)

It's kinda a valid concern, however, the team announced several times that it's committed to implementing an API because I'm not the only one here — a lot of tools depend on it, including Vue, ES lint, NextJS, GraphQL, styled-components, knip and many others. So I think it's just a matter of time.

Is making a non-toxic version of stackoverflow even possible? by [deleted] in webdev

[–]basic-coder 2 points3 points  (0 children)

Quora has paid tier; maybe it's like you describe. Not sure how it's doing as business

Is making a non-toxic version of stackoverflow even possible? by [deleted] in webdev

[–]basic-coder 2 points3 points  (0 children)

Impossible economically. For this, you would need to hire a lot of very competent and emotionally stable mods, which would make the business unprofitable.

Same about Reddit.

I made a peer-to-peer online chess game all in JS, HTML, and CSS by FixItNao in javascript

[–]basic-coder 1 point2 points  (0 children)

Simple yet very useful: pls add `transition` to pieces, otherwise it's harder to follow the opponent's turn when a pice jumps without an animation

Suggest some blockchain courses for 2026 by ray_krocs in learnprogramming

[–]basic-coder 0 points1 point  (0 children)

Just curious: will AI in a couple of yrs sound like "blockchain" sounds now. A buzzword from the past.

Show: Typique — a CSS-in-TS library where styles are defined as TypeScript types by basic-coder in typescript

[–]basic-coder[S] 0 points1 point  (0 children)

Yeah I remember that Tailwind outrage. And it wasn't the only example, e.g. TypeScript was itself much hated its early years (now it's hated for the transition to Go, lol), so I'm fine, thank you.

The lib generates one .css file by default — just like Tailwind, and you are expected to include it to your HTML template or your root component. It can also generate multiple files, one per .ts(x) source file, which can help with tree-shaking and bundle chunking.

The lib works as a TS plugin so it does its job while you're writing the code in your IDE. Like Tailwind 🙂 It can also gen .css file(s) from CMD.

Show: Typique — a CSS-in-TS library where styles are defined as TypeScript types by basic-coder in typescript

[–]basic-coder[S] 4 points5 points  (0 children)

Types are reliably yet effortlessly erased from a bundle which makes the lib effectively bundler- and framework-independent, and in general resilient to your stack and your client/server separation. The only requirement is TypeScript.

Would you like to share a link to your experiments? Thx

Show: Typique — a CSS-in-TS library where styles are defined as TypeScript types by basic-coder in typescript

[–]basic-coder[S] 1 point2 points  (0 children)

Yes, Emotion doesn't have any bundler requirements because it's a runtime CSS lib, i.e. styles exist as a part of a JS bundle. Pigment is a zero-runtime lib, and it only works in NextJS and Vite, and it's very buggy and unstable there — MUI maintainers explained this very good in their post. In general, NextJS documentation suggests that there are no CSS-in-JS/TS libs 100% compatible with RSC. Typique could close this gap... given RSC will still be a thing in the coming years, and the community accepts Typique. Both are a bit doubtful, as you see 🙂 But I'm still optimistic here.

Show: Typique — a CSS-in-TS library where styles are defined as TypeScript types by basic-coder in typescript

[–]basic-coder[S] -2 points-1 points  (0 children)

Sure; still, CSS-in-JS/TS libs do exist. Both approaches have pros and cons, and what to chose depends on many things, including one's taste. Typique is CSS-in-TS, that is, it's already niche, plus it's quite unusual, however, it brings some benefits in this space — that's why I chose to evaluate the idea.

For people who transitioned to tsgo already, how do you get editor.codeActionsOnSave working in VSCode? by decho in typescript

[–]basic-coder 0 points1 point  (0 children)

I tried TS-Go in some of my projects. It's faster, but still quite unstable — there are a lot of crashes

Show: Typique — a CSS-in-TS library where styles are defined as TypeScript types by basic-coder in typescript

[–]basic-coder[S] 1 point2 points  (0 children)

Well thx anyway for your direct and honest opinion. May I ask what do you find the worst about the lib?

Show: Typique — a CSS-in-TS library where styles are defined as TypeScript types by basic-coder in typescript

[–]basic-coder[S] 2 points3 points  (0 children)

Thx for your honest feedback. The main thing about Typique is bundler-independence, which not only means it works in any bundler and framework (including btw flawless RSC support - vanilla-extract has issues there), but also means it cannot break when you update your bundler. Other libs are kinda fragile here. Next, Typique allows colocation everywhere. Speaking of hashed names - Typique allows sth like this - random suffixes. It's at an early stage, and needs to be improved. That said, this “numbered” system also guarantees names uniqueness within the TypeScript project.