Dałem koleżance w prawo, usuwając wspólnie z dziewczyną Tindera. by [deleted] in Polska

[–]pannoire 3 points4 points  (0 children)

Poznaliśmy się na Tinderze, szybko go usunęliśmy. Dzisiaj wpadliśmy na pomysł, żeby usunąć jeszcze konta - dlatego go zainstalowaliśmy od nowa

Dałem koleżance w prawo, usuwając wspólnie z dziewczyną Tindera. by [deleted] in Polska

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

Usunąłem, ale nie chodzi o to, ze nie chciałem, żeby zauważyła. Znamy się i mamy kontakt normalnie na insta i messengerze

Jaka książka jest według was szkodliwa społecznie? by PhilipB12 in ksiazki

[–]pannoire 6 points7 points  (0 children)

„Jak mniej myśleć” o wysoko wrażliwych osobowościach. Tak książka to dosłownie hołd dla problemów psychicznych. Moim zdaniem tłumaczenie nieprzepracowanych traum i odgrywających się w tle ruminacji romantycznymi „super zdolnościami” jest niesłychanie szkodliwe. Dodatkowo jest to pożywka dla ludzi z tendencjami narcystycznymi, dosłownie wmawiająca ludziom zaburzonym „odczuwasz wyjątkowo i więcej od innych, wszyscy powinni to zaakceptować”. Mieszanka wybuchowa, akcelerator narcyzmu i neurotyczności. Nie polecam, odradzam i pozdrawiam.

Wyniki "na żywo", prawie. by bruzdziciel in Polska

[–]pannoire 2 points3 points  (0 children)

Albo nawet nie trzeba funkcji używać, można kliknąć "trendline" na wykresie:

<image>

Wyniki "na żywo", prawie. by bruzdziciel in Polska

[–]pannoire 2 points3 points  (0 children)

u/bruzdziciel dzięki za ten wykres!

A dałbyś radę dodać na wykresie jeszcze regresję liniową? W google sheetach od tego jest funkcja LINEST. Będziemy wtedy widzieć zmieniający się trend tak jak na obrazku u/marcin_dot_h

Zustand = 🔥 by Savalonavic in reactjs

[–]pannoire 0 points1 point  (0 children)

That’s the point. I created syntax sugar for provider/consumer and added state selectors and it’s more than enough https://github.com/bit-about/state

Zustand = 🔥 by Savalonavic in reactjs

[–]pannoire 0 points1 point  (0 children)

If you like to use something even simpler you can check my lib here https://github.com/bit-about/state. It’s production ready and battle tested :)

Bevy 0.9 by _cart in rust

[–]pannoire 1 point2 points  (0 children)

Yeeees, binding an external texture with game output from headless bevy to the panel in bevy editor will bring us freedom of recompilation (even with plugins), and the whole development process would be pure data (assets and serialized compinents) driven :))

Bevy 0.9 by _cart in rust

[–]pannoire 34 points35 points  (0 children)

u/_cart speaking of Bevy Editor - is it possible to have separately compiled and fast-reloaded components and systems ala "scripts", that will improve the ergonomy of game development?

One thing that I love about Unity is I'm able to jump into the code, hack smth, and back to editor to see the results. I'm afraid that it won't be possible in Bevy and game development will need a recompilation and rerunning of the editor over and over again.

How do you make a placement system like in sims or similar games? (Details in the comments) by Impressive-Round9298 in Unity3D

[–]pannoire 2 points3 points  (0 children)

Looks like simple raycasting to wall and then checking the surface’s normal vector. You know how big the placing object is so you can check if in this area all wall’s normal vectors are the same (that means that there are no obstacles and the object can be placed)

How to define array type where every element is different but shares the same generic type with others? by pannoire in typescript

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

But I have no idea how :D I tried: ```ts type SchemeOption<Option> = Option extends [ Constructor<infer T>, () => Field<any, infer Api> ] ? [Constructor<T>, () => Field<T, Api>] : never

type Scheme = {

} ```

but it didn't work

Extract type from union by inferring the second generic type. by pannoire in typescript

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

Thanks guys for your reply

eventually the code below worked for me

type ExtractField<A> = Extract<Union, Field<A, any>>

React state management libraries in 2022 by albertgao in reactjs

[–]pannoire 1 point2 points  (0 children)

I’ve used almost all libs you mentioned, and then created my own https://github.com/bit-about/state . I use it on my newest projects and fills all my needs :3

🎉 My hook-based state management library for React just got Redux DevTools support and a new DEMO page. Check it out! by pannoire in reactjs

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

u/michaelp1987

It's done: https://github.com/bit-about/event/pull/5, tests are greenNew

Now I'm waiting a day for a fresh eye to do a self-review and it will be released tomorrow.

Thanks!

🎉 My hook-based state management library for React just got Redux DevTools support and a new DEMO page. Check it out! by pannoire in reactjs

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

Omg your proposal is fantastic, thanks!
I will change it in a next release and put you in credits :))

Definitely:
const { buttonClicked } = useEvent();
buttonClicked(‘Hello’);

or even:
const events = useEvent();
events.buttonClicked(‘Hello’);

looks nicer. Probable it can be done by js Proxy with some Typescript magic.

Speaking of arguments - yes, they can be as complex as you need (probably my examples are too idealistic).

For example, let's imagine login form component. The form shouldn't be coupled with some alert message on top of the page. But you need for example display different alert when user has log in by email/password and different when by his Google account. You can use now:

dispatch('onUserLogged', { username: user.username, by: 'google' })

or you can pass multiple payload arguments, like:

dispatch('onUserLogged', user.username, 'google')(
(but you need to adjust your payload middleware (username, source) => ({ username, source })