r/learnprogramming • • Apr 05 '22

Name one programming/comp sci concept you never understood and if you understand it, try to explain it to them

Name a programming concept such as virtual functions, pointers, certain algorithms, etc that you always had a hard time understanding and why.

Someone else who reads yours and does understand it, try to explain it to them to help them learn

1.6k Upvotes

738 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Apr 05 '22

[deleted]

2

u/[deleted] Apr 06 '22

Lol I don’t know why I was downvoted. I’m a geologist and a lot of my colleagues with physical science backgrounds also get “broke brain” when confronted by looping and “brain scramblies” when recursion arrives.

Maybe it’s the brevity of the presentation in a lot of materials? The examples in materials I used also always seemed to be sort of disembodied and never towards larger cohesive tasks. Like now that you know “x =‘foo’ for butt in x: print(butt)” you can evaluate the value of a scalar function in 2D for every point in a rectilinear grid where distance between nodes is a constant

0

u/[deleted] Apr 06 '22

[deleted]

1

u/[deleted] Apr 06 '22

Yeah I mean I think the very concept of iteration really fucks with people initially and putting that into a succinct piece of writing seems WEIRD to people. “So like this sentence is telling itself to do something until it tells itself to stop?!”

→ More replies (1)