Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
aenero
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
aenero
5y ago
These have been implemented starting in version 0.1.0.
2.
▲
by
aenero
5y ago
Based on feedback I got here so far, I'm working on a version that will add these functionality: (1) helpers to generate base colors and palettes based on various color relationships, e.g. complementary, split-complementary, double-com
3.
▲
by
aenero
5y ago
Nice one indeed. Thanks for this. I am gathering useful links like this, and will make them available in the README for further readings.
4.
▲
by
aenero
5y ago
Great insights there.
5.
▲
by
aenero
5y ago
Thanks for your feedback. I will copy+paste below my response to a similar feedback to my post. --- start excerpt --- The main intention/purpose of the library is to provide a well-defined structure to guide the developer in crafting t
6.
▲
by
aenero
5y ago
Thanks for your feedback. The main intention/purpose of the library is to provide a well-defined structure to guide the developer in crafting their color system. Especially when using TypeScript, this benefit is immediately felt. Since
7.
▲
by
aenero
5y ago
Thanks for pointing this out. Admittedly a lot of pointers like this are missing in the README, because there's just a lot about Color Theory and generally the science behind color, than what my documentation has space for. Can you rec
8.
▲
by
aenero
5y ago
Thanks for your feedback. This area is where TypeScript would play nicely. The library implements types that fully utilize generics to define and impose restrictions for color keys, as well as ensuring type consistency across the color syst
9.
▲
by
aenero
5y ago
Fair point. Thanks for pointing that out. Will update the README.
10.
▲
by
aenero
5y ago
Hi. Thanks for your comment. This library provides the foundation for crafting any sort of color system. The choice of whether your color system's palettes should consist of complementary vs. analogous vs. other relationships of colors
11.
▲
by
aenero
5y ago
Glad you find it useful. And do let me know if you have suggestions on how to further improve its functionality. I've been using it on personal projects for a while now, but just published it recently. User feedback is definitely most
12.
▲
by
aenero
5y ago
Hi! Just to quickly introduce a library that I recently published... Using a proper color system for your UI ensures a cohesive, more polished look for your application. This library makes it super easy for you to create your very own color
13.
▲
Show HN: Create your own complete UI color system easy as 1-2-3
(github.com)
81 points
by
aenero
5y ago
|
31 comments
14.
▲
Show HN: SimpleR State v1.0.3 just released–STILL the simplest React state mgmt
(github.com)
2 points
by
aenero
5y ago
|
0 comments
15.
▲
by
aenero
5y ago
SimpleR State acts as a "module-level store", one of the reasons why it's so simple. When you start doing SSR, though, as with anything else in React global state management, you would sacrifice some of that simplicity. So to
16.
▲
by
aenero
5y ago
Happy to hint that there is an upcoming plug-in to support Redux DevTools too. Soon.
17.
▲
by
aenero
5y ago
Yes, I called it "transform function" in the documentation to reflect the more general functionality that also includes computed values, apart from selection ("picking" properties). Thanks for your encouraging feedback.
18.
▲
by
aenero
5y ago
Although this is not provided by SimpleR State out of the box, the library makes it easy to implement a "selector" function that accepts an SQL query, and pass this selector to the entity hook. This SQL query syntax in React can w
19.
▲
by
aenero
5y ago
Happy to say that this also works well with TypeScript with minimal explicit types required. My main goal is to maximize the use of type inference. The documentation provides TypeScript version of each example (outside of the TL;DR cheat sh
20.
▲
Show HN: The simplest React state manager now at stable release
(simpler-state.js.org)
96 points
by
aenero
5y ago
|
39 comments
21.
▲
by
aenero
6y ago
It would be counter-intuitive if I endorse a Recoil-based solution on this thread that talks about a different library, LOL. But since I want to help as much as I can, my advice is, regardless of which library you choose, or which approach
22.
▲
by
aenero
6y ago
Hi. There are LOTS of much more popular libs you can choose from. My library does not intend to compete as the "best" library, but it has a very specific set of goals, the topmost of which is simplicity through a minimalist API.
23.
▲
by
aenero
6y ago
Hi. SimpleR State makes use of selectors without creating a new entity (unlike atoms in Recoil, for example). It uses the more classic paradigm used by popular libs like React Redux where you just use selectors to filter/transform th
24.
▲
by
aenero
6y ago
Depending on which principles/patterns you are applying, you can go as elaborate as using something like Recoil for that (I think this might be a great application of Recoil as it deals with atomic data), or you can choose to go simple
25.
▲
by
aenero
6y ago
Actually I was favoring the official React Redux stuff in my comment. Just trying to balance it out by mentioning that Rematch, Easy-Peasy and other libraries in the ecosystem all have their own place in the open source world, even if they
26.
▲
by
aenero
6y ago
Yup agreed. That's why I stated it as "I found it to be...", coz I'm not trying to convince everyone else LOL. It's never my intention for this library to try and be the "best" out there. I simply want to
27.
▲
by
aenero
6y ago
I see what you're saying here, and actually agree at some level. But there is always an alternative, IMHO. If the project has a good code structure and follow equally good coding standards and review process, using simple un-opinionate
28.
▲
by
aenero
6y ago
Maybe "encapsulated" is not the right term when I simply meant "scoped". I tried scoping the entities using Context in some prior art which we use in production. Some colleagues kindly gave me some benchmark results and
29.
▲
by
aenero
6y ago
For folks who use Redux, the React Redux library has gotten much much more developer-friendly than it originally was. The other libraries like Easy Peasy and Rematch serve a nice syntactic sugar, though.
30.
▲
by
aenero
6y ago
Following React conventions is certainly an option and is supported by SimpleR State's unopinionated and flexible syntax. 1. It was inadvertently removed from the documentation, but these are equivalent: const count = counter.use
More ›