question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Built-in support for HOA: Should it stay or should it go? 🎶

See original GitHub issue

Should we keep built-in support for HOAs (higher order apps) or shall we encourage you to roll your own DIY solution? For example using a right to left function reducer like compose or good old f(g(..)).

The tradeoff is more flexibility & less bytes for one less selling point.


Some facts about HOAs:

  • 99% users will never need to author a HOA.
  • You don’t even need to use a HOA, but some of you may want to in order to facilitate debugging.
  • HOAs are ought to be used primarily for adding debugging functionality to your apps, enable logging of actions / state updates, add Developer Console support (devtools), TimeTravel, HMR, bypass the VDOM to target a different renderer, e.g., a terminal. Other valid uses, but not strongly encouraged include augmenting Hyperapp “core features”, e.g., introducing new app props to enable pre-wired component views, etc.
  • HOA is not a unique Hyperapp cooncept. You can create a higher order function of any function in the universe. Hyperapp does go out of its way to make slightly more convenient for you if you want to author a HOA, but we are not bending the laws of physics or being too unique.
  • You can do and abuse HOAs as much as you want with this feature built-in or not (in case we decide to remove it).

/cc @pspeter3 @okwolf @zaceno

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:19 (16 by maintainers)

github_iconTop GitHub Comments

4reactions
jorgebucarancommented, Oct 10, 2017

Now with init and modules landed in core and with the recent realization that the built-in support for authoring a HOA is not particularly that helpful, I propose we remove this from core and encourage users to DIY! 🔥

2reactions
Mytrillcommented, Oct 10, 2017

Ah ok, got it, thanks! I’m all for removing the support then!

Read more comments on GitHub >

github_iconTop Results From Across the Web

9 Things to Know About Homeowner Associations
Most HOAs will require all unit owners to pay a monthly maintenance charge and may also demand special one-time assessments to cover large...
Read more >
HOA vs Homeowner Repairs; who is responsible for what?
In most cases, the HOA is responsible for repairing the area without any assistance from the offending party. That's because the unit owner...
Read more >
Homeowner Associations (HOA): Everything You Need to Know
Homeowners associations (HOA) set and uphold rules in order to maintain and enhance property value in housing communities—and come with dues ...
Read more >
The Pros and Cons of Moving to an HOA Community
You should consider all the pros and cons of HOA living first. Keep in mind that the quality of an HOA varies depending...
Read more >
Can You Refuse to Join An HOA When You Just ... - HomeLight
If you buy a house in a neighborhood where a mandatory HOA already exists, then yes, you will have to join the HOA....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found