5 ms·
A half-hour to learn Rust Jan 27, 2020 · 51 minute read · rust maybe the site's reading time estimator is broken? sarcasm intended. But seriously, it is good
by timhigins 6y ago
A half-hour to learn Rust
Jan 27, 2020 · 51 minute read · rust
maybe the site's reading time estimator is broken? sarcasm intended.
But seriously, it is good to have people writing things like this.
- internet_user 6y agohalf-hours is only the compilation time.
- pwdisswordfish6 6y agoPer snippet.
- fasterthanlime 6y agoSarcasm aside, the Rust compiler has gotten a lot faster (and parallelizes better) over the last year thanks to Nicolas Nethercote and others. Another thing few people realize is that the "incremental" compilation mode that's the default for debug builds can also be enabled for release builds! In CI, something like sccache can help a lot (using the GCS or S3 backend). It makes GitHub Actions' two-core limit almost bearable. Almost.
- swazzy 6y agoI'm guessing the code snippets are skewing the estimate.
- GreenWatermelon 6y agoIf anything, code snippets take time to parse and understand what every word and symbol mean. I kept going over "traits" because I didn't get them at first.
- AlchemistCamp 6y ago> maybe the site's reading time estimator is broken? All of them are. I first started disliking Medium for just that reason.
- keyle 6y agoProgrammers don't read, they skim in half the time, then auto-complete in their mind with false assumptions!
- techsin101 6y agohey get out of my head
- deleted 6y ago[deleted]
- Fannon 6y agoIs there a name for this behavior? Sounds like something that is categorized as a cognitive bias? I'm confident that this does not only apply to programmers :)
- coldtea 6y agoIt's the cognitive bias cognitive bias (the idea that every random mistaken behavior can be categorized as a congnitive bias).
- brabel 6y agoThat would explain so many of the comments you read on HN and Reddit!
- pjmlp 6y agoAnd then try to write a GUI in Rust.
- artursapek 6y agoThe state of that art is improving quickly: https://github.com/hecrj/iced https://github.com/hecrj/iced
- pjmlp 6y agoDoesn't do localization or integration with assistive technologies of the host platform, does it?
- oblio 6y agoFirefox' reader mode estimates it at 35-45, if that helps :-)
- coldtea 6y ago>maybe the site's reading time estimator is broken No, it's just made for prose, not tutorials.
- fasterthanlime 6y agoYep, code is a lot of "words" which throws off the estimate. I need to address this, but I don't think completely ignoring code blocks is really the solution there.
- kangalioo 6y agoMaybe you could estimate the reading time of a code snippet by taking the square root of the number of lines of code? I imagine that the larger the code snippet, the more irrelevant boilerplate it contains, so the square root might be a good way to model this
- stonecharioteer 6y agoI worked my way through the entire article, typing in each code example. Took me about 3 hours.
- saghm 6y agoWell, it does say "reading time"; I don't think the estimator expects people to write the article as well!
- eeZah7Ux 6y ago> maybe the site's reading time estimator is broken? sarcasm intended. It was not rewritten in rust?