Better HN
topnewbestaskshowjobs
Log inSign up

presz

16 karma · joined Jul 15, 2021 (5y ago) · 15 submissions

Submissions

comment 7mo ago · link · parent

We really need to get more designers interested in Scheme, because that logo is awful

comment 7mo ago · link · parent

I'm Satoshi Nakamoto. AMA.

comment 7mo ago · link · parent

Didn't he molest his sister?

comment 9mo ago · link · parent

This blog reads like it was written by ChatGPT.

comment 9mo ago · link · parent

We all yearn for the BlackBerry. I wish we got a modern one with support for the popular messaging apps (WhatsApp, Slack, etc). I know there are some smartphones out there with physical keyboards that run Android, but they feel more like a prototype than a full product.

comment 9mo ago · link · parent

You can't call it Ivy! That's an emacs package!

comment 11mo ago · link · parent

This is the same problem with cheating on tests and homework. By making getting a higher education degree mandatory for entry level jobs to be able to afford a normal life, people are incentiviced to get the degree, not the education. By tackling this particular case of students with fake disabilities, the universities will hurt people with real disabilities. Same thing with anti cheating measures that affect people that don't cheat. The root case of all this is making degrees mandatory on our society.

comment 1y ago · link · parent

In TypeScript you can enable this by using BrandedTypes like this:

  type UserId = string & { readonly __tag: unique symbol };

In Python you can use `NewType` from the typing module:

  from typing import NewType
  from uuid import UUID

  UserId = NewType("UserId", UUID)

comment 1y ago · link · parent

Why git though? Wouldn't it be simpler to just append the timestamp to the beginning or end of each line/paragraph, and just hide it when editing?

comment 3y ago · link · parent

This is less a guide on how to do fp in Javascript, and more of a tutorial on how to implement a pure-functional-programming language in Javascript.

Javascript can do some functional programming, but it's not Haskell or OCaml. If you try to use it like that it quickly becomes a big mess and one that is not performant at all. You want to do pure, functional programming? Then write Haskell, or Elm, or Purescript.

I'm saying this as someone that loves fp, but is trying to get rid of a considerable chunk of fp-ts on a big codebase at work.

As a wise man once said, don't fight the language. Doing this deviates from Javascript semantics. It's a hack that is not actually helping people learn fp.

Also, please, don't do monads in Javascript! Monads are a solution for pure languages to deal with effects. Javascript can just do effects as it is!

comment 4y ago · link · parent

Most of the books in libraries are books most people haven't read, does that make every library an anti-library?

comment 4y ago · link · parent

People still call it GNU+Linux? Modern distros have less GNU pieces on each iteration. Might as well start calling it Gnome+Linux from now on.

comment 4y ago · link · parent

Do you have to pay for gas to post? I really don't think this can take off

comment 5y ago · link · parent

he is from the future

comment 5y ago · link · parent

Maybe take a look at parinfer https://shaunlebron.github.io/parinfer/