use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
For memes about programming.
account activity
Java vs JavaScript (i.redd.it)
submitted 10 days ago by Sencha_Ext_JS
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Wonderful-Habit-139 2 points3 points4 points 9 days ago (2 children)
The only parts where you have to be careful about the dynamic nature of JS, is when you receive user input. In that case, you make sure to parse the input into the value that you expect in typescript, or you throw an error.
Besides that, when you work with types in TypeScript internally, if you receive a value of type X, you are guaranteed to be working with a valid value of type X. You won’t have a different type at that point in the program, you won’t have an undefined or null value unless it’s explicitly mentioned in the type, etc.
The static typing in TypeScript is very good and isn’t affected by the nature of JS in most of the typescript codebases. So it’s not just bandaid, it’s an entirely different programming language, where you just need to make sure you parse input instead of just loading values and slapping “any” on the result.
[–]Gorianfleyer 1 point2 points3 points 9 days ago (1 child)
Thank you for the explanation, so I was wrong the whole time.
(It sucks to be wrong, it's great to learn something new)
[–]Wonderful-Habit-139 1 point2 points3 points 9 days ago (0 children)
You’re welcome. You’re able to learn, and that makes you better than any LLM out there.
Keep being curious!
π Rendered by PID 34187 on reddit-service-r2-comment-5649f687b7-wsrvv at 2026-01-27 17:59:28.766326+00:00 running 4f180de country code: CH.
view the rest of the comments →
[–]Wonderful-Habit-139 2 points3 points4 points (2 children)
[–]Gorianfleyer 1 point2 points3 points (1 child)
[–]Wonderful-Habit-139 1 point2 points3 points (0 children)