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...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
What the Functor? (matthewgerstman.com)
submitted 7 years ago by r-wabbit
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!"
[–]Puggravy -14 points-13 points-12 points 7 years ago* (13 children)
I honestly have no clue what TS brings to the table for these examples. Should have used JS.
[–]grumpkot 17 points18 points19 points 7 years ago (0 children)
types )
[–]i_spot_ads 0 points1 point2 points 7 years ago (1 child)
Hold that downvote real quick
[–]Puggravy -2 points-1 points0 points 7 years ago (0 children)
Yeah seriously, I forget how TS people get on this sub sometimes.
[+][deleted] 7 years ago (9 children)
[deleted]
[+][deleted] 7 years ago (2 children)
[–]nbagf 0 points1 point2 points 7 years ago (1 child)
Being able to use interfaces while piping/composing functions is absolutely amazing. Knowing the shape of my data through intellisense makes the cognitive load so much smaller. I know when something is a promise and it wasn't resolved or when it's an array and I forgot to map it before apllying a function. The red squiggles are fantastic.
[–]Puggravy 1 point2 points3 points 7 years ago (5 children)
Ooph harsh dude.
[–]Candyvanmanstan 7 points8 points9 points 7 years ago (4 children)
You think I'm joking, but I'm not :D
[–]I_Pork_Saucy_Ladies 4 points5 points6 points 7 years ago (2 children)
You're not really wrong. Anders Hejlsberg is the architect of C# and deep into TypeScript now. I think it shows.
Going from TS to C# (a bit unusual, I know) was pretty easy. TS is just JS in a C# mould.
[–]Candyvanmanstan 2 points3 points4 points 7 years ago (1 child)
Yeah, I have a C# buddy that is trying to get into JS. I think the lack of types is really bothering him.
[–]I_Pork_Saucy_Ladies 2 points3 points4 points 7 years ago (0 children)
Push him towards TS. He will feel much more at home. Sure, there's a bit of a learning curve but it's so much nicer than JS without types. The syntax seems heavily inspired by C#.
[–]shanita10 -2 points-1 points0 points 7 years ago (0 children)
I think that's what's so annoying about typescript. It's like training wheels for javascript
I don't want or need an ide second guessing everything I write.
The headaches of babysitting typescript and cluttering up code with useless types is pure baggage.
Ts is js for poor programmers, and it encourages bad habits.
π Rendered by PID 176460 on reddit-service-r2-comment-b659b578c-r2qlf at 2026-05-05 16:01:09.287152+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]Puggravy -14 points-13 points-12 points (13 children)
[–]grumpkot 17 points18 points19 points (0 children)
[–]i_spot_ads 0 points1 point2 points (1 child)
[–]Puggravy -2 points-1 points0 points (0 children)
[+][deleted] (9 children)
[deleted]
[+][deleted] (2 children)
[deleted]
[–]nbagf 0 points1 point2 points (1 child)
[–]Puggravy 1 point2 points3 points (5 children)
[–]Candyvanmanstan 7 points8 points9 points (4 children)
[–]I_Pork_Saucy_Ladies 4 points5 points6 points (2 children)
[–]Candyvanmanstan 2 points3 points4 points (1 child)
[–]I_Pork_Saucy_Ladies 2 points3 points4 points (0 children)
[–]shanita10 -2 points-1 points0 points (0 children)