Learn You Some Code on Humble Bundle

General discussion and socializing.

Re: Learn You Some Code on Humble Bundle

Postby TurtleHermit » Mon Oct 29, 2018 9:43 pm

loftar wrote:
TurtleHermit wrote:pointers and mallocs are such black magic to me still.

I am curious why that is so. Looking out from the inside, it's difficult for me to see why pointers are even mysterious, yet it seems to be common to anyone trying to learn C. Pointers are just memory addresses; nothing more, nothing less.

TurtleHermit wrote:Wonder if I should spent a bit more time with C or move over to C++ or try python/java to see how different it is from C.

I would very definitely not recommend learning C++ before understanding C somewhat properly. If you don't understand pointers, C++ is just going to be worse. Python and Java are least different in that regard, though I'd still consider it very sound to understand pointers to do any sort of programming.



My friends told me that pointers are often declared as much, far more much than just memory address. From my yet small experience, I feel like, how to explain it... You get a stick to point at some part of some page inside of the book, but it's very easy to put that pointer outside the book, which make me often wonder, that when I just use pointer, I have to build a box around the book, so it has no chance to escape beside book. Of course it is all theory and I'm sure I haven't got enough practice, but that's how I feel around pointers.
User avatar
TurtleHermit
 
Posts: 88
Joined: Mon Sep 16, 2013 1:37 am

Re: Learn You Some Code on Humble Bundle

Postby MagicManICT » Mon Oct 29, 2018 11:23 pm

Pointers in C/C++ are tricky and one of the hardest concepts for students to understand. In my freshman programming class in college, this was the hardest section for most of the students. Java and a few others get around them with references, but it's not really much better. There's really only three things you can do to learn them, and that is Practice, Practice, and more Practice. This is where good instructional books on programming come in handy as most are going to have way more practice problems than your average website will have readily visible. (Note I'm counting beginner level problems, not anything that would include or be considered intermediate to advanced theory or technique.)
Opinions expressed in this statement are the authors alone and in no way reflect on the game development values of the actual developers.
User avatar
MagicManICT
 
Posts: 18435
Joined: Tue Aug 17, 2010 1:47 am

Previous

Return to The Inn of Brodgar

Who is online

Users browsing this forum: Claude [Bot] and 56 guests