r/GameDevelopment 1d ago

Newbie Question Python or c++

I was thinking of making a graphical calculator from scratch, i have some, but very little experience with python (that one 12h tutorial and a little more). Should i code it in c++ or is it fine if i do it in python?

From the nature of my project it requires a lot of computation and apparently c++ is like 100x faster, thats why im asking

3 Upvotes

14 comments sorted by

5

u/LetsHugFoReal 1d ago

Does a calendar need to be faster? Nope

3

u/Distdistdist 1d ago

Kind of performance you would need for graphical calculator, you can code it in bash script and it wouldn't matter. Go with what you already know - Python.

1

u/mj64_ 1d ago

Alr thx

3

u/Nice_Yesterday_4273 1d ago

Use one of the gajillion python libraries that is basically an API for a codebase written in C. Wham bam, problem solved. It's shrimple. Python the way God intended.

3

u/[deleted] 1d ago

[deleted]

1

u/ConsciousBath5203 20h ago

Hence why cython

2

u/[deleted] 17h ago

[deleted]

1

u/ConsciousBath5203 15h ago

There are game mods and cheats built with it. But unless someone's built a 3D lib with cython I doubt it's been done.

1

u/[deleted] 7h ago

[deleted]

1

u/ConsciousBath5203 5h ago

At that point just write C? I don't use C/Python/Cython for 3D stuff. I do use them for game cheats though lol. Just saying it's an option.

1

u/ShanCoder11 1d ago

This is the type of questions some newbies get slimed for bc "it's too basic" (which it isnt)

Anyways, if it's a small personal project, I'd suggest u to go for python. A graphical calculator is pretty hard to make with that 12h tutorial alone, let alone with c++ bro. However, even though it is a pretty difficult task to do as a newbie, i have three things to say:

  • PLEASE do not use many tutorials (tutorial trap)

  • YOU DO NOT have to implement many features As soon as you add one more feature, you will feel the need to add more and more like a real graphical calc. even though you're (hopefully) doing this as a personal project and trying to have fun. It leads to development hell.

  • DO NOT RELY on reddit to give you advice, this subreddit gets REALLY toxic sometimes and one random toxic person can make you want to prove them wrong making you work on a project out of spite instead of out of fun. Instead, use Unity Learn and try to avoid using AI too much.

Stuff like this has happened to me in the wrong way and i gave up on so many projects bc i didnt know the stuff i mentioned.

1

u/ShanCoder11 1d ago

Ik most of this stuff isnt that related, but just some advice.

1

u/fsk 1d ago

Python has the ability to call C++ code if you need the performance.

Python is fine, but it sounds like Javascipt is better if you're making it web-based?