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.

Why double index?

See original GitHub issue

image

In this image on the docs I see both index.js and index/ folder.

Why use this approach? Isn’t it bad for the compiler/ambiguous to have both?

Why don’t simply put index/ folder’s contents outside of it? It would look clear and it wouldn’t break encapsulation.

I’m not bashing it, to be clear, I’m just curious about why this solution?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
benawadcommented, Feb 18, 2020

@sQVe exactly, you’ll define some root folders and then destiny will make each one a fractal

1reaction
sQVecommented, Feb 18, 2020

destiny is in early development stage. The resulting structure that destiny currently outputs is a reflection of some generalization and simplification. I think the next goal is to only run destiny on subfolders of src. Do you agree @benawad?

It’s worth noting that the current structure has no implications on a compiler. From a compiler or file system stand point there is a big difference between index.js and index/.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Trying to understand the double index in python - Stack Overflow
It seems like left is an array containing tuples. I.e. Each element of the array is a tuple. Ex: left=[(value1oftuple1,value2oftuple1),( ...
Read more >
double indexing - MATLAB Answers - MathWorks
The first index create a new vector and the second index creates a new vector out of the newly created one. It is...
Read more >
5.3: Double-Index Arrays - Engineering LibreTexts
Double-index arrays (and more generally, multi-index arrays), are extremely important in the implementation of numerical methods.
Read more >
Dual Index Sequencing | Reduce Per-Sample Costs with UDIs
Unique dual indexes allow you to increase the number of samples sequenced per run and reduce per-sample cost compared to other indexing strategies....
Read more >
Multiple Entry Indexing and Double Indexing - ResearchGate
entry indexing. Multiple entry indexing is similar to partial indexes ( [9, 10]) in the PostgreSQL DBMS. ... entries for each tuple of...
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