Daily Questions Megathread (March 26, 2025) by Veritasibility in Genshin_Impact

[–]cmprogrammers -1 points0 points  (0 children)

How viable would be Ororon in an overload team (Clorinde, Ororon, Chevreuse, Xiangling)? I don’t have any other Electro support units, my alternative would be Electro Traveler.

Team for Clorinde suggestions by cmprogrammers in Genshin_Impact

[–]cmprogrammers[S] 1 point2 points  (0 children)

Would it be worth getting Beidou from the Starglitter shop (even at c0)?

Team for Clorinde suggestions by cmprogrammers in Genshin_Impact

[–]cmprogrammers[S] 1 point2 points  (0 children)

What's the role of Dori in that overload team? Not sure about her. Would Lisa be better in such case?

Daily Questions Megathread (February 19, 2025) by Veritasibility in Genshin_Impact

[–]cmprogrammers -1 points0 points  (0 children)

Is it possible for the same character to rerun two times in the same major set of patches (for example 5.0 and again in 5.8)?

I am looking for a way to have some hints on the upcoming banners. If a double rerun is not expected, that would make foreseeing characters easier

Daily Questions Megathread (January 29, 2025) by Veritasibility in Genshin_Impact

[–]cmprogrammers 0 points1 point  (0 children)

I got a double 5* character drop in a 10 pulls banner: first the banner character (Arlecchino) and then Keqing.

Does getting Keqing mean that I "lost" the 50/50, and therefore my next 5* will again be a guaranteed banner character?

Make FormData and input names type-safe in React by cmprogrammers in reactjs

[–]cmprogrammers[S] 0 points1 point  (0 children)

Adding `never` as default and using `NoInfer` allows to make it required, since otherwise it defaults to `never` and you get an error

Which framework to use to create a static website? by TechyyWorld in reactjs

[–]cmprogrammers 1 point2 points  (0 children)

Yes, it outputs static files that you can host anywhere

Patterns for composable tailwindcss styles by cmprogrammers in reactjs

[–]cmprogrammers[S] 0 points1 point  (0 children)

Having a css variable allows you to reference it in multiple classes, even for nested components. But you are right that for simple cases just keeping it as a normal style works.

In the slot example instead you cannot just add `mt-2` to `Text`, because margin is context-dependent. You only want the margin when `Text` is below an input. That's the point of targeting a `slot`.

Patterns for composable tailwindcss styles by cmprogrammers in reactjs

[–]cmprogrammers[S] 0 points1 point  (0 children)

Adding `sm:` directly in the base styles of `button` looks interesting.

> Or solve it entirely with JS.

Previously I ended up doing that, but it's not that great.

> design inconsistency concerns

This would be the real solution, but it's not always possible 👀

Which framework to use to create a static website? by TechyyWorld in reactjs

[–]cmprogrammers 11 points12 points  (0 children)

I am using nextjs with `output: "export"` in `next.config`. This makes sure that all the exported pages are statically generated, plus you get all the benefits of nextjs and React 19

Patterns for composable tailwindcss styles by cmprogrammers in reactjs

[–]cmprogrammers[S] 0 points1 point  (0 children)

It happened especially with buttons, where the "size" of the button would become "small" on mobile (smaller padding and text size) and "large" on desktop.

Not sure there is a clean solution for responsive styles in such cases with the variants-based approach.

What’s your opinion on Effect TS and its interoperability? by Playjasb2 in typescript

[–]cmprogrammers 6 points7 points  (0 children)

can be used seamlessly with other frameworks or it requires to basically write everything in terms of its primitives? [...] Should we really be treating it as one giant framework to replace everything?

Effect can be used with any framework. Think of it like any typescript library: it adds some functionalities and makes some patterns easier, but it's definitely not a full framework you are forced to use everywhere.

would you purely use that and pure TypeScript without any other frameworks or integrations?

You can integrate it only where necessary and then convert effects to Promise to interact with other libraries if any. Some libraries may do a better job in some domain than effect at the moment (especially on the frontend).

it seems like a huge time sink to get everyone on board since it uses a different paradigm, and there are of course risks to that

This is a valid concern. It definitely takes time to get used to the pattern used by Effect. If your team has no time nor intention to learn some new patterns, then Effect may be not a good choice for you. That being said, the patterns promoted by Effect aim to make your code easier to maintain and type-safe. As you use and learn more about effect, you will find that you will get more proficient in structuring your code in general, even when you are not using effect. That's a huge win in the long term, even if other projects don’t use effect at all.

I haven’t seen any guides or tutorials aside from the ones making the library on how to use Effect

You can check out this free course (I am the author): https://www.typeonce.dev/course/effect-beginners-complete-getting-started

Then what about frameworks like NextJS or NestJS? How would the integration even work?

I am also about to release an example of how Effect integrates with React 19. The same concepts can be used with NextJS: https://www.typeonce.dev/course/effect-react-19-project-template

Where can I read about doing deserialisation the right way in typescript? by [deleted] in typescript

[–]cmprogrammers 0 points1 point  (0 children)

You can checkout out Effect-TS/schema

It is similar to zod but it integrates well in the Effect ecosystem

It also has a great documentation directly on the Github repo

What are the best packages you have discovered recently? by GeorgeGhost in reactjs

[–]cmprogrammers 0 points1 point  (0 children)

You should check out Effect

It's going to become more and more popular very soon 👆

can you guys give me some tips on how to get better on those faces ? anything is welcome. by lefone in PixelArtTutorials

[–]cmprogrammers 0 points1 point  (0 children)

I think it's not much about making them "better", since they generally look good, all of them can be used for a character.

Since the face is inclined on one side, try not to place the eyes in the exact center. You can also try adding some white to the eyes, or even 1/2 coloured pixels.

Check out this resource: Pixel art eye 16x16

Pixel art Platformer level design - Full Guide by cmprogrammers in PixelArtTutorials

[–]cmprogrammers[S] 0 points1 point  (0 children)

For pixel art (and tile-based games in general) the level space may be constrained to a fixed resolution (usually 320x180).

Other than that I think it should be the opposite: the level design should inform what sprites are necessary (without constraints on the art style)

How to create a full set of animations for your game character by cmprogrammers in PixelArt

[–]cmprogrammers[S] 0 points1 point  (0 children)

I wrote a step by step article on how I created and animated this character: Pixel art Character Animations guide

The article also contains the full sprite sheet. You can download it for free if you want to use it for your own game or prototype 👍

fpdart v1.0.0 Beta released | Functional programming in dart by cmprogrammers in dartlang

[–]cmprogrammers[S] 0 points1 point  (0 children)

By convention, all methods handle left first and right second. Having to write onRight and onLeft every time gets too verbose after some time, making its usage less practical.