- Aug 2024
-
www.derstandard.de www.derstandard.de
-
- Mar 2024
-
yarnpkg.com yarnpkg.com
-
when projects want to keep strict boundaries within their code and avoid becoming an entangled monolith. This is for example the case for Yarn itself, or many enterprise codebases.
-
- Dec 2022
-
corporate-rebels.com corporate-rebels.com
-
2. No hierarchy
Defang the hierarchy! Flattening all the management levels and leadership.
-
1. Total transparency
All info all of the time available to all makes for a trusting space. Plus, a more active way to help all your people understand what they are seeing.
-
- Aug 2022
-
stackoverflow.com stackoverflow.com
-
you can also replicate the bind:this syntax if you please: Wrapper.svelte <script> let root export { root as this } </script> <div bind:this={root} />
This lets the caller use it like this:
<Wrapper bind:this={root} />
in the same way we can already do this with elements:
<div bind:this=
-
- Apr 2022
-
-
Which Components of IT Infrastructure do we need for DevOps?
Many companies that want to move to DevOps eventually struggle with the question “What are the Components of IT Infrastructure we need? The use of DevOps stems from the desire to be able to release software more often and faster. The traditional Operations Team (OPS) however will not wholeheartedly embrace this because they would rather benefit from maintaining a stable infrastructure and its maintenance.
-
-
shoelace.style shoelace.styleShoelace1
-
- Jan 2022
-
github.com github.com
-
but you want to style your components yourself and not be constrained by existing design systems like Material UI
-
- Dec 2021
-
open-wc.org open-wc.org
-
- Nov 2021
-
stackoverflow.com stackoverflow.com
-
-
The consumer component will barely change from our last example. The only difference is the way we'll get a reference to our store (since now the store is exported from the JS module):
-
Now your whole WS logic can be encapsulated in your JS module. That makes for good separation of concern.
-
Stores are the idiomatic Svelte way when you need to import "reactivity" from your normal JS sources.
-
- Aug 2021
-
daveceddia.com daveceddia.com
-
Here’s where immutability comes in: if you’re passing props into a PureComponent, you have to make sure that those props are updated in an immutable way. That means, if they’re objects or arrays, you’ve gotta replace the entire value with a new (modified) object or array. Just like with Bob – kill it off and replace it with a clone. If you modify the internals of an object or array – by changing a property, or pushing a new item, or even modifying an item inside an array – then the object or array is referentially equal to its old self, and a PureComponent will not notice that it has changed, and will not re-render. Weird rendering bugs will ensue.
-
An easy way to optimize a React component for performance is to make it a class, and make it extend React.PureComponent instead of React.Component. This way, the component will only re-render if its state is changed or if its props have changed. It will no longer mindlessly re-render every single time its parent re-renders; it will ONLY re-render if one of its props has changed since the last render.
-
- Jul 2021
-
github.com github.com
-
Auto-Detect & install BigCommerce's stencil-cli Auto-Detect & install Meteor Auto-Detect & install Shopify's themekit
Simpler option: https://github.com/apollographql/apollo-server/blob/main/.envrc
-
- Jun 2021
-
docs.gitlab.com docs.gitlab.com
-
We should test for events emitted in response to an action in our component. This is used to verify the correct events are being fired with the correct arguments.
-
- May 2021
-
mxb.dev mxb.dev
-
This looks cool! I can think of some interesting applications, but the example here is pretty slick.
-
- Apr 2021
-
samanthaz.me samanthaz.me
-
the commonality of clicks, buttons, and even the icon with three horizontal lines now apparently means “menu” to everyone.
And yet I hate this pattern
-
- Mar 2021
-
medium.com medium.com
-
There’s several benefits to splitting code into multiple packages, whether it be a library, micro-services or micro-frontends.
-
-
www.chevtek.io www.chevtek.io
-
But I believe the core philosophy of tiny modules is actually sound and easier to maintain than giant frameworks.
-
"Functions Are Not Packages" - Well why not?
-
Small modules are extremely versatile and easy to compose together in an app with any number of other modules that suit your needs.
-
Write modules that are small. Iterate quickly.
Tags
- allowing developer/user to pick and choose which pieces to use (allowing use with competing libraries; not being too opinionated; not forcing recommended way on you)
- easy to maintain
- making changes / switching/migrating gradually/incrementally/step-wise/iteratively
- microlibraries
- core/guiding beliefs/values/principles/philosophy/ideology
- small units/components/modules/libraries/packages/projects
- micropackages
- why not?
- sound/reasonable/wise/defensible
- monolithic/giant modules/libraries/packages/projects
- composability
- composition
Annotators
URL
-
-
trailblazer.to trailblazer.to
-
Please note that the I/O DSL is only providing the most-used requirements. Feel free to use the low-level taskWrap API to build your own variable mapping with different scoping techniques.
-
- Feb 2021
-
trailblazer.to trailblazer.to
-
The entire framework is based on small, clean Ruby structures that can be executed programmatically.
-
- Dec 2020
- Nov 2020
-
material.io material.io
-
Depending on your needs, you can use the Simple Approach: Wrapping MDC Web Vanilla Components, or the Advanced Approach: Using Foundations and Adapters.
-
Material is an adaptable system of guidelines, components, and tools that support the best practices of user interface design
-
-
stackoverflow.com stackoverflow.com
-
The main reason to use these lower-level components is if you need to customize your form input in some way that isn't supported using TextField.
-
-
fortelabs.com fortelabs.com
-
Finally, you gain the ability to reuse previously built packets for new projects. Maybe some research you did for an online marketing campaign becomes useful for a new campaign. Or some sketches that didn’t quite make it into an old design give you inspiration for a new one. Or some book notes you wrote down casually turn out to be very useful for an unforeseen challenge a year later.
The Intermediate Packet approach allows you to reuse previously built packets for new projects
By incorporating existing packets in new projects, you gain the ability to deliver new projects much faster.
-
-
medium.com medium.com
-
If you are working in a large enterprise application, we have to create small components. Small components are much more flexible in terms of reusability and maintainability.
-
- Oct 2020
-
www.basefactor.com www.basefactor.com
-
Industrialization: You can easily chop your form validations into smaller independent pieces that can be developed by separate teams in paralell with no dependencies.
-
-
medium.com medium.com
-
But for big projects it should work out to just apply this techniques to certain sub-folders in your project where this problems occurs, as-if they are stand alone libraries.
-
-
github.com github.com
-
One of Svelte's advantages, for me, is that I can test out ideas with relatively few lines of code. the #with feature could save me from adding a separate component for the content of an #each loop. I get frustrated when I have to create a new file, move the content of the #each clause, import it as a component, and add attributes and create exports for that, and implement events to send messages back, and event handlers, when I just wanted to test a small feature.
-
-
stackoverflow.com stackoverflow.com
-
You should not create a new debounce function on every render with: return new Promise(resolve => { debounce(() => resolve(this.getIsNameUnique(name)), 2000); }); Instead you should just wrap your whole function isNameUnique with the debounce (see my sandbox). By creating a new debounce function on every hit, it cannot 'remember' that is was called or that is will be called again. This will prevent the debouncing.
-
-
github.com github.com
-
In React 0.12 time frame we did a bunch of small changes to how key, ref and defaultProps works. Particularly, they get resolved early on in the React.createElement(...) call. This made sense when everything was classes, but since then, we've introduced function components. Hooks have also make function components more prevalent. It might be time to reevaluate some of those designs to simplify things (at least for function components).
-
-
-
inline components, await...then, and each blocks are the exact use case where I want this.
-
We are very close to full inline components (with css, js logic, and templates).
-
Taking all three of today's proposals (#32 #33 #34) together it would become theoretically possible to make an entire application in a single file which is the complete opposite direction of what Svelte has been so far.
That wouldn't be so bad, to have that flexibility...
It would give the power that is available in JSX (like inline anonymous components), to Svelte, which those coming from JSX would appreciate.
-
Since re-rendering in Svelte happens at a more granular level than the component, there is no artificial pressure to create smaller components than would be naturally desirable
-
are much better to read and write as inline anonymous templates, not components
-
-
-
When I say that my experience is that it means it's time to split up your components, I guess I mean that there tends to be a logical grouping between all the things that care about (for example) sqr_n, and in Svelte, logical groupings are expressed as components.
-
-
dylanvann.com dylanvann.com
-
When using React hooks there is no concept of onMount because the idea of only running some code on mount leads to writing non-resilient components, components that do one thing when they mount, and then don’t take prop changes into account.
-
-
medium.com medium.com
-
Especially when coming from a framework like React, it might feel very tempting to start creating a component wrapper around the input (i.e. <input> becomes <Input/>) and add your custom event handlers in there.This is a great approach in React, but not so much in Svelte. Why, you ask?Well, Svelte (at least in its current form, v3) really shines when you have native DOM elements at your disposal. You can use transition directives, conditionally switch CSS classes, bind to the current value with ease, and more.
-
- Sep 2020
-
medium.com medium.com
-
Many people recently are complaining about bundler performance. But I don’t think any tool is going to solve performance problems. Bundlers can try innovative ideas such as multi-threading and improved caching, but you’re always going to hit a limit. If you’re having performance problems, it’s more likely because you’re not keeping tabs of what you’re importing, and haven’t considered splitting your project into multiple projects.
-
-
rollupjs.org rollupjs.orgRollup1
-
Developing software is usually easier if you break your project into smaller separate pieces, since that often removes unexpected interactions and dramatically reduces the complexity of the problems you'll need to solve
-
-
-
We don't want to rely on there being a single root element - or prevent ourselves from ever implementing named slots without a single root node - and so there's not anything to apply the class to or the transition to.
-
I think instead, there would need to be some special way to make the distinction of what is a slot attribute and what is a slot prop to be consumed with let:. Maybe a new directive like <slot attr:class="abc"/>?
-
-
-
I wrote hundreds of Rect components and what I learned is that Componets should be able to be styled by developer who is using it.
-
-
github.com github.com
-
feel like there needs to be an easy way to style sub-components without their cooperation
-
-
github.com github.com
-
There is a good amount of properties that should mostly be applied from a parent's point of view. We're talking stuff like grid-area in grid layouts, margin and flex in flex layouts. Even properties like position and and the top/right/left/bottom following it in some cases.
-
The main reason using classes isn't a great solution is that it completely breaks encapsulation in a confusing way, the paren't shouldn't be dictating anything, the component itself should. The parent can pass things and the child can choose to use them or not but that is different: control is still in the hands of the component itself, not an arbitrary parent.
-
The RFC is more appropriate because it does not allow a parent to abritrarily control anything below it, that responsibility still relies on the component itself. Just because people have been passing classes round and overriding child styles for years doesn't mean it is a good choice and isn't something we wnat to encourage.
Tags
- programming: who is responsible for this concern?
- Svelte: components are their own boss (encapsulation)
- Svelte: how to affect child component styles
- whose responsibility is it?
- limiting how much library consumers/users can control/override
- breaking encapsulation
- who should have control over this? (programming)
- control (programming)
- confusing
- which component/tool/organization/etc. is responsible for this concern?
Annotators
URL
-
-
-
the notion that any given component should be in charge of its own thing, and not do something outside of itself. I.e., loosely coupled components in a sandbox, not tightly coupled to something outside of its own scope.
-
-
github.com github.com
-
Since re-rendering in Svelte happens at a more granular level than the component, there is no artificial pressure to create smaller components than would be naturally desirable, and in fact (because one-component-per-file) there is pressure in the opposite direction. As such, large components are not uncommon.
-
-
-
In my projects on Svelte, we adhere to the "budget" of the component in 200 loc with styles. If the component goes these limits, we just take out styles in a separate file using svelte-preprocess.
-
-
github.com github.com
-
In some frameworks, a module can contain multiple components, some of which need not be exported (and are therefore effectively private). In Svelte, there is a strict one-component-per-file rule. This is nice and simple to understand and explain (not to mention implement), but it does have drawbacks. Users sometimes complain that it causes a proliferation of .svelte files, many of which contain very simple components that would be better declared inline.
-
-
-
github.com github.com
-
I'm personally surprised about that, given the degree to which web component advocates prioritise encapsulation — it seems like a footgun, honestly
-
Personally, I think class is too blunt an instrument — it breaks encapsulation, allowing component consumers to change styles that they probably shouldn't, while also denying them a predictable interface for targeting individual styles, or setting theme properties globally
-
...but ultimately the component itself has control over what is exposed, and can specify its own fallback values using normal CSS custom property syntax:
-
-
github.com github.com
-
A component should be in complete control of itself. Not only should a component's styles not leak out but other component's style should never leak in. Consider this 'Encapsulation part 2' if you will. When writing a component, you have certain guarantees that not only will the styles you write be contained within the component, but nothing from the outside should affect you either. You have a certain confidence that if it works in isolation, then it will continue to work when embedded within a complex application.
-
-
svelte.dev svelte.dev
-
Instead, my purpose is to illustrate why an alternative approach — based on Single File Components with real CSS — is so damn delightful.
-
-
-
Q7. What are controlled components?In HTML, form elements such as <input>, <textarea>, and <select> typically maintain their own state and update it based on user input. When a user submits a form the values from the aforementioned elements are sent with the form. With React it works differently. The component containing the form will keep track of the value of the input in it's state and will re-render the component each time the callback function e.g. onChange is fired as the state will be updated. A form element whose value is controlled by React in this way is called a "controlled component".With a controlled component, every state mutation will have an associated handler function. This makes it straightforward to modify or validate user input.
In classical HTML form components such as <input> or <textarea> maintain their own state, which gets sent somewhere upon submission of the form.
React keeps track of the form's state inside a component and will re-render the component when the state changes. This can be listened to by subscribing to the onChange callback function.
-
- Aug 2020
-
psyarxiv.com psyarxiv.com
-
Ballard, Timothy, Ashley Luckman, and Emmanouil Konstantinidis. ‘How Meaningful Are Parameter Estimates from Models of Inter-Temporal Choice?’, 21 August 2020. https://doi.org/10.31234/osf.io/mvk67.
-
- Jun 2020
-
-
Note that when you use &::before with content, you need to add quotes to the value of content, otherwise the text does not get applied correctly.
&:hover{ background-color: ${props => lighten(0.7,themesMap.get(props.theme)!.secondaryColor)}; } &:before{ content: 'before'; }
-
- Apr 2020
-
accessmedicine.mhmedical.com accessmedicine.mhmedical.com
-
The major effect of steroids is to inhibit the inflammatory phase of wound healing (angiogenesis, neutrophil and macrophage migration, and fibroblast proliferation) and the release of lysosomal enzymes
-
An effective therapy to combat biofilm should include effective removal of the biofilm, antimicrobial eradication of bacteria/organisms, and prevention of biofilm recurrence, and these treatment options may need to be repeated multiple times to achieve effective therapy.
-
- Dec 2019
-
- Nov 2019
-
github.com github.com
-
Not clear whether it could (easily) be used "standalone" — without any child checkboxes.
-
-
edtechmagazine.com edtechmagazine.com
-
it’s important to embrace pedagogies that leverage synchronous (live) instruction.
It is mention in this article that Arizona State University is on the right track regarding superior online services. this article point of view is about the online challenges for colleges and universities, such as, doing live videos, online services and supplying tech devices. this website "EdTech" is a online magazine education technology resource for both K-12 and higher education.
-
- Oct 2019
-
developer.microsoft.com developer.microsoft.com
-
blueprintjs.com blueprintjs.com
-
ant.design ant.design
-
angular-ui.github.io angular-ui.github.io
-
react-select.com react-select.com
-
Inner RefSome components are passed an innerRef property to facilitate for internally managed behaviour within the base select. This should be assigned to the ref property of the relevant dom element. i.e.const CustomOptionComponent = ({ innerProps, innerRef }) => (<div ref={innerRef} {...innerProps} />) Inner PropsAll functional properties that the component needs are provided in innerProps which you must spread.
-
- Sep 2019
-
angular.io angular.io
Tags
Annotators
URL
-
-
reactjs.org reactjs.org
-
developer.mozilla.org developer.mozilla.org
- Aug 2019
-
github.com github.com
-
www.npmjs.com www.npmjs.com
-
127.0.0.1:4000 127.0.0.1:4000
-
I propose to developphonetic discrimination in mice as a model for speech perception. I will thendirectly testthe predictions made by competing neurolinguisticmodels
End your introduction with a one-sentence description of your project. Use italics to make in-paragraph text easy for your reviewer to pick out.
-
-
material-ui.com material-ui.com
-
Customization of the TextField can be cumbersome with the classes API, where you have to define the the classes prop. It's easier to use the default values, as described above. For example:
It's surprising that they show an example using styled-components, which is a competing style library to their own @material-ui/styles, and even admit that this might be preferred over using the classes API, which they admit may be cumbersome.
I like that they are open-minded enough to acknowledge that there are cases where built-in API may be too cumbersome, and even show examples of using styled-components.
-
-
emotion.sh emotion.sh
-
@emotion/core
-
-
www.styled-components.com www.styled-components.com
- Nov 2018
-
vmgen-build:51200 vmgen-build:51200
-
OnClick
the OnClick feature is as now not available. the contextual menu activate an URL on click as per Syncfusion component standard. We'll try to develop an advanced action to override this feature but it's not working out of the box.
https://ej2.syncfusion.com/documentation/context-menu/api-contextMenu.html?lang=typescript#items
-
- Sep 2018
-
developers.google.com developers.google.com
- Jun 2018
-
en.wikipedia.org en.wikipedia.org
-
News stories also contain at least one of the following important characteristics relative to the intended audience: proximity, prominence, timeliness, human interest, oddity, or consequence.
Tags
Annotators
URL
-
- Mar 2017
-
aurelia.io aurelia.io
-
All views use standards-based HTML templates
Aurelia's standards focus means our code stays relevant down the road.
Tags
Annotators
URL
-
- Jan 2017
-
angular.io angular.io
-
Component classes should be lean. They don't fetch data from the server, validate user input, or log directly to the console. They delegate such tasks to services.
A really good point! Lean-ness is something to strive for.
-
While a component is technically a directive, components are so distinctive and central to Angular applications that this architectural overview separates components from directives.
As per the MVVM pattern, they sort of provide the support for the View. They are like the glue for the visual representation of a part of the application. A controller of sorts (but not quite one) of MVC.
-
-
angular.io angular.ioAngular1
-
selector: 'admin-users'
Why isn't this selector defined as toh-admin-users, just like above toh-hero suggestion?
-
- Aug 2016
-
-
Referenced by Rob Dodson in https://medium.com/@robdodson/the-case-for-custom-elements-part-1-65d807b4b439#.lo10wi144
-
- Apr 2016
-
www.ember-redux.com www.ember-redux.com
-
This is a pretty good summary of the recent evolution of front-end architecture, described in a framework-independent way.
-
- Jan 2016
-
www.searchkit.co www.searchkit.co
-
UI components for ElasticsearchThe easiest way to build a great search experience with Elasticsearch.
UI components for Elasticsearch
Tags
Annotators
URL
-
- Sep 2015
-
tutorials.jenkov.com tutorials.jenkov.com
-
This is an interesting dive into the challenges of creating a good language to describe the structure and functionality of a UI.
It advocates using a declarative structure to lay out the components and then using imperative logic within the components.
-
- Jan 2014
-
blogs.law.harvard.edu blogs.law.harvard.edu
-
H o w t o R e a d O p i n i o n s
This section on how to read judicial opinions helpfully describes the components of what an opinion contains and some discussion of the challenges in identifying those components within the structure of the opinion.
The components identified here are:
- caption/name of parties
- name of the court
- date of the opinion
- date of oral arguments in appellate cases
- citation information
- name of judge(s) who wrote the opinion
- case history
- procedural posture (stage at which opinion was issued)
- information about facts of the case (especially for trial court opinions)
- statement of legal issues involved
- the holding (decision about the issues)
- the judge's reasoning
-