Readit News logoReadit News
nikajon_es commented on An epic treatise on error models for systems programming languages   typesanitizer.com/blog/er... · Posted by u/transpute
marcosdumay · a year ago
Oh, here comes my usual rant about "algebraic" sum types that break all of the algebra rules on sums...

On those languages, if you define the types X = A + B and Y = A + B, and if you try to match X = Y, they don't match at all. Besides, they don't compose (X = A + B, Y = X + C, Y = A + B + C is false).

The result is that if you go and declare `read :: Handler -> Either FileAccessError String`, you can't just declare your function as `f :: String -> (FileAccessError | NetworkError | MyCustomError)` expect it to work well with the rest of your code. Because every time you need a different set here, you'll have to declare a different type, and transform the data from one type to the other.

nikajon_es · a year ago
I don't understand how they don't compose, from your example:

    (X = A + B, Y = X + C, Y = A + B + C is false)
I understand that types aren't math values, but isn't the point of using a `+` to describe the communicative value of the type so that `(A + B) + C = A + B + C`?

Also

nikajon_es commented on Coping strategies for the serial project hoarder   simonwillison.net/2022/No... · Posted by u/usrme
nikajon_es · 3 years ago
I'm trying to manage my projects mostly like the steps the OP takes. The only thing that I would add, which has helped me is, is having build automation in place as well (CI/CD or just scripts like a Makefile).

This could fall under tests, but I've found that having concrete steps written down on how to build the thing helps. As there's many times something that's easy to forget that has to happen for things build correctly if I've stepped away from the project for a while.

nikajon_es commented on Show HN: Just a simplified easy way to call URLs automatically without crontab   crontaboo.com... · Posted by u/orsifrancesco
orsifrancesco · 3 years ago
yes like here https://crontaboo.com/demo

(but we kept this feature only for people support the project) we are releasing some coupons for the launch

https://crontaboo.com/?code=HACKNEWS50

nikajon_es · 3 years ago
Is that pricing only for the first year?
nikajon_es commented on Show HN: MockMechanics is now open source   github.com/felipereigosa/... · Posted by u/felipereigosa
nikajon_es · 3 years ago
This looks really cool! I can't wait to start playing around with it! I love your video.
nikajon_es commented on Show HN: Mock – setup and test APIs easily   github.com/dhuan/mock... · Posted by u/dhuan_
dhuan_ · 3 years ago
One key motivation for building this was that, despite there being other similar tools out there, I wanted a utility that was language-agnostic, meaning I could make test assertions without having to write in some particular language. So Mock was designed this way where assertions are made by simply doing HTTP calls. Another point was installation - setting up Mock in your CI is a matter of just downloading the executable file, where other alternatives required me to install Java SDK, or Nodejs, or whathever programming language their utility was written in, resulting in CI scripts more complicated than what I wanted.
nikajon_es · 3 years ago
What is the use case for sending data then doing an assertion on the data that was stored? Or am I not understanding how assertions work.
nikajon_es commented on Ask HN: Best API gateways with user access and monetization?    · Posted by u/melenaboija
nikajon_es · 6 years ago
I built xa4b.com as a user access and payment API gateway. Let me know if that interests you.
nikajon_es commented on Lime shuts in 12 markets, lays off around 100   axios.com/e-scooter-start... · Posted by u/_ps6d
Reedx · 6 years ago
It seems that a lot of VC is a multivariate ponzi scheme of sorts, which might explain some of it. If they're making fees regardless, then they just need to show/push fast initial growth to attract more layers of investment and it doesn't necessarily need to make long term sense.

Chamath Palihapitiya describes this here: https://www.youtube.com/watch?v=NVVsdlHslfI

nikajon_es · 6 years ago
I was there for this, and starting at the 09:30 mark it was exactly what I was thinking about when I read the headline.
nikajon_es commented on Fedora, UUIDs, and user tracking   lwn.net/SubscriberLink/77... · Posted by u/tlburke
chii · 7 years ago
Rotating the identifier means you lose the information about attrition rate.

If you have some number of users leaving, but a similar number incoming, then it would look like you have a consistent usage. Losing the info about lost users means you don't improve in retention.

nikajon_es · 7 years ago
Could you regain this info by adding a static prefix to the rolled id? So you know it was rolled, but not from which previous id. Where as new id's would have no prefix, so you can count new users as new.
nikajon_es commented on Show HN: What CSS does your site actually need at launch?   whatcss.info... · Posted by u/runnr_az
nikajon_es · 7 years ago
Do you think it would be interesting to analyze CSS across a few pages? I've created base CSS files that can cover a few pages, knowing that some elements won't be on all pages, but that the CSS document is cached so it makes sense to send everything down at once.

Or is this more for a launch page (or one-site website)?

u/nikajon_es

KarmaCake day12June 5, 2017View Original