Better HN
topnewbestaskshowjobs
Log inSign up

rebotfc

2 karma · joined Dec 28, 2017 (8y ago) · 9 submissions

Submissions

comment 6y ago · link · parent

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 6y ago · link · parent

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 6y ago · link · parent

Inline styles cannot do things like :hover, dont work with media queries, can't be adjusted centrally and so on.

comment 6y ago · link · parent

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 6y ago · link · parent

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 7y ago · link · parent

It can be as fast as C++ whilst at the same time suffering from none of these bugs:

https://www.youtube.com/watch?v=lkgszkPnV8g

comment 7y ago · link · parent

Discord uses Rust via Elixir/BEAM NIFs to scale to 11 million concurrent users. Big enough for you?

https://blog.discordapp.com/using-rust-to-scale-elixir-for-1...

comment 8y ago · link · parent

> 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 8y ago · link · parent

> 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.