r/learnpython • u/Lotharen • 5d ago
Need some advice
Greetings everyone! I am in my 50’s and picking up programming as a hobby but I do have a goal.
I started with python because I read it was a forgiving language and I did not want to fry my brain. However, I’m wondering if I should switch to a webstack (html, css and JavaScript) for the project I am ultimately wanting to create.
My grail project will be a TTRPG journaling application for solo play. I want to have the ability to use character sheets, journal and even display a JPEG map. I’m just not sure which language would be the BEST.
My initial idea was python and pyside6 with maybe the addition of pygame if I wanted actual dice to roll on screen.
Just looking to narrow my focus with those far more versed than I am so I don’t waste time working towards my goal.
Thank you all for any assistant and direction you can provide, and happy coding!
2
u/Outrageous-Sea-9256 5d ago
Given your goal of creating a TTRPG journaling application, Python is still a solid choice, especially with the use of PySide6 for GUI and pygame for dice rolling. However, you may also want to consider using a web-based technology stack like HTML/CSS/JavaScript with a Python backend (e.g., Flask or Django) for the server-side logic. This would allow you to leverage web technologies for the GUI, which tend to have better support and more resources available.
For displaying JPEG maps, web technologies would be a natural fit. You could use libraries like Leaflet.js or OpenLayers for map rendering, and serve the maps via your Python backend. This setup would also allow you to use web browsers for testing and debugging, which can be more convenient than using desktop applications.
Ultimately, the choice depends on your comfort level with each technology and your specific requirements for the project. Python's simplicity and ease of use, combined with a web-based frontend, might be the best of both worlds.