News for hackers. Stuff that matters.

rebotfc

Re:Tell HN: Triplebyte reverses, emails apology on Monday May 25, 2020 @02:28PM (#23303476)
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.

Re:Tell HN: Triplebyte reverses, emails apology on Monday May 25, 2020 @02:23PM (#23303428)
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

Inline styles cannot do things like :hover, dont work with media queries, can't be adjusted centrally and so on.
Re:Thinking in React Hooks on Saturday December 14, 2019 @08:50AM (#21789475)
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?
Re:Thinking in React Hooks on Thursday December 12, 2019 @02:48PM (#21775592)
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);
Re:Async-std: an async port of the Rust standard library on Friday August 16, 2019 @10:11PM (#20721522)
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

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

Re:Yew: Rust framework for making React-like client web apps on Wednesday December 27, 2017 @08:25PM (#16019587)
> 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.

Re:Yew: Rust framework for making React-like client web apps on Wednesday December 27, 2017 @08:22PM (#16019572)
> 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.