Earlier quoted context omitted.
That's exactly how some of the newer libraries in React ecosystem work btw. For example, Downshift is that "DYI Autocomplete" — it handles a11y and mechanics but you can compose any kind of behavior and styling out of its primitives. https://github.com/paypal/downshift I'm glad to see this trend.
> a11y I had to look that one up. I find it amusingly ironic that an accessibility initiative uses an abbreviation that renders the name incomprehensible.
The Elements of UI Engineering
81–84 of 84 posts
Re: The Elements of UI Engineering
#82Earlier quoted context omitted.
I think the reduction of the cognitive load of entropy was what propelled React (and specifically its innovation of the Virtual DOM) to be the most widely-used front-end framework. Being able to write a function transforming state to a description of the view, without having to worry about getting from whatever the view currently looks like to what you want it to look like, is a huge advantage. It can certainly still…
> innovation of the Virtual DOM Virtual DOM is rather a desperate move - to support components life time constructor/destructor events componentWill/DidMount / Unmount. What if you will be able to define in standard HTML/CSS something like this (as it is supported natively in Sciter) // css div.mycomponent { behavior: MyComponent url(components.js); } // script in components.js class MyComponent : Element { function…
Re: The Elements of UI Engineering
#83Earlier quoted context omitted.
> Explaining every down vote This is written as an excuse of laziness, which doesn’t makes sense. Clearly there is the energy to become emotionally responsive. That is the nature of an echo chamber, destroy that which is disagreeable for comfort. The rest of your points are all assumptions and stereotypes to qualify bad behavior. If you really merely disagreed with an opinion you would ignore it. There is something m…
1. Energy to downvote 2. Discouraging bad behaviour != Echo chamber 3. Rest of my points: specific refutals of your mistakes. 4. I didn't even disagree with your opinion , and I'm telling you this for the third time now. I didn't even downvote you, though I want to, especially now. The very first site guideline about comments says "Be civil". You break that, complain about downvotes (which breaks another site guideli…
Because the behavior I am seeing here is also frequently seen offline as well I am writing a paper on it for my coworkers. It is pretty interesting stuff to research.
https://en.wikipedia.org/wiki/Sensory_processing_sensitivity
Essentially, SPS appears to be a form of advanced processing in the brain. The brain of a SPS person will process certain stimulus much faster and aggressively than a common person resulting in a deep emotional experience. The research indicates 15-20% of adults may fall into this description. The positive result of this scenario is an intrinsically deep set of experiences from an exceedingly minor trigger.
The primary negative result is a loss objectivity. A stimulus that results in a deep emotional experience is distracting to anybody. Such a distraction may likely effect all adults similarly. The difference here is whether the person is sufficiently triggered by a given stimulus. The given distraction warrants a response at cost to a broader consideration for the given subject or a wider distribution of inputs.
The tragedy of this is that adults cannot properly self-regulate their behavior when compelled to a strong emotional state. This is problematic because emotional equilibrium is what allows the adult brain to self-reflect on its behavior and apply controls as necessary to adjust the behavior. The self-regulation generally occurs as the emotional state cools over a brief time period. If a SPS person is more deeply and frequently compelled to a deep emotional state they likely cannot achieve the necessary modification controls present in the behavior of other adults.
The research also indicates a SPS person may pause on trivial things to allow for deeper processing of the resulting emotional state or triggering stimulus. In social settings this would appear awkward as the timing and observed delays would appear strange followed by a response, even if not spoken, that other people may not well understand.
Conversely I occupy the opposite end of this spectrum of abnormal. I am hyper-objective, which comes with its own sets of pros and cons. Hyper-objectivity is generally extremely rare yet blessed for strengths of analysis and logic. People with this sort of personality are often, and undeservedly, considered to be smarter than average when such assumptions are grossly inaccurate. These people will frequently analyze common things to a degree of specificity most people generally don't care about.
The cons of a hyper-objectivity personality type is apathy. Since empathy is a deep form of listening an analysis hyper-objective people are great at it, but this is not reflected in their behavior. Instead all that most people see is that hyper-objective people don't care about emotions, which is mostly accurate. People like this area completely aware of this and how weird it is, which results in some abnormal decisions. It is easy to use empathy as a weapon to manipulate people or crush them with their own emotional states, and that is certainly an anti-social behavior. Hyper-objective people can modify their own behavior in response to social stimulus with far too great of ease which could appear somewhat sociopathic.
The general lack of regard for emotions has the interesting side-effort of an anti-Dunning-Kruger effect. Instead of an incompetent person who feels superior to their peers a hyper-objective person may in fact exhibit superior work performance but incorrectly believe themselves to be inferior despite evidence to the contrary. The resulting bias then compounds the problem by wondering why you can complete a hard task and your coworkers cannot. If you suck then they must super-suck, which isn't correct at all.
If you are an SRS person I recommend pointing that out to somebody you are close to offline so that they may provide you pointers when things get weird.
Re: The Elements of UI Engineering
#84You didn’t write a fetch ever, you subscribed to a data feed from the data feed repository.
To prevent redundant fetches, the data feed was served by a cache, which then filled cache entries by doing the fetch.
Doing a POST invalidated the whole cache.
Which triggered fetches of everything, but only once/API. The fetch return pushed out to all the subscribers. The subscription was driven by the JSX, so only visible items had active subscriptions. Essentially, you wrapped your UI with the fetcher component, during your JSX display tree into a data dependency tree.
Optimizing the cache invalidation was a problem we ignored for later, because the fetch overhead wasn’t too bad, and we went from doing 40 fetches/page without the cache layer to 10, so the back end never noticed.