Code Monkey home page Code Monkey logo

blog's People

Contributors

aochagavia avatar austinwise avatar benediktwerner avatar brandly avatar burntsushi avatar catleeball avatar christiantakle avatar danbernier avatar ehaydenr avatar icecream17 avatar jduan avatar julen avatar lunacookies avatar matklad avatar mdinger avatar rethab avatar rhnvrm avatar rofrol avatar timmc avatar vtronko avatar wslack avatar xzmeng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

blog's Issues

ripgrep: invalid url to utf8-ranges

If you'll try to follow

[`utf8-ranges`](https://burntsushi.net/rustdoc/utf8_ranges/)

you'll hit redirect to https://docs.rs/utf8_ranges/ (note the _), which is 404.

Doing s/_/-/ in the URL fixes this, and I almost created pull request with that very fix, but decided to just report this once I realized that I can also just replace both /rustdoc/ URLs in the text with direct links to docs.rs, and I don't really know what's better. (And if docs.rs is preferred, should links include versions from ripgrep's Cargo.toml at the time of writing, or just redirect to latest versions? Gaaah, I thought this was going to be an easy fix!).

Not an issue

Hi Andrew,

I just wanted to say thank you for the blog post. They were so good and helpful. I have been struggling to grasp rust's concept for quite some time and for the first time I felt like I understand them. Thank you for your time and effort.

Suggestion for making unwrap/rewrap more explicit in rust error handling guide

I liked your guide to error-handling in Rust. One thing that stumped me for a bit, though, was the file_path_ext_explicit version of option-ex-string-find, which I'll paste here for convenience:

fn file_path_ext_explicit(file_path: &str) -> Option<&str> {
    match file_name(file_path) {
        None => None,
        Some(name) => match extension(name) {
            None => None,
            Some(ext) => Some(ext),
        }
    }
}

fn file_name(file_path: &str) -> Option<&str> {
  // implementation elided
  unimplemented!()
}

I understand that you were trying to illustrate the full case analysis without any cleanup, but it really bothered me that the inner match block was a complete no-op, and could have been replaced by Some(name) => extension(name). I wonder if comments might help here, perhaps something like:

    match file_name(file_path) {
        None => None,
        Some(name) => match extension(name) { // match to handle Option result
            None => None,
            Some(ext) => Some(ext) // Re-wrap ext to return an Option
        }
    }

...perhaps along with some note along the lines of "yes you could get rid of that match, but it's shown for pedagogical purposes here".

It's not a huge thing, but I did spend a bit of time checking if I'd missed something, so anything to indicate "no, it's not your imagination that this is weird" might be nice. :-)

Rel=canonical hits 301 redirect

Howdy, hit your blog via HN article on your ripgrep tool at http://blog.burntsushi.net/ripgrep/ and noticed that your canonical reference is to the non-trailing slash version, which then 301 redirects to the trailing slash version. This could/would hurt the way Google crawls/indexes your content. I thought you'd want to know :)

No RSS/ATOM feed

Hello, I am very impressed by the content you put on your blog but was disappointed that there is no feed that I could subscribe to. If you could provide a feed that my robots could monitor it would be greatly appreciated because I am sure to forget to do so manually.

Thanks, Kevin

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.