Top all-time · #1567
jrsinclair.com
Personal blog · jrsinclair.comprogrammingweb
jrsinclair.com is a personal blog at jrsinclair.com about programming and web. Since 2016, 48 different Hacker News readers have linked it 97 times, most often “Elegant Error Handling with the JavaScript “Either” Monad”. No feed was found, so read it on the site itself.
Most-linked posts?
- Elegant Error Handling with the JavaScript “Either” Monad6 people · 6 mentions · first linked 2019-05-15
- Write your own arbitrary-precision JavaScript math library4 people · 5 mentions · first linked 2020-11-30
- The Marvellously Mysterious JavaScript Maybe Monad4 people · 4 mentions · first linked 2016-08-08
- JavaScript function composition: What’s the big deal?4 people · 4 mentions · first linked 2022-04-11
- How to use array reduce for more than just numbers4 people · 4 mentions · first linked 2019-05-22
- Things I wish someone had explained about functional programming4 people · 4 mentions · first linked 2019-10-28
- Rethinking the JavaScript Ternary Operator4 people · 4 mentions · first linked 2021-03-31
- /3 people · 3 mentions · first linked 2021-02-16
- How to Compose Functions That Take Multiple Parameters: Epic Guide3 people · 3 mentions · first linked 2024-06-10
- Algebraic data types: things I wish someone had explained about FP (2019)3 people · 3 mentions · first linked 2021-10-12
What Hacker News says?
omg, so much negativity here... you should read the previous articles from the author, eg. https://jrsinclair.com/articles/2022/javascript-function-com... then https://jrsinclair.com/articles/2022/what-if-the-team-hates-... it would address some of the concerns and critiques ppl had on this topic here.
Comment linking /articles/2022/what-if-the-team-hates-my-functional-code/
on “What’s so great about functional programming anyway?”Submitted What’s so great about functional programming anyway? as a story · 402 points
HN discussionYou might be interested to see https://jrsinclair.com/articles/2019/what-i-wish-someone-had... where he puts those things under the header "Wrong Assumptions".
Comment linking /articles/2019/what-i-wish-someone-had-explained-about-functional-programming/
on “Algebraic Structures: Things I wish someone had explained about FP”Submitted Algebraic Structures: Things I wish someone had explained about FP as a story · 354 points
HN discussionhttps://jrsinclair.com/articles/2018/react-redux-javascript-...
Comment linking /articles/2018/react-redux-javascript-architecture/
on “Guide to JavaScript Frameworks”Submitted Why would anyone need JavaScript generator functions? as a story · 247 points
HN discussionEDIT: Paste this hacky snippet into your browser's console to save all of the links into your clipboard: (() => { let result = [...document.querySelectorAll('td a')] .map((link) => link && !link.href.includes('ycombinator') && !link.href.includes('javascript:void') ? link.href : '' ) .filter(Boolean); result = [...new Set(result)]; result.sort(); copy(result.join('\n\n')); })(); Just to help, here's a compiled-list…
Comment linking /
on “Ask HN: Great Blogs by Programmers”Submitted Algebraic Data Types: Things I wish someone had explained about FP as a story · 242 points
HN discussionhttps://jrsinclair.com/ has amazing JS & functional programming essays.
Comment linking /
on “Ask HN: Great Blogs by Programmers”Submitted Elegant Error Handling with the JavaScript “Either” Monad as a story · 177 points
HN discussionEnums are Sum Types, which are a type of ADT[1]. Tuples are a Product Types, which are another type of ADT[2]; Sum Types are so called because when you add one to that, you add just one more possibility (It could be A,B now it can be A,B,C). Product Types, on the other hand, give out possibilities based on their Product, so if you add a new property, you multiply it (A,B can both be two things, so you have 4 possibi…
Comment linking /articles/2019/algebraic-data-types-what-i-wish-someone-had-explained-about-functional-programming/
on “Why Rust?”Submitted Faster, Better, Cheaper – The Art of Making Software as a story · 154 points
HN discussionI dont disagree - where things like either, maybe or result really shine is when its baked into the stdlib _and_ there is machinery built into the language to make using them easy (like pattern matching, and them being in scope by default). I have used and written several libraries trying to make them work in js/ts and while they are beneficial around my custom domain specific code, you still spend a bunch of time w…
Comment linking /articles/2016/marvellously-mysterious-javascript-maybe-monad/
on “Elegant Error Handling with the JavaScript “Either” Monad”Submitted How to deal with dirty side effects in your pure functional JavaScript as a story · 141 points
HN discussionDefinitely, I think I wrote imprecisely when I used "humanity". I meant more like I personally wrote it, the sentence structure and grammar are mine, the mistakes are mine, and hopefully it's still clear and easy to understand. Speaking of mixing technical text and style/prose, I feel this link from yesterday did a great job executing both (granted it is an article, not a paper): https://jrsinclair.com/articles/2025…
Comment linking /articles/2025/whats-the-difference-between-named-functions-and-arrow-functions/
on “LLM-assisted writing in biomedical publications through excess vocabulary”Submitted How to use array reduce for more than just numbers as a story · 136 points
HN discussionThe author has also written a book which I’ve read a couple of times and enjoyed. A Skeptic’s Guide To Functional Programming With JavaScript https://jrsinclair.com/skeptics-guide I’d recommend it for functional-curious JS devs like myself.
Comment linking /skeptics-guide
on “The joy of recursion, immutable data, & pure functions: Making mazes with JS”Submitted The algebraic structure of functions, illustrated using React components as a story · 106 points
HN discussionI kind of agree with your comment here and with what mlinhares responded with. There are a few engineers I enjoy following who give good, and actionable advice. One is Scott Wvlaschin especially if you're interested in Functional Programming Another is James Sinclair[0]. A couple other names, Ryan Florence and Michael Jackson (the dev, not the singer). And one last one is Kent Dodds. These are mostly people on the f…
Comment linking /
on “Uncle Bob and Silver Bullets (2017)”Submitted The joy of recursion, immutable data, & pure functions: Making mazes with JS as a story · 92 points
HN discussionMore of a comment on the author, I've found his other articles enlightening, useful as both introductions to functional programming ideas and as comprehensive deep dives demonstrating their intuitive nature both in code and contextual application. A lot of the articles in conjunction with some other resources[1][2][3] are great for diving into functional programming (I've watched and read these many times). If you d…
Comment linking /articles/2019/elegant-error-handling-with-the-js-either-monad/
on “Write your own arbitrary-precision JavaScript math library”Submitted Algebraic data types: things I wish someone had explained about FP (2019) as a story · 92 points
HN discussionhttps://jrsinclair.com/articles/2022/whats-so-great-about-fu...
Comment linking /articles/2022/whats-so-great-about-functional-programming-anyway/
on “Technical Blogs You Recommend?”Submitted Magical, Mystical JavaScript Transducers as a story · 77 points
HN discussionI really like https://jrsinclair.com/web-development/ . The author writes in a very easy to understand way. The subjects are always interesting and more unique. The author isn't writing, like everyone else, about the newest version of React or Typescript. There is depth to each post. Lots of code examples and lots of simple explanations of complex ideas. The tone is casual, like a conversation, rather than a lecture…
Comment linking /web-development/
on “Ask HN: What makes a good engineering blog?”Submitted Write your own arbitrary-precision JavaScript math library as a story · 63 points
HN discussionI use the term “active” pretty loosely but: Andy is great https://notes.andymatuschak.org Sinclair is very interesting for applying functional programming to JavaScript/Typescript https://jrsinclair.com/web-development/
Comment linking /web-development/
on “Ask HN: Which blogs do you actively follow these days?”Submitted What's the difference between named functions and arrow functions in JavaScript? as a story · 46 points
HN discussionThis blog is chock full of these ideas, start here: https://jrsinclair.com/articles/2019/algebraic-data-types-wh...
Comment linking /articles/2019/algebraic-data-types-what-i-wish-someone-had-explained-about-functional-programming/
on “Ask HN: Favourite resources for learning programming type theory?”Submitted What If the Team Hates My Functional Code? as a story · 43 points
HN discussion