Linked by Thom Holwerda on Thu 14th May 2009 15:39 UTC
Java This article explains how to develop and implement trees in the Standard Widget Toolkit. Learn how an SWT tree is created and populated with data, how columns can be used to categorize data, how a tree can be extended to support row sorting, and how the tree's content can be searched.
Thread beginning with comment 363847
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE: ...
by cb_osn on Fri 15th May 2009 19:01 UTC in reply to "..."
cb_osn
Member since:
2006-02-26


C++ is not for everything, nor is it for everyone-- especially with the proliferation of "Java Schools" that pump out graduates who have never heard the word 'pointer' and couldn't write a linked list if their lives depended on it.

But if you take the time and effort required to learn and understand C++, it's a very powerful tool to have at your disposal for those times when it is the best tool for the job.

Reply Parent Score: 2

RE[2]: ...
by Hiev on Fri 15th May 2009 19:47 in reply to "RE: ..."
Hiev Member since:
2005-09-27

I can say C++ is utter crap because I use it and I hate it.

Linked list with pointers? is this 19th century or what?

Reply Parent Score: 2

RE[3]: ...
by cb_osn on Fri 15th May 2009 21:12 in reply to "RE[2]: ..."
cb_osn Member since:
2006-02-26

I can say C++ is utter crap because I use it and I hate it.

And there are plenty of us that also use it daily, and don't find it to be utter crap. Though I am not aware of your situation, so you may have a job that requires you to use C++ in areas where it's not the best option. In that case, I can understand why it would be painful. I get to decide which tools I use, and lately, I tend to prefer C++ for the low level bits, C# for the application level, and Python/Lua for scripting on top of that. This makes the easy things simple and the hard things possible. Taking C++ out of that mix would only cause me more trouble, so I find it to be a useful tool.

Linked list with pointers? is this 19th century or what?

No, but I would expect that anyone graduating with a degree in Computer Science would have some familiarity with the fundamentals of programming, and those would include pointers and basic data structures and algorithms. Unfortunately, this doesn't seem to be the case for a good portion of graduates anymore.

Reply Parent Score: 4

RE[3]: ...
by l3v1 on Mon 18th May 2009 12:41 in reply to "RE[2]: ..."
l3v1 Member since:
2005-07-06

Linked list with pointers? is this 19th century or what?


I'd say they'd need to do linked lists with pointers (and somesuch) exactly because it's not the 19th century. Languages - and teaching of them - drives new coders away from basic knowledge, also de-emphasizing knowledge of basic algorithms. The result is a bit frustrating - for me at least it is - since I feel (I work in a research institute with connections to universities) the handicaps they sometimes have because of this, and they don't even know the cause.

And FYI, just recently I had to create a tree structure with pointer node interlinks from the ground up, since no preexisting ones I could use would produce the preformance I wanted, it took me a few hours and it works great. It's not what I do every day, but if the knowledge is there, than it's no problem. If the knowledge is not there, well let me put it this way, sometimes you can't tolerate a few hours of work to go on for days and produce inferior results just because the coder doesn't have the necessary basic algorithmic and coding knowledge.

Reply Parent Score: 2