Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
rbonvall
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
61.
▲
by
rbonvall
5y ago
People don't tend to react well to feedback from a random internet person, no matter how respectful or well-intended it is. Especially the ones that also don't react well to a minus-one fake internet point from an unidentified use
62.
▲
by
rbonvall
5y ago
It's the first time I see usernames referred to as "ldaps". Learning stuff like this is why Hacker News is my favorite HTTP :o)
63.
▲
by
rbonvall
5y ago
Unfortunately there's this idea that functional programming is just about using lambdas for everything. For me, proper functional style is just about decoupling business logic from state and side effects, and this can still be done wit
64.
▲
by
rbonvall
5y ago
You may like to try wrist-friendly soft-ring notebooks: https://www.jetpens.com/Kokuyo-Campus-Soft-Ring-Notebook-Sem...
65.
▲
by
rbonvall
5y ago
I've been using mostly paper for my notes for more than 15 years. Of course I have a system that works for me, and it has evolved effortlessly over that time through practice. If I had to explain it to you it may sound convoluted, but
66.
▲
by
rbonvall
5y ago
Is this what you wish? ['10', '10', '10'].map(parseInt) === [10, NaN, 2]
67.
▲
by
rbonvall
5y ago
There are many, all with awfully googleable names: j, k, q, etc.
68.
▲
by
rbonvall
5y ago
I think none of http, www or .com actually work anymore for all audiencies. What I see more often is stuff like "<instagram logo> @burrito_catering" or "<facebook logo> burrito_catering".
69.
▲
by
rbonvall
5y ago
In Spanish it means "badly", which is an encouraging goal to give the project a try :)
70.
▲
by
rbonvall
6y ago
I'd add Pandoc to all the ones mentioned in sibling comments.
71.
▲
by
rbonvall
6y ago
Python has pyparsing: https://pypi.org/project/pyparsing/ Maybe it's because non-FP languages typically don't support operator overloading, so you'd end up with verbose grammars like: new Lite
72.
▲
by
rbonvall
6y ago
FP practitioners are guilty of this as well, when talking about "the Maybe monad" or "the IO monad".
73.
▲
by
rbonvall
6y ago
Originally there was no way of abstracting over an arbitrary number of type parameters in the language, so a different trait was required for each arity. The choice of 22 was arbitrary, I think. This is no longer true in Scala 3, so there
74.
▲
by
rbonvall
6y ago
I predict all languages will adopt some form of sum types and pattern matching in the next 10 years. They will go from esoteric to mainstream in the same way lambdas did.
75.
▲
by
rbonvall
6y ago
But now we have stickers! And gifs! And audio messages!
76.
▲
by
rbonvall
6y ago
A recurring joke in functional programming books is some footnote mentioning that currying was discovered by Schönfinkel but named after Curry because "schönfinkeling" didn't catch on.
77.
▲
by
rbonvall
6y ago
Worst name since "cat", my command-line tool for creating cat memes :o)
78.
▲
by
rbonvall
6y ago
Raku (Perl 6) has grammars as first-class citizens: https://docs.raku.org/language/grammars#Creating_grammars
79.
▲
by
rbonvall
6y ago
Since 2017 it's actually three timezones, because Punta Arenas got its own: https://en.wikipedia.org/wiki/Time_in_Chile
80.
▲
by
rbonvall
6y ago
Since a PDF can begin with non-PDF content, then pi itself is a valid PDF file.
81.
▲
by
rbonvall
6y ago
There's a utility called dtrx ("do the right extraction") that does basically this, and also makes sure that files are always extracted into a directory.
82.
▲
by
rbonvall
6y ago
This is probably the video you saw: https://www.youtube.com/watch?v=jLPCdDp_LE0 (Judy Swan, Scientific Writing: Beyond Tips and Tricks)
83.
▲
by
rbonvall
6y ago
You can create it yourself: Prelude> s ->> f = f s Prelude> [1..100] ->> take 10 ->> filter (not . odd) ->> drop 3 [8,10]
84.
▲
by
rbonvall
6y ago
As far as I know, they were originally introduced by Niklaus Wirth to describe Pascal's syntax. See the last pages in this manual from 1973: https://www.research-collection.ethz.ch/bitstream/handle/20....
85.
▲
by
rbonvall
6y ago
It is possible in Scala: https://scastie.scala-lang.org/k7bHR6EWS7qXvaC8gIj3VA (Unless you mean something different).
86.
▲
by
rbonvall
6y ago
WellActually™, Some is a synonym of Just, Maybe is a synonym of Option, and Nothing is a synonym of None.
87.
▲
by
rbonvall
6y ago
I'm also a FP fanboy, and this concept doesn't quite convince me. I'm not sure a Maybe type really helps that much in a dynamically typed language. All the safety you get from using Maybes is worth Nothing (pun intended) when
88.
▲
by
rbonvall
6y ago
Procrastination is not about "always having something to do", it's about "not doing exactly one wants to get done". Sometimes it's work related, sometimes it's hobbies, sometimes is chores. It's hard
89.
▲
by
rbonvall
6y ago
There is not much to learn, a monoid is a very simple abstraction. Think for example about learning about the "iterator" abstraction. It's just something with "hasNext" and "next" operations, nothing more
90.
▲
by
rbonvall
7y ago
There's also a rig (a ring without "n"egatives): https://ncatlab.org/nlab/show/rig I agree. Too cute for its own sake.
More ›