DEV Community

Discussion on: Why do we write JavaScript like this?

Collapse
 
aleksandrhovhannisyan profile image
Aleksandr Hovhannisyan

Yeah, I blame lack of CS literacy here. Object values are memory addresses. "References" are pointers. This misunderstanding stems from a lack of exposure to languages like C++/Rust, where you're forced to understand what pointers are and how they're used.

Thread Thread
 
johnkazer profile image
John Kazer

Makes me think of an interesting split of opinion or approach or maybe programming temperament.

Some folk focus on the logic of what they are trying to achieve, they like functions and hate pointers. Others like to know more about what the computer is actually doing, they love pointers and benchmarking.

I'm being simplistic but it made me wonder...