Questions tagged [code-separation]
75 questions
2
votes
1 answer
Code Separation Paradox: Create HTML Tree from Multi-Dimensional Array AND Keep the HTML Outside of the Recursive Function
This working code seems to be the typical solution to this problem.
It takes a multi-dimensional array that holds categories and their subcategories (with no implied limitation on how many levels deep it goes) and creates an HTML unordered list from…
Scott
2
votes
1 answer
SwiftUI: Data sharing between separate views
What is the best practice to share variables between views?
My app has only one view. But as it gets more and more complicated, I think I should separate it into several views. Also to separate the methods.
I started with something like this:
struct…

mildspleen
- 25
- 5
2
votes
1 answer
vue.js 2 - extract html snipped of single file component into standalone file
I'm wondering if there is a way to split a Single File Components file into multiple smaller ones.
What am I talking about?
Let's look at this:
...