HNHacker News
TopNewBestAskShowJobs

wfdctrl

38 karma · joined August 23, 2019

submissionscomments
wfdctrl··on Kosmonaut: web browser from scratch in Rust
Yes! I like the original idea of HTML, where the client chooses the styling not the website. That way the web cloud be completely consistent, just pure information.
wfdctrl··on Ask HN: What kind of math do you study in your free time?
You don't get scared when you read stuff about Haskell because you know what most the fancy words mean
wfdctrl··on The use of `class` for things that should be simple free functions
You can get the same effect if you model the expression as a free algebra (ADT). You can then simplify the terms in the same way. The paper: "The design of a pretty printing library", by Hughes, explains this nicely.

The main difference is that algebras are more natural in FP and coalgebras in OOP, but they can mostly do the same things, just a bit differently. Actually you can also do algebras in OOP as well (visitor pattern) and coalgebras is FP.

Basically my point was that you should use the simplest abstraction that gets the job done. Even if you implemented max and pow as objects, for your specific use case, you would probably just call the pure functions inside.

Thank you for the book recommendation.

wfdctrl··on The use of `class` for things that should be simple free functions
Why not make max or pow an object then? If you can model something as a pure function, then it should be a function. You can always add memorization later, if needed. OOP is fundamentally different from FP, objects are not just higher order functions, they are also coalgebras. There is no need to force every peg into a coalgebra hole.
wfdctrl··on A Sad Day for Rust
If you don't understand how opensource works don't use it. If you paid nothing you are not a client and nobody owes you anything...
wfdctrl··on A calculator for the Terminal that renders beautiful math
Kitty
wfdctrl··on Switching from Chrome to Firefox
You can set these settings using a user.js file, so you don't have to reconfigure everything over and over again.
wfdctrl··on OnlyKey: Open-Source Alternative to YubiKey
Why does the code look like a copy-pasted mess? Kudos for making it open, though...
wfdctrl··on Sci-Hub Creator Under Investigation by US Department of Justice
Giving the world free access to information is a Russian plot to make the world a better place. We need to put a stop to it immediately!
wfdctrl··on How Facebook Avoids Ad Blockers
Signal
wfdctrl··on Show HN: HR code – Designed to be recognized by humans and OCR
If the app you are using to scan the QR code doesn't ask you for permission before opening the web page that's the problem with the app not the QR code...
wfdctrl··on NPM Bans Terminal Ads
What about a completely pointless "support the project" license? So you basically chip in for the maintenance, but don't get any additional rights?
wfdctrl··on Top publishers sue Audible for copyright infringement
Well, technically it's a derivative work, they have every right to sue.