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.

Collection uniformity

See original GitHub issue

I was checking about Aigle.parallel and I found at least exist 3 methods for do technically the same, but using different input. Specifically I’m referrencing this methods:

- Aigle.all
- Aigle.props

That basically could be expose just in one

- Aigle.parallel

The think I’m suggesting is avoid expose overhead methods for make easy use the same method all the time, because:

  • Technically doing the same, so input is a implementation detail.
  • Less methods to learn.
  • Tiny API.

For example, taking lodash as example, see lodash.forEach method. You can use it for objects or arrays, and it’s so powerful; the point is it is not distinguishing between two methods; just one for Collection an abstraction of data type that include array and object (like Iterable).

What do you think?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
suguru03commented, May 29, 2019

Hi, @Kikobeats ! Aigle.all is the same functionality as Promise.all. Aigle.map is similar to Array#map and Lodash.map, but you can take an async iterator as a second argument.

0reactions
Kikobeatscommented, May 29, 2019

Another question: Aigle.map === Aigle.all === Promise.all ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fair Debt Collection Practices - PA Attorney General
The Fair Credit Extension Uniformity Act regulates the debt collection activities of debt collectors and creditors in Pennsylvania.
Read more >
2000 Act 7 - PA General Assembly
20000007ua. AN ACT. Establishing the Fair Credit Extension Uniformity Act; and providing for debt collection trade practices and penalties. · 20000007u1s.
Read more >
ArtI.S8.C1.1.3 Uniformity Clause and Indirect Taxes
Article I, Section 8, Clause 1: The Congress shall have Power To lay and collect Taxes, Duties, Imposts and Excises, to pay the...
Read more >
Measurement and optimization of the light collection uniformity ...
The uniformity of the light collection is a crucial parameter for the achievable energy resolution of detectors based on inorganic scintillation ...
Read more >
Optimisation of the scintillation light collection ... - IOPscience
This paper presents a comprehensive optimisation study to maximise the light collection efficiency of scintillating cube elements used in the ...
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