r/learnprogramming • • 19m ago

What programming language should I focus on as an occasional hobbyist?

As in, I sit down to code for a few hours once a month, give or take.

I've been chugging along on a text-based game in TypeScript with Vue. I'm constantly running into quirks and hidden nuances of the languages. Spending my precious hours figuring out the difference between interfaces and types, only to learn that it's pretty much personal preference, makes me feel like I'm wasting time due to the language choice.

Also the fact that I have to juggle several languages with their idiosyncracies: HTML, CSS, TypeScript, JavaScript (when it offers its own quirk), Vue, JSON. Forgetting one language then having to get back into it.

Can I have a more straightforward language? Maybe I should go to just bare JavaScript? I've used several languages in the past, including Java, C#, Python, Lua.

1 Upvotes

5 comments sorted by

•

u/DannyDeKnito 14m ago

If you're struggling with concepts such as interfaces, might be time to take a step back and learn some theory/terminology

No programming language is without its own idiosyncracies, but where they show up is a matter of how you use them.

When it comes to "gaming" usecases i'd still stick with something strongly typed like typescript or even golang since you're (apparently? Might be wrong, but im seeing a lot of web stuff there) making it web-based

•

u/xpusostomos 5m ago

One way to approach it, as a learner, is to start reading the book SICP, which is designed for learners, and you learn the language Scheme which is very simple at its heart, and a favorite of many. Because Scheme has code as data and data as code, it can replace every language you can think of, including json, etc, and there are even frameworks for building web apps in it. As a bonus, you'll be proficient in programming Emacs once you learn it. But at the end of the day, it's whatever floats your boat.

•

u/ookkroam 1m ago

honestly for once a month hobby coding i'd stay with typescript, but drop vue for a while and just use plain ts with the dom. most of the pain you describe comes from juggling the framework on top of everything, and a text game doesn't really need one. i did something similar and my hours stopped getting eaten by tooling quirks once i cut the stack down.

•

u/Ill_Nebula_2419 17m ago

Claude code language 😂