![](https://programming.dev/pictrs/image/cbd2e91b-ba44-4b8f-a80b-7645287fa019.webp)
Commenting to save for later, thanks!
Commenting to save for later, thanks!
This is the advice I always give people. You have to have some small goal in mind. Learn the basics of the language how to get started and then just start programming. When you run into a problem, Google it. As you work through the problems, you'll learn how to handle them going forward (for the most part).
I'm not alone! Been a dev for almost 10 years and every time I declare and initialize a dictionary I either have to Google it or stare at it for a minute to realize what I'm doing wrong 😂 I blame JSON.
At work, when I was helping with some frontend stuff, we used object literals.
const DIRECTIONS = {
UP: "UP",
DOWN: "DOWN"
} as const;
type DIRECTIONS = typeof DIRECTIONS[keyof typeof DIRECTIONS];
Taken from option 2 in this blog post.
https://maxheiber.medium.com/alternatives-to-typescript-enums-50e4c16600b1___
I went into this with some light curiosity and now I want to build a game using godot. The way he explains everything is very clear and concise. Very good tutorials.
Side note: I never realized it was pronounced 'guh-doh'. My uncultured mind thought it was go-dot'.
I use the Jerboa app on my phone which doesn't seem to have this implemented yet.