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 363856
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE[2]: ...
by Hiev on Fri 15th May 2009 19:47 UTC 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[4]: ...
by Doc Pain on Sat 16th May 2009 08:01 in reply to "RE[3]: ..."
Doc Pain Member since:
2006-10-08

"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.
"

You're right. Take into mind the word "algorithm" - it's much older than the 19th century, but it's essential to understand what is meant by it when you're doing serious programming work. As well as concepts - linked list, stacks, trees, enumerations, arrays, even pointers and memory addresses - that are important, it may be possible that a programmer never has to implement something such basic on his own, but it's neccessary that he understands what's going on "under the hood", so if problems occur (and they usually will), he has a clue about how to solve them. Surely, this is often considered "old-fashioned" or "unmodern" by many novice programmers who know how to click in "Visual BASIC" and consider themselves geniuses. But when you need to optimize code, you're thinking in "old-fashioned" categories like exponential complexity, iteration loops or memory layout.

Furthermore, I agree with your consideration that today's educational concepts in computer science don't seem to put much emphasize on teaching basic concepts. But finally, it's these basics that enable you to understand how things work. But if you're just keen on a BA, MA, Dipl.-Inf. or some other degree that you can show around, while treating your PC as a worse typewriter, it should be sufficient. :-)

Reply Parent Score: 2

RE[4]: ...
by Denbish on Mon 18th May 2009 17:07 in reply to "RE[3]: ..."
Denbish Member since:
2009-03-25

See that's funny, because if you asked Stroustrup, only using C++ to replace what you'd otherwise be using C for is a huge waste of the immense featureset that C++ provides.

You know what's worse than a Java programmer who doesn't know how to program? A C++ programmer who doesn't know how to program. The usual assumption is that bad programmers won't cut it in C++, but personal experience has taught me that bad C++ programmers are quite plentiful. The sheer destructive power of the bad C++ programmer is unmatched in the world of software engineering.

The other dirty little secret is that unless you're a bonafide expert with years of experience, you're probably a bad C++ programmer.

Reply Parent Score: 1

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