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

3

u/[deleted] Apr 05 '22

[removed] — view removed comment

1

u/FountainsOfFluids Apr 05 '22

Setting aside the fact that some programming languages won't let you do the function version, the static method is simply a convenient way of keeping the code organized. It makes sense to group math tools together under the class Math.

3

u/[deleted] Apr 05 '22

[removed] — view removed comment

1

u/FountainsOfFluids Apr 05 '22

I haven't worked with namespaces since college.

Can you import a namespace to get all the tools gathered in it?

→ More replies (2)