Recent submissions

Comment · 3 years ago
For anyone using both TypeScript and JSON schemas, but wanting to use TypeScript as the source of truth, I highly recommend the following library: [ts-json-schema-generator](https://github.com/YousefED/typescript-json-schema).

It does exactly what it says in the box: turns your TypeScript `types` / `interface` into machine-readable JSON schemas.

The library has a few open issues (does not deal well with some edge cases of composing Omit<> on sum types, and does not support dynamic (const) keys), but compared to manually writing JSON schemas, it's been amazing!

EDIT: I should add that the library supports adding further type constraints that are supported by JSON Schema but not by TS by using JSDoc (for instance, pattern matching on strings, ranges on numbers, etc.).

Comment · 4 years ago
Wow, thanks for that, that is a fantastic write-up, and a pretty compelling argument (at least to me) that the mystery of MH370 has been mostly "solved" (spoiler alert: all evidence points to a murder-suicide by pilot Zaharie Ahmad Shah).
Comment · 5 years ago
Bloom Impact Investing | (Growth) Marketing Manager | Remote or Onsite (Australia) | https://www.bloom-impact.com

Bloom Impact Investing is an Australian fintech startup on a mission to make Climate Impact Investing easy - a new way to invest to fight climate change. With our simple mobile investment app, we empower people to become “climate impact investors”, i.e. grow their wealth while making a positive impact on the planet.

We are currently on the lookout for a driven growth marketer to join our team.

About the role:

* Take the Bloom app user base from 1,000 to 10,000 to 100,000

* Design a new and meaningful experience around investing, with a key focus on impact, content, and storytelling

* Help our customers grow their wealth sustainably and become financially savvy

* Make a positive and scalable impact on Climate Change

Check out the Job Description on LinkedIn if you’re interested: https://www.linkedin.com/jobs/view/2752888269.

Also feel free to reach out on LinkedIn if you have questions about the role: https://www.linkedin.com/in/bertrandcaron

Comment · 8 years ago
Hey, thanks for sharing your (unpopular, at least in this thread) opinion. Would you care going a bit more in details about what you hate about it?

In my experience, good gear makes a tremendous difference, and it's a logarithmic curve; the first few hundred dollars get you most of the way. Maintenance also goes a long way, you'd be surprised of the friction losses of severely under-inflated tires, or a rusty chain/cassette. Finally, having the right type of bike is a game-changer, I am always amazed at how many people commute in urban environments with a heavy, slow, double-suspension mountain bike when they could be zipping around on a road bike and having some fun! I've also found that having a GPS watch to record your commute helps a lot with gratification.

At the end of the day, I think commuting by bike in an enjoyable experience compared to the alternative most people have in an urban environment: packed/slow/expensive/unreliable public transport, or traffic jams. Maybe you should alternate between the two to remind you of why you commute by bike ;)

Comment · 9 years ago
Could you elaborate on how "functional languages were largely superceded by OO languages eons ago for many reasons people are slowly redicovering" ?
Comment · 10 years ago
To be fair, using the word 'privacy' implies that those conversations were private in the first place. In my opinion, there is nothing 'private' about verbally abusing (or whatever else lead to the report) a stranger on the internet on a 5v5 chat (plus any potential spectator).

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton