I want to learn more programming. Fun method a la physics forum?

AI Thread Summary
To make programming more enjoyable, engaging projects that combine personal interests with learning can be highly effective. One suggested project involves modeling the physics of billiard balls, specifically simulating a cue ball striking a group of balls to determine the angle and velocity needed to pocket a specific ball. This project not only offers a practical application of programming but also incorporates elements of geometry and basic physics, making it a fun challenge.For those new to programming, starting with a simple project like this can help build foundational skills. Utilizing tools like MATLAB or similar programming environments can facilitate the modeling process. It’s important to simplify complex elements initially, such as assuming a tight rack of balls, to focus on the core mechanics of the simulation. Engaging in such projects can enhance understanding of real-world complexities and foster a deeper interest in programming and computational modeling.
pa5tabear
Messages
174
Reaction score
0
I've made a few efforts to learn to program in the past, but I've never lasted more than a few days.

What are ideas on ways to make it fun? Websites maybe? Or forums?

For learning science/engineering principles, this forum is great.

Do you guys have suggestions for ways to make programming fun?
 
Physics news on Phys.org
Here's one: Group 3 billiard balls together and send a cue ball moving into the first ball in the group. Model where the balls go as a function of the angle and velocity of the cue ball hitting the first ball in the rack. That should keep you busy for a while.

Group them like this:
O
OO

I did this with a 9-ball break as a computational project during my undergrad. My goal was to figure out the angle and velocity of hitting the first ball that would cause the 9-ball to go into a pocket thus winning the game. I had to simplify a lot of elements like no follow on the cue ball and a tight rack. I played around with the model to show what would happen with a loose rack.. Needless to say it became obvious why I made a lot more money gambling on pool after this project. Even with a fairly solid model, things don't always work out as simulations will show and a project like this will only open your eyes to how complex the real world really is.

When I got to grad school some of the professors here asked about my academic projects from undergrad and I told them about this one.. they're still wondering why I'm not doing statistical mechanics for my research, lol.
 
SophusLies said:
Here's one: Group 3 billiard balls together and send a cue ball moving into the first ball in the group. Model where the balls go as a function of the angle and velocity of the cue ball hitting the first ball in the rack. That should keep you busy for a while.

Group them like this:
O
OO

I did this with a 9-ball break as a computational project during my undergrad. My goal was to figure out the angle and velocity of hitting the first ball that would cause the 9-ball to go into a pocket thus winning the game. I had to simplify a lot of elements like no follow on the cue ball and a tight rack. I played around with the model to show what would happen with a loose rack.. Needless to say it became obvious why I made a lot more money gambling on pool after this project. Even with a fairly solid model, things don't always work out as simulations will show and a project like this will only open your eyes to how complex the real world really is.

When I got to grad school some of the professors here asked about my academic projects from undergrad and I told them about this one.. they're still wondering why I'm not doing statistical mechanics for my research, lol.

That sounds really cool! Do you have suggestions on how to start something like this? I should say that I've done very little programming. I've taken an introductory MatLab class, and I've played around with SQL and Basic, but almost always just modifying other programs. It's the setup and getting started part that I really need to figure out.

Would you mind sharing what you did? I can think of geometry and basic physics to model that sort of thing, but I don't much know what to do beyond the basics.
 
Hey, I am Andreas from Germany. I am currently 35 years old and I want to relearn math and physics. This is not one of these regular questions when it comes to this matter. So... I am very realistic about it. I know that there are severe contraints when it comes to selfstudy compared to a regular school and/or university (structure, peers, teachers, learning groups, tests, access to papers and so on) . I will never get a job in this field and I will never be taken serious by "real"...
Yesterday, 9/5/2025, when I was surfing, I found an article The Schwarzschild solution contains three problems, which can be easily solved - Journal of King Saud University - Science ABUNDANCE ESTIMATION IN AN ARID ENVIRONMENT https://jksus.org/the-schwarzschild-solution-contains-three-problems-which-can-be-easily-solved/ that has the derivation of a line element as a corrected version of the Schwarzschild solution to Einstein’s field equation. This article's date received is 2022-11-15...

Similar threads

Replies
3
Views
2K
Replies
16
Views
2K
Replies
4
Views
1K
Replies
12
Views
2K
Replies
71
Views
683
Replies
9
Views
3K
Back
Top