News for hackers. Stuff that matters.
Re:Subcases and Hierarchy by pavlov on Wednesday September 02, 2009 @02:17PM (#800779)
Wallah! Task lists. I can understand leaving out the accent on voilà, but "wallah"? It's not even pronounced like that.

If you Americans insist on writing French with such a horrible accent, I'm going to start raiting English vit my Finnish äksent. Rivendz vil pi sviit.

Re:Subcases and Hierarchy by rubinelli on Wednesday September 02, 2009 @06:50PM (#801301)
You, monsieur, are mistaken about the provenance of the word: http://en.wikipedia.org/wiki/Wallah_%28arabic%29
Re:Subcases and Hierarchy by extension on Thursday September 03, 2009 @05:33AM (#802106)
Based on the context, it's more likely Joel intended to use say this: http://en.wiktionary.org/wiki/voil%C3%A0
Re:Subcases and Hierarchy by cjg on Wednesday September 02, 2009 @11:36AM (#800393)
The discussion of the storage of the hierarchies in the database is quite interesting.
Re:Subcases and Hierarchy by extension on Thursday September 03, 2009 @05:54AM (#802126)
Except they implemented it wrong. You are supposed to leave gaps in the numbering to add new nodes. If you use consecutive numbers then inserting a node requires renumbering all consecutive nodes.

When I was faced with this problem, I used a dynamically sized bit vector field as an id and indexed it lexicographically. When a node is inserted, it's assigned the id of its parent appended with a 0 or 1, depending on its relationship to the parent. Thus, ids are unlimited and never have to be reassigned. Selecting a subtree is just a single range search. For a non-binary tree, a vector of some other type can be used.

I got the idea from this: http://en.wikipedia.org/wiki/Surreal_numbers

Re:Subcases and Hierarchy by 83457 on Wednesday September 02, 2009 @01:22PM (#800643)
This is the first time I've run across trees/nodes in the organization of relational data. Makes a lot of sense and certainly sounds like someone was "thinking outside the box".
Re:Subcases and Hierarchy by henning on Wednesday September 02, 2009 @01:28PM (#800660)
The nested set model is a well-known workaround for storing tree-like structures in a relational database.
Re:Subcases and Hierarchy by epe on Wednesday September 02, 2009 @03:18PM (#800890)
Am I missing something about the database section? It seems like if I add, e.g. a right child to node B in the diagram, I will have to update the "right" values on nodes A & B, as well as both the "left" and "right" values on C & E. Imagine doing this with a much larger subtree where C is, and you're looking at a ton of UPDATEs to store one new node, aren't you?
Re:Subcases and Hierarchy by gecko on Wednesday September 02, 2009 @03:21PM (#800896)
Yes. The good news is that you read hierarchies much more often than you update them, and hierarchies in a bug tracker are going to be relatively tiny, so taking a minor write-hit in exchange for a massive read improvement is a logical trade.
Re:Subcases and Hierarchy by sanj on Wednesday September 02, 2009 @03:23PM (#800902)
You're exactly right. Any insert will end up incrementing every node on its right. Any deletion, will end up decrementing every node on its left.

It's possible you could do the deletions silently, because you don't actually care about gaps. But I don't see any way around inserts being expensive.

Re:Subcases and Hierarchy by discojesus on Wednesday September 02, 2009 @01:07PM (#800596)
my favorite feature in the new version of Fogbugz. the only issue I've ever had with it is that if you enter in your parent case and subcases but then find that they are accidentally under the wrong project, the only way (AFAIK) to move the entire case tree is to click on each individual case and move them all one by one. Other than that, I must say it's pretty sweet.
Re:Subcases and Hierarchy by dodger on Wednesday September 02, 2009 @02:31PM (#800803)
I think the multi-select in the grid view is what you're looking for to make that easy; both shift-select and control select work when clicking on grid rows. Not the easiest thing to find, but really useful.
Re:Subcases and Hierarchy by gecko on Wednesday September 02, 2009 @03:22PM (#800899)
You can actually just hold the mouse button down and drag over a pile of checkboxes in the right column. No need to hit shift/ctrl.
Re:Subcases and Hierarchy by discojesus on Wednesday September 02, 2009 @02:47PM (#800836)
Yep, tried it and it works. So if anyone else ran into the same problem, just select all the cases you want to move as described above, then click the context menu button and select "Edit" and you can change the properties for a bunch of cases at once. Pretty sweet indeed.

Thanks for the tip :)

Re:Subcases and Hierarchy by rwolf on Wednesday September 02, 2009 @06:58PM (#801315)
This article is fluff. There is a superficial exploration of the development process, punctuated with non-descriptions of the actual coding. Screenshots of nested items is not news.

The entire content is that FogBugz has met a routine feature request. This belongs in the FogBugz changelog, not on a news site.

Re:Subcases and Hierarchy by btilly on Wednesday September 02, 2009 @08:53PM (#801507)
Your account is incomplete. You failed to describe the frantic back patting they gave themselves.

On a more substantive note they did describe how their first implementation failed a usability test.