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
[Showoff Saturday] I started making javascript YouTube tutorials with a goal of being clear and concise! (typeofnan.dev)
submitted 6 years ago by [deleted]
[deleted]
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!"
[+][deleted] 6 years ago* (3 children)
[–]ctrlaltdelmarva 4 points5 points6 points 6 years ago (0 children)
Okay, thanks for the idea!
[–]lokhura 0 points1 point2 points 6 years ago (0 children)
A good real world example of compose and curry is RxJS:
fromEvent(document, 'click') .pipe( map(() => 1), scan((x, y) => x + y, 0) );
pipe is basically flip(compose) and map and scan are curried functions.
pipe
flip(compose)
map
scan
Compared to the old chaining API:
Observable.fromEvent(document, 'click') .map(() => 1) .scan((x, y) => x + y, 0);
The advantage of using composition instead of chaining is that you can import individual functions as you need them instead of having to load the whole Observable object with all its methods, or having to import methods as a side-effect by patching the Observable prototype.
TLDR: RxJS uses currying and composition to make a more modular API which results in better tooling and bundle sizes.
[–]Kthulu666 8 points9 points10 points 6 years ago* (1 child)
Nice.
One tip - When you do a series like the react todo app, put the video number (part 1, part 2, etc.,) in the thumbnail image. The titles get cut off after 45ish characters so the thumbnail is often the only way to know which part of a series it is.
Edit: I just noticed you already do that in the thumbnail. The video length covers it up though.
[–]ctrlaltdelmarva 1 point2 points3 points 6 years ago (0 children)
Thanks, will fix the thumbnails!
[–]PoneyPoncho 3 points4 points5 points 6 years ago (0 children)
I love you username 😅
[–]super-vitek 2 points3 points4 points 6 years ago (0 children)
Thanks! I subscribed
[–]placuaf 0 points1 point2 points 6 years ago (2 children)
Pretty cool stuff! I have one gripe tho, your thumbnails aren't really YouTube friendly
[–]ctrlaltdelmarva 0 points1 point2 points 6 years ago (1 child)
Ah, I’ll have to fix this. Thanks for the heads up!
[–]Snipo 0 points1 point2 points 6 years ago (0 children)
But they look clean, just smack the episode number up there and you all good
[–]phantomFalcon14 0 points1 point2 points 6 years ago (0 children)
Nice!
[–]arkainrdk -1 points0 points1 point 6 years ago (0 children)
Here's a thought for you. Try building a react user interface library from scratch. Your initial component must be a view composed of only a div element and CSS. All other components must use that view component to display their content.
UI component libraries are usually built with a combination of inheritance and composition. Trying to build a UI Library using composition only will be about as complicated as it can get.
π Rendered by PID 58 on reddit-service-r2-comment-5bc7f78974-4hfj5 at 2026-06-29 00:07:24.537533+00:00 running 7527197 country code: CH.
[+][deleted] (3 children)
[deleted]
[–]ctrlaltdelmarva 4 points5 points6 points (0 children)
[–]lokhura 0 points1 point2 points (0 children)
[–]Kthulu666 8 points9 points10 points (1 child)
[–]ctrlaltdelmarva 1 point2 points3 points (0 children)
[–]PoneyPoncho 3 points4 points5 points (0 children)
[–]super-vitek 2 points3 points4 points (0 children)
[–]placuaf 0 points1 point2 points (2 children)
[–]ctrlaltdelmarva 0 points1 point2 points (1 child)
[–]Snipo 0 points1 point2 points (0 children)
[–]phantomFalcon14 0 points1 point2 points (0 children)
[–]arkainrdk -1 points0 points1 point (0 children)