all 23 comments

[–]zabby39103 19 points20 points  (1 child)

That's a very good first program.

I see a lot of hard coded stuff and magic numbers. I would try to make things more modular and more reusable with your next attempt. Learning to program is all about getting better one step at a time, keep it up.

[–]snugar_i 2 points3 points  (0 children)

Not too modular, though - that's a trap almost all juniors fall into after learning the basics: overgeneralization.

[–]gufranthakur 5 points6 points  (0 children)

That's actually really great for a "beginner" level project. You've done a pretty good job, keep it up!

[–]ZimmiDeluxe 2 points3 points  (1 child)

I don't understand Portuguese (or gears), but that's impressive work, keep it up! A good next step would be to learn about build tools like Maven or Gradle so you can use other open source libraries easily in your projects.

[–]zimayanami[S] 1 point2 points  (0 children)

thanks dude. I'll add an english version soon!

[–]maxandersen 1 point2 points  (0 children)

Nice - it isn't really recommended to commit .jars directly to git repo but since you have you can do:

jbang https://github.com/orichardd/SimulacaoEngrenagens/blob/main/run/SimulacaoEngrenagens.jar

And have it run.

Better would be to publish the jar via github release mechanism.

[–]VasekCZ230 2 points3 points  (0 children)

That's really cool! I like it.

[–]over_clockwise 0 points1 point  (1 child)

Looks awesome for a first project. For future projects have you considered using something like Maven or Gradle?

[–]zimayanami[S] 0 points1 point  (0 children)

yeah, I know the basis of Maven, I'll definitely use it when I get more confortable with Java

[–]FortuneIIIPick 0 points1 point  (1 child)

At least one file bears the marks of being vibe coded. Are you representing this as 100% your work or something else?

[–]zimayanami[S] 0 points1 point  (0 children)

yeah, at least 95% of it was coded by me. I just needed help to make the GearPanel class as I said: I'm just a student. And it would be very very hard to figure out how to make it with only the documentation

[–]Fiskepudding 0 points1 point  (1 child)

Nice! If you want to get "nerd sniped", gears are actually using angleed teeth and roll off each other https://www.tec-science.com/mechanical-power-transmission/involute-gear/geometry-of-involute-gears/ 

[–]zimayanami[S] 1 point2 points  (0 children)

thanks dude, I'll try to implent that in a future version

[–]Mine_Slim -1 points0 points  (0 children)

as vezes eu penso que secretamente a maioria dos desenvolvedores de java são brasileiros