Dion Boles

Full Stack Engineer · Healthcare & FHIR


Hello world!

So I realize this is my first post in about a year or two, but I have come back to talk about how learning C++ and other languages cn be amazing for your growth as a programmer .

The main thing is learning about memory, pointers, references, and how they work in your computer’s memory. 

So a small example based off of what I learn:

Ok so this is a symbol for a Pointer *

And here is one for a reference &

——————————

Pseudocode

Int x = 1 // this a throwaway value

Int *y = x // this is a pointer so y (points at) -> x = 1 so if x changes then the pointer will change with it

Int z = &y // so this is a reference and this goes to the address in memory and it takes the value of x because y is pointing to x.

This made me think of how variables work in JavaScript. I’ll have to look more into this; this is just a quick brainstorming post.

← All posts