This video, and the whole channel is hidden gem. Absolutely amazing. And I'm proud to be one of 29 people who subscribe to this channel and understand this video and even enjoy it. Thank you very much!!
because he kept misspelling it. as you can see, he doesn't use an already defined variable. He does define a new variable named "distatnce" and each time he used that variable, he kept using that name, never correcting it, but despite that, the variable is correct, because it exists.
@@jkf16m96 - I see my mi8stake now, I didn't realize he was calling a variable until I went back and looked at it again, I thought he was calling a function, sorry for the confusion...
The reason behind it is that I like writing code in c++, but to be honest: C++ generally offers better performance than Python because it's a compiled language. In physics simulations (like Verlet integration), which involve a lot of mathematical calculations, performance is crucial. C++ gives you control over memory management, which can lead to optimized, faster code.
What always worked for me was finding a project that interests you (one that's not too easy compared to your programming level but also not too hard) and learning programming (c++) while working on it.
@@FelipesCoding thank you for your recommendation. I will give it a go. I will think I will start with just a random number calculator project and then go from there. I mainly use Python for statistical analysis, but I am interested in getting more into programming and creating interesting things like you created.
Love the chill music
This video, and the whole channel is hidden gem. Absolutely amazing. And I'm proud to be one of 29 people who subscribe to this channel and understand this video and even enjoy it.
Thank you very much!!
Thanks for watching, really appreciate it!
Great video , I hope you will post more
Great!
Nice video, im working on a nbody simulation using the Barnes Hut algo.
I suggest you explore that field, its very interesting :)
Yes, it's really nice. I'm looking forward to reading more about it and maybe implementing some cool stuff. Thanks for watching and your suggestion
How does the simulation still work when you misspelled distance on line 29 at 7:32?
because he kept misspelling it.
as you can see, he doesn't use an already defined variable.
He does define a new variable named "distatnce"
and each time he used that variable, he kept using that name, never correcting it, but despite that, the variable is correct, because it exists.
@@jkf16m96 - I see my mi8stake now, I didn't realize he was calling a variable until I went back and looked at it again, I thought he was calling a function, sorry for the confusion...
Honest question, is C++ better for coding this than python and why?
The reason behind it is that I like writing code in c++, but to be honest:
C++ generally offers better performance than Python because it's a compiled language. In physics simulations (like Verlet integration), which involve a lot of mathematical calculations, performance is crucial. C++ gives you control over memory management, which can lead to optimized, faster code.
@@FelipesCoding thank you for your answer. I appreciate it. I tried learning c++. Do you have any tips or courses I could try to master the basics?
What always worked for me was finding a project that interests you (one that's not too easy compared to your programming level but also not too hard) and learning programming (c++) while working on it.
@@FelipesCoding thank you for your recommendation. I will give it a go. I will think I will start with just a random number calculator project and then go from there. I mainly use Python for statistical analysis, but I am interested in getting more into programming and creating interesting things like you created.