2 karma · joined Dec 28, 2017 (8y ago) · 9 submissions
comment 6y ago · link · parent
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
https://blog.discordapp.com/using-rust-to-scale-elixir-for-1...
comment 8y ago · link · parent
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
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.