News for hackers. Stuff that matters.
Re:Show HN: Base – API for authentication, email sending, im... by gdotdesign on Monday August 26, 2019 @05:16AM (#20798374)
I'm the author of Mint, so it was the obvious choice :)

I choose Crystal because I had experience using Ruby and I absolutely loved the syntax, also Mint is built with Crystal. I really like it because it easy to read (even with type annotations) and compiles to a fast binary.

Edit: If you have specific questions let me have it :D

Re:Show HN: Base – API for authentication, email sending, im... by mintplant on Monday August 26, 2019 @11:58AM (#20800886)
From Mint's docs [0]:

> Record definitions are globally unique, so defining a record with the same structure but a different name will raise an error.

So I can't have both

    record User {
      email : String,
      name : String,
      id : Number
    }
and

    record Task {
      name : String,
      description : String,
      id : Number
    }
in the same project?

[0] https://guide.mint-lang.com/reference/records

Re:Show HN: Base – API for authentication, email sending, im... by gdotdesign on Monday August 26, 2019 @12:09PM (#20800971)
You can! One has email field the other has. description field.
Re:Show HN: Base – API for authentication, email sending, im... by Existenceblinks on Thursday August 29, 2019 @07:15AM (#20828448)
One interesting aspect is that it takes a lot of energy building the whole compile-to-js frontend framework, yet you are also building your own service. Kudos!

I'm using Elixir and Elm, and understand why Mint happens. I'm keeping eyes on Mint, would love see a build-with-Mint page. This app is the first one!

Re:Show HN: Base – API for authentication, email sending, im... by Scarbutt on Monday August 26, 2019 @11:41AM (#20800742)
Not Crystal related but from where do you get the art? ;)
Re:Show HN: Base – API for authentication, email sending, im... by algodaily on Monday August 26, 2019 @11:46AM (#20800778)
Not OP but google around for vector-style images. There was even a Show HN project that generated them, I'll look around
Re:Show HN: Base – API for authentication, email sending, im... by swyx on Monday August 26, 2019 @12:18PM (#20801052)
i'd appreciate a link, i did a basic search on those keywords but didnt find anything matching.
Re:Show HN: Base – API for authentication, email sending, im... by matdehaast on Monday August 26, 2019 @01:18PM (#20801705)