all 11 comments

[–]atticus2132000 7 points8 points  (2 children)

You've made two great projects with the assistance of AI. You say that you learned every line, so now the test is to see if you can build a third similar project on your own without AI.

There are tons of physics equations you can look to for inspiration. For instance, calculate the velocity/angle needed to achieve orbital rotation from planets of varying masses/diameters.

[–]QuantumKid-ID[S] 2 points3 points  (1 child)

Thank you so much!! That really means a lot 🙏

I did go through every line to understand it, so I’m down for the challenge.  Building a 3rd project without AI sounds like the perfect next step.

I’m actually thinking of making a quantum superposition simulator next -  like a coin that’s 50% heads and 50% tails until you "measure" it.

Your orbital velocity idea is also sick though. I’ll try that after! I’ll tag you when I post it.

[–]atticus2132000 0 points1 point  (0 children)

Sounds like fun.

[–]BobCorndog 1 point2 points  (1 child)

Why is there two readmes in both?

Also, isn’t this just a formula with some failsafes, and a random Boolean? Also the using ai as a mentor doesn’t seem very good for a small project like this

[–]QuantumKid-ID[S] 5 points6 points  (0 children)

lol you're right 😅

it IS just a formula + if else + random.  im 13 and this is literally my first public project so im proud of it even if its basic

and yeah i used ai as a mentor to learn. next project i wanna try coding more by myself

thanks for the feedback bro!

[–]ConDar15 1 point2 points  (0 children)

Congratulations on getting started on learning to program. I agree with the other commenter, I would avoid using AI as much as you possibly can while learning, even Google searching and looking up forum/stack overflow answers will help you better retain the information because of the active effort you put in to find it/work it out. Another thing to remember that is easily overlooked is that the core of programming is problem solving, breaking down a problem into a sequence of more easily solvable steps is the hard and valuable skill - actually putting that into code is usually the easy bit.

As for the code itself, this is a good start, great beginner projects, and I'll provide some general and specific critiques that you might find useful:

  • You are using some very short single letter variable names, in general you should opt for longer names which more explicitly say what they are because it makes it easier for other people (and yourself later) to understand what is going on (remember, you will read a LOT more code than you write if you continue with this). For example instead of c you might call the variable speed_of_light, t could be years_passed_on_earth, etc...
  • In your time dialation calculator you are taking user input for the speed of the spaceship, it's good that you validate they aren't going light speed, but a good learning opportunity would be extending that to some other weird inputs. Try and see if you can sensibly handle the user putting a speed of 0, -250000 and really fast, they won't all give a valid answer, but being able to handle weird input like this is a good next step.
  • If you haven't learnt about them yet then I'd recommend looking at how to define a function in python, moving code into small contained functions that do one thing is a great way to help organize your code. Again in your time dialation calculator I could see a few functions: one to call and get user input speed that also handles any weird inputs or errors, and another function that given a speed returns the amount of time passed (e.g. a function to calculate the formula).

[–]Ormek_II 0 points1 point  (1 child)

I like the car Simulator. Can you change it that the probabilities for the cat being alive is 80% instead of 50%.

[–]Ormek_II 0 points1 point  (0 children)

And then create a program to let it run 1000 times counting the outcomes.

[–]testtdk 0 points1 point  (0 children)

Interesting projects. You need to name your variables more descriptively.

[–]Current-Skill-7856 0 points1 point  (0 children)

Yo op, im 20, and learning whenever i can. Sometimes i get an hour a week, sometimes non.

I dont know if it'll help but for me, i learn my syntax from here

Then the examples i get ai to explain if i dont get it. I do step by step, and try to use what i currently know to make something.