A bot fixes spelling mistakes in github readme files
blog.holdenkarau.com
blog.holdenkarau.com
The code is also pretty interesting. It's old-style Perl with indirect method calls, bareword filehandles, no "use strict", and so on... but then it uses modules that use Moose and MooseX::Traits. So we have a collection of scripts that look like they are from 1987, but that depend on Moose. Excellent!
(Actually, this inspired me to read the source code for Net::Twitter to see if it was using MooseX::Traits. Turns out they just copy-pasted from an older version of MX::Traits to get their traits functionality. Weird!)
* Net::GitHub - http://p3rl.org/Net::GitHub
* Pithub - http://p3rl.org/Pithub
I can't tell... was that intentional?
You could do similar with peep-hole optimizations, bizarre bots that transform iteration to recursion (and vice versa), transforms to immutability, factoring-out common code, adding automatically constructed test cases ... I wonder what else.
It would be like helpful spam. EDIT or clippy "It looks like you're writing a loop. Would you like help?" Actually, this could be a channel for code analysis as a service. You subscribe (for fee or free), it's all hosted and updated remotely and git-based (github public/private, or self-hosted).
(now he's got _two_ problems...)
should probably be an opt-in service, but WOW it would rock.
https://github.com/Miserlou/WhitespaceBot (Python)
I'd like to add some security fixing stuff too. There's plenty that can be done here!
Bots are the secret reason why Wikipedia actually works - there's no reason why we can't have the same benefits in open source software.