-
Notifications
You must be signed in to change notification settings - Fork 45
Remove nestedset dependency #148
Comments
Important to consider this one, whilst removing the 3rd party dependency will reduce final package size and a little bit of build time, implementing something ourselves has the overhead of maintenance in the long-term, writing ourselves is not overhead-free. So my question is this, is the saving of overhead from removing the 3rd party dep more than the overheard we'd be generating by rolling our own? Personally, I'd rather have extra file size and build time than maintaining more code ourselves. |
Well, nestedset has:
What we need:
We're calling one or two functions:
Both are one liner functions and one class variable. |
On a side note: this change would also allow us to make use of the |
Yep, the library is pretty much useless here, and using our own code (like one method) brings a whole lot more benefits. |
Cool 👍 |
We are using only this one feature?
Also we need some stuff to create, order or remove forums from ACP. It is true that nestedset dependency have more features than we need but there are some ready to use. We can make our own trait using some methods from this dependency (MIT license). |
At the minute, those are the only features we are using. Ordering can be solved with an Nested sets has some nice features, but from what I remember it doesn't generate very nice queries (this might have changed - we are using a very old version). |
Yep, for that moment the queries are ugly. Ok then, I will remove this package and take up this ugly queries. |
Yep, that's the plan :)
… On 28 Nov 2016, at 21:16, Matslom ***@***.***> wrote:
Yep, for that moment the queries are ugly.
There are planned subforums like in 1x, right? So anyway we must add two columns: one for order, second for flag forums as parent (for subforums feature).
Ok then, I will remove this package and take up this ugly queries.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
The only part of it we're using is the node functionality (parent_id) which can easily be added ourself. To remove some overhead we should remove the library and write our own trait instead.
The text was updated successfully, but these errors were encountered: