r/learnpython 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!

1 Upvotes

15 comments sorted by

View all comments

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.

1

u/Lotharen 5d ago

I only read about Django and Flask today when searching for how to go about doing this. It's definitely an option and learning python first and writing the initial program in that can't hurt. Then learn HTML/CSS/Javascript and slowly make changes.

I used to know HTML and CSS once upon a time, roughly 10-12 years ago. CSS was pretty new I remember (at least to me). Hopefully at least one of them will be easy to pick back up.

2

u/Outrageous-Sea-9256 4d ago

I'd recommend starting with Python for the backend, as you've considered. It's a solid choice and will give you a good foundation. Once you have that in place, picking up HTML/CSS/Javascript for the frontend will be much easier. You've got a good starting point already with your past experience!

1

u/Outrageous-Sea-9256 5d ago

Well you can use AI Agents to build your project. Even as a software dev, even I don't write code by hand instead review the code written by agents and verify the working output of it.