15 Matching Annotations
- Dec 2021
-
resilientwebdesign.com resilientwebdesign.com
-
That’s a pattern that repeats again and again: a solution is created in an imperative language and if it’s popular enough, it migrates to a declarative language over time. When a feature is available in a declarative language, not only is it easier to write, it’s also more robust.
Tags
Annotators
URL
-
- Nov 2021
-
amzotti.github.io amzotti.github.io
- Feb 2021
-
github.com github.com
-
With Activity, modeling business processes turns out to be ridiculously simple: You define what should happen and when, and Trailblazer makes sure that it happens.
-
-
github.com github.com
-
Provides a bunch of primitives to write declarative business logic
-
-
en.wikipedia.org en.wikipedia.org
-
By reifying a specific kind of computation, a monad not only encapsulates the tedious details of that computational pattern, but it does so in a declarative way, improving the code's clarity.
-
- Jan 2021
-
developer.mozilla.org developer.mozilla.org
-
With a few lines of code we can add functionality to regular HTML elements, in a very reusable and declarative way.
-
- Oct 2020
-
www.basefactor.com www.basefactor.com
-
It allows you to easily define a Form Validation Schema in a declarative way
-
-
www.zachgollwitzer.com www.zachgollwitzer.com
-
Declarative programming is an enabler of abstraction. Imperative programming is an inhibitor of abstraction. Declarative programming allows you to say “I want this and I don’t care how I get it” while imperative programming requires you to define each and every step.
Declarative programming, i.e. "build me a house, I don't care how", is an enabler of abstraction.
Imperative programming, i.e. "build walls, windows, a roof.", is an inhibitor of abstraction.
-
-
www.hackingwithswift.com www.hackingwithswift.com
-
SwiftUI is a user interface toolkit that lets us design apps in a declarative way. That’s a fancy way of saying that we tell SwiftUI how we want our UI to look and work, and it figures out how to make that happen as the user interacts with it.
-
Imperative UI causes all sorts of problems, most of which revolve around state, which is another fancy term meaning “values we store in our code”. We need to track what state our code is in, and make sure our user interface correctly reflects that state.
-
-
medium.com medium.com
-
This is exactly what we need the vDOM for — we might not need it for reactive state updates, conditional rendering or list rendering, but as long as we have it we can treat our component hierarchy as fully dynamic and controllable object. You cannot code a serious fully declarative app without this feature.
-
-
-
In a declarative language like Svelte's HTMLx, you're not writing a program so much as describing a graph.
-
-
-
I really missed my data being declarative. By that I mean with Knockout I'd describe a thing and all its behavior in one code block and then I could encapsulate it. React HOCs weren't quite the same. The declarations and the behavior were still separate generally.
-
- Sep 2020
-
github.com github.com
-
detach, as an api, should be declarative (ensure the node is detached) instead of imperative (detach the node), allowing it to be called multiple times by performing a noop if the node is already detached. This way, it won't matter if the node is removed from the DOM from outside of svelte.
-
- Jan 2016
-
ifsacop21.wordpress.com ifsacop21.wordpress.com
-
Ecocide
Interesting idea. The only thing is that the science is not where we would like it to be. Most of the accusing will need to be done in retrospect. In that case, many will have lost culpability due to insufficient knowledge. I just wonder how this will hold up in a court of law for most practical cases. For some large-scale cases, I can see it working, as long as the effects are enormous.
-