BR41N-FCK wrote:
If I had a project with a short deadline - sure, I'd use a pre-made (what else can we call it?) solution. But right now I am learning algorithms, so there's no point using ready ones.
The only reason for the sorting and linked-list exercises is to give students some experience with challenging, but solvable problems in programming. Don't get me wrong, there is great value in that. However, it would be better done in C or even Pascal. Computer Science teaching kind of went off the deep end in 1990 or and has only gotten worse.
Thank you for solving my problem. It was so simple... and maybe that's why I have overlooked it :-)
One of the skills a programmer must have is how to debug such problems. That doesn't always mean running in a debugger. I very rarely use a debugger. Most modern, UI or server work is far too complex for such things. Simple "printf" statements are usually all that is required.
Speaking of C++. Why would you call it awful? I mean it isn't the best for developing windowed apps (see: objective-c and c# on windows), but it is great for console ones and also it is good for education purposes thanks to its plain syntax (compared to c# and not to even mention the crazy syntax of objective-c).
Because I wasted so much of my programming career on it. I suppose it was a valuable lesson. I suspose if someone had told me it was junk in 1995 I probably would have ignored them then. Now I have a decent store of tacit wisdom that is hard to explain. I just "know" when someone does or doesn't know what they are talking about. Just because "everybody is doing it" doesn't mean everybody isn't wrong.
Objective-C syntax is actually quite simple. It is just the message passing through brackets. That is insignificant compared to cryptic C++11. You aren't even using C++ in this program. With the expection of iostream, you are only using C. I don't see any templates, no references, no const-correctness, no virtual functions, no inline code, no iterator traits, no lambdas, no locales, no iomanips. It's all junk that only makes life harder and life is short enough as it is.