Recent submissions

Comment · 6 years ago
Wow, they had European users? They are fucked.

This is about a serious and willful GDPR contravention as you can get. I hope they have good lawyers because they are gonna be hauled over the coals by multiple countries' data commissioners.

Wow just wow.

Comment · 6 years ago
You do realise that if you have any European users you have majorly contravened GDPR regulations and data protection rules.

I'm talking 20 million euros in fines

Comment · 6 years ago
Inline styles cannot do things like :hover, dont work with media queries, can't be adjusted centrally and so on.
Comment · 6 years ago
Do you really need to know how useState works under the hood if you know how to use it, reason about it and what its limitations are?
Comment · 7 years ago
The thing I like about hooks is that components can be truly modular in terms of both behaviour and state. They can so be relatively easy to reason about in isolation and therefore it's easier to reuse them with less plumbing needed.

For instance a simple custom hook use_graphql_list(url,query) can encapsulate the entirety of fetching json via a graphql query keeping an array up to date and in sync and present data in a format that is easy to use in a list component.

For instance in rust:

  let graphql_query = "{countries {name currency emoji}}";
  let graphql_url = "https://countries.trevorblades.com/";
  let container_name = "countries";
  let (list, graphql_control) =
    use_graphql_list::<Country>(
      graphql_query,
      graphql_url,
      container_name);
Comment · 7 years ago
Comment · 7 years ago
Comment · 8 years ago
> poor static analysis of code, leading to bad Intellisense etc. - Mostly solved by TypeScript.

Typescript is not Javascript. Most people would agree that that Typescript is a reasonable language.

The fact that it can be transpiled to Javascript is irrelevant, many languages can be transpiled to Javascript.

Comment · 8 years ago
> FYI you are just showing how awful are communities around "legitimately good" languages.

Just to let you know Rust's community is pretty cool and not awful at all. For instance the Rust Survey 2017 reports that 98.7% of respondents feel welcome within the Rust Community.

Furthermore according to the Stackoverflow 2017 survey, Rust is the "most loved" language.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton