My first rust project: oi!

79 points PureArtistry

https://github.com/PureArtistry/oi

I'm a self taught, amateur coder (a quick peek at my code will probably give that away)

I started using linux a couple of years ago and as I got more interested in it, started learning bash, and found out I really enjoy programming.

I wanted to start learning a compiled language and as most of my favourite cli apps are written in rust, that's what I chose to go with.
I decided to learn by re-writing a shell script I had previously written, it's a simple(ish?) web scraper.
It sends your query to google, digs out the bit you probably want from the html and then formats it for the terminal (or does some simple plain formatting if you redirect the output elsewhere)

Appreciate any thoughts, suggestions, improvements I could make or point out any horrible mistakes I have made - I'm eager to learn, thanks!

EDIT: as I feel I may need to mention this, I'm not good at naming variables and so if I can't think of something immediately, it gets to be x or foo or whatever.

I will be going through the code and giving things better names in future (sorry!)