best way to replicate a tree structure in firebase? - firebase

This is kind of a weird and perhaps dumb question but regardless some clarification is appreciated. I'm trying to implement a tree-like structure in firebase but don't really know the best method to do so.
The best solution that I have come up with is nested maps but I feel like this is a pretty shitty one. Heres a screenshot to show you what I did:
this is trying to replicate the following:
Feel like there's gotta be a better method than this, if anyone has experience with a similar situation please guide me!

Related

How I can learn mlir?

Hi I just came from milr doc and got quiet confused.
I tried to work through the toy project, but cannot understand the mechanism and concept of dialect.
The tutorial just offered an example of some code, how they would interact with each other, how should I use them, it mentioned nothing.
As a beginner, I'm really lost and do not know what to do.
May someone please help me on how to compile a simple program that transfer source to mlir, using the current framework it provided.
The easiest way to learn is by doing some projects. For MLIR, I think you can start by first understanding and doing the Toy tutorial
Then see if you can extend it by adding a new operation to this toy language. If you found this interesting, try out a dialect conversion exercise (say toy to SCF).

Symfony4 - how to deal with functionality

I'm new to Symfony4 and I want your advices guys to help me on this.
Let's say I want to create a page like facebook, with posts, comments, like action on the same page. I'm wondering how I should do to be able to enable/disable a functionality quickly and also split my code in order to have light and readable files.
Reading this can't hurt:
https://symfony.com/doc/current/best_practices/index.html
Your question is too vague, there's no magic answer to "How to do a good Symfony App".
Symfony is a framework with a pretty hard learning curve. You need to get a good grasp on it's bases, practice and take a look on how other Symfony applications are written, or even better find someone to review your architecture and give you pointers.

Design an addressing scheme, using VLSM?

If this has been asked before then I'm sorry.
I've been given this question and have been trying all weekend to figure it out. I've looked at multiple websites but none of them explain the process. It's really frustrating me. Can anyone help? So I've been given the first two pictures below. I'm just hoping someone could maybe explain this to me? I need to practice this for my exam!

Example of complex similarity computations in ArangoDB?

I am new to ArangoDB and have been reading through the documentation and examples available online for a few days now. However, I am not able to formulate a query to do a complex calculation using AQL. Looking forward to some examples that can help.
For starters, an idea on what's the best way to solve a case such as: http://neo4j.com/docs/stable/cypher-cookbook-similarity-calc.html#d5e4728 would be very helpful.
Thanks in advance!
You're right. Our documentation is lacking examples, we will fix this. Its used like that:
db._query('RETURN SUM([1,3,5*7])/3.5')
[
11.142857142857142
]

What is a cairngorm "Comparator"

Can anyone explain this in easy to understand terms?
Here is Adobe's 5 part series - whether it is easy to understand depends on the individual users perspective!
Also this post describes the "comparator" much like a filter.

Resources