barskern
- Karma
- 27
- Created
- February 19, 2018 (8y ago)
- Submissions
- 0
A student that has a burning passion for computers.
[ my public key: https://keybase.io/barskern; my proof: https://keybase.io/barskern/sigs/LHWKxAyi9yM2XL4uu64jIwq3O60taGF2gb6tYwZTB7E ]
Isn't the following statement always true, as casting using `as` will silently ~~overflow~~ truncate the `u32` if `usize` is 64-bits? assert!((samples as u32) <= u32::MAX); EDIT: I know it's a contrived example, but I…
This is a minor nitpick but I feel that the usage of the arrow function in Javascript was overly verbose. Instead of: const add = (a, b) => { return a + b; } It could be written as: const add = (a, b) => a + b Or…
No it is not equal because the former autobinds `this` into the body of the arrow function, however the latter is "just" a function pointer hence will not be called with the correct `this` value. One way to get around…
I understand what you mean, but I don't think you understand my point. I am not thinking about the official documentation of the language. Normally translating the explanations in the official documentation only…
Thank you for the explanatory answer. Localization seems like a two-edged sword. Wouldn't it cause a spilt in the community when it comes to tutorials and documentation? Especially if the community is small. In Excel I…
I'm not really sure I understand what Crayon fixes for Javascript. Based on my understanding from the intermediate tutorial it seems to be mostly identical to Javascript, with a game library built in. Can somebody help…
Thank you for the share. Simple and useful tips to bring UI to a prettier state. Especially for a "pure" programmer, myself, who has no idea how to make nice interfaces without being guided.
> And don’t over use viz. [...] I don't fully agree with this neither. Especially for mathematical concepts, visualization can give insight into how theorems are constructed and combined. This can prove to be vital when…