etresoft wrote:
Then you have two actions. You are allocating the pointer, but not initializing it. Then you assign a value to the pointer. It is more wasteful in lines of code than anything else. One of the things that keeps Objective-C simple is that objects are always pointers. Pointers are simple data types and very easy to deal with. The above two statements in C++ would be an entirely different discussion.
Understood. Well, more or less.
I much prefer answering Tron's questions than the old "I spilled soda pop in my Macbook Pro and now it won't turn on!"
And that was going to be my next thread...
Don't expect to learn anything about memory allocation in a C# class.
Even I know that much. I have experience with C#, and while its simplicity could be nice at times, it always left me feeling empty -- like someone else had done all the work for me and I wasn't even
really programming. Same thing with VB, of course, but that goes without saying. That's where I started programming, unfortunately, so maybe the implied brain damage that comes with those languages is why you guys can't seem to get some of these concepts through my head. I didn't spend very long with them, though -- just enough to learn the basics of programmging (variables, loops, branching, ect.), so there may yet be some hope.
The squeaky wheel gets the grease. As long as you get good answers here in the forums, keep asking questions.
I plan on it. 🙂
But seriously, thank you for the encouragement. It's always important to me to know I'm not getting under anyone's skin
too badly around here. I do still agree with what Ray said in his last post -- I'm not getting anywhere hacking away at issues that I'm not even really capable of understanding at this point. I want to try to keep things more relevant. That being said, you can always count on a new Tron thread popping up every few days (or minutes)...
Try to find a good computer science program to enroll in too. You will learn a lot there.
I've done that. I'm still 22, and I spent the first few years after high school doing things that weren't conducive to, well... anything. So, after getting my life on track, I finally enrolled at a community college (CCBC -- Community College of Baltimore County). At the time I had just started messing around with programming in Visual Studio a bit, and my other interest was chemistry (still is, to an extent) -- I ended up choosing Computer Science for a major because, as much as I loved chemistry, I've never come across a hobby that was nearly as satisfying to me as sitting at a computer writing line after line of code, so I chose that path, and I'm glad I did.
Anyways, at CCBC, I haven't been incredibly impressed with the Computer Science program (although it hasn't been
that bad). Besides the wonderful CINS 101 class and the data communications class that didn't interest me all that much -- the only programming or even compluter-related courses that the AA degree I'm going for requires are Introduction to Unix, Introduction to OOP, Introduction to Visual Basic 2005, and Introduction to C++. I've already taken them all. The Visual Basic class was... well, Visual Basic. The introduction to OOP class was about as abstract and unenlightening as I could imagine a class on programming ever being (you can tell from my incredibly novice threads on Objective-C that, despite the course in OOP, I don't understand these concepts well). Also, instead of teaching OOP in the context of a real, tangible language, the course used pseudocode -- and I don't know how anyone else here feels about that, but I think it's the most grand waste of time imaginable. I was never able to apply any of the OO concepts I learned to programming because there was no programming -- no compiler, no language -- just psuedocode.
Anyways, the Unix course and the C++ course were actually pretty good (although I've forgotten and am in the process of re-teaching myself most the Unix material). They were helpful to an extent. But, as I'm sure you guys can tell from the nature of my questions and threads, I should probably be just a bit further along in things having taken all these courses (and getting A's in them, so it's not like I wasn't doing the work or anything).
Now that I've taken all the fun stuff, I'm stuck with all the other random courses necessary for an AA degree (English and Spanish and health and science courses and what not). I've gotten most of them knocked out of the way. Right now I'm taking Calculus I, which is turning out to not be a great deal of fun, and I still have Calculus II and Discrete Mathematics after that.
Anyways, sorry to bore you guys with all that. I guess my point is, I haven't had the best experience with programming classes, and combining that with the fact that I truly enjoy and tend to do better with learning things on my own, I've just been sticking to hitting the books recently. I wouldn't mind, however, doing what Ray mentioned in the last post and just trying to find a separate class to take at a different campus or something, strictly for the sake of my programming skills (and not toward an AA degree or something like that). I hadn't even considered that option, but I think it might be helpful.
After I get the AA at CCBC, I intend to go to UMBC, where I'm told they have an excellent Computer Science program, so I've kind of been holding off my hopes at actually learning something from a real class until then.
Anyways, sorry to bore you will all that stuff -- I guess I'd just really like to hear any input from you guys who've been through it all, you know -- the classes and the Computer Science programs and what not. So if you have any more input or advice, send it this way!