Better HN
topnewbestaskshowjobs
Log inSign up

wfdctrl

38 karma · joined Aug 23, 2019 (7y ago) · 14 submissions

Submissions

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

You don't get scared when you read stuff about Haskell because you know what most the fancy words mean

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

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.

comment 6y ago · link · parent

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...

comment 6y ago · link · parent

Kitty

comment 6y ago · link · parent

You can set these settings using a user.js file, so you don't have to reconfigure everything over and over again.

comment 6y ago · link · parent

Why does the code look like a copy-pasted mess? Kudos for making it open, though...

comment 6y ago · link · parent

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!

comment 6y ago · link · parent

Signal

comment 7y ago · link · parent

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...

comment 7y ago · link · parent

What about a completely pointless "support the project" license? So you basically chip in for the maintenance, but don't get any additional rights?

comment 7y ago · link · parent

Well, technically it's a derivative work, they have every right to sue.