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.

Subs or Substitutions?

See original GitHub issue

I really like the API, a complete copy of ElmArchitecture in JavaScript. My only peeve is subs. I think it would be better to use the term subscriptions like Elm and Choo. I remember the first time I looked at the counter example and saw the sub function in the update method. I immediately assumed it was a singular instance of subs, whatever they were. Then when I saw the subs in actions I was thinking, hmmm… substitutions?, subtractions? subordinations? subscripts? or maybe he wants to give us all foot long subs!!! Yay! I’ll have two please. OK, I know you used subs to save a few letters typing, but going forward if you want this project to gain traction it would be better to use the more explicit term subscriptions to save people the mental work of constantly translating subs to subscriptions in our heads. Even in your README you describe subs as: Subscriptions are functions that run once when the DOM is ready. Use a subscription to register global events, like mouse or keyboard listeners. I’m suspecting you probably just lobbed off the tail end of pubsub for the term. My point is explicit terms are always better than implicit terms in API design. It’s not like people would have to type the term a thousand times. It’s just once. Then when you scan the page and see subscriptions it would be immediately clear what you are looking at, even if you were not familiar with this API.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:5
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

4reactions
jorgebucarancommented, Feb 7, 2017

It’s not like people would have to type the term a thousand times. It’s just once. T

Good point.

What do you folks think? @danigb @itrelease @maraisr @tzellman @evgenykochetkov @terkelg

I’m 💯 with the idea.

2reactions
tunnckoCorecommented, Feb 7, 2017

I was thinking the same thing. subscriptions is better if you want shorter name subscribes is better than subs too.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The subs command is used to make substitutions ... - Penn Math
The subs command is used to make substitutions of one expression (variable, number...) for another within some other (presumably more complicated) Maple ...
Read more >
History Of Substitutions In Football | How The Use Of Subs ...
The clubs that made up the Football League couldn't name five substitutes until the 1999-2000 campaign, with the decision to expand it to...
Read more >
Symbolic substitution - MATLAB subs - MathWorks
If old is a scalar, and new is a vector or matrix, then subs(s,old,new) replaces all instances of old in s with new...
Read more >
Substitute (association football) - Wikipedia
A player who is noted for frequently making appearances, or scoring important goals, as a substitute is often informally known as a "super...
Read more >
Substitutions. A how-to guide. | Just Play Help Centre
The best way of managing subs in futsal is to divide the total game time by the number of players at the game...
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