duckduckgo/zeroclickinfo-goodies — pull request #799 by bitflipped (2014-12-02 03:05:17+00:00)
Title: Submitting My first Goodie

# Goodie Pull Request Template

Using this template will help us better understand your Instant Answer and assist you when necessary. Simply copy and paste the markdown below into the description of your GitHub pull request and complete as appropriate.

**What does your Instant Answer do?**
prints "bitflipped is awesome and has successfully completed the DuckDuckHack Goodie tutorial!" when "duckduckhack bitflipped" is entered

**What problem does your Instant Answer solve (Why is it better than organic links)?**
because I'm awesome.

**What is the data source for your Instant Answer? (Provide a link if possible)**
Me. I approved this message. Also the goodie quick start guide.

**Why did you choose this data source?**
Because it seemed like the most logical place to start.

**Are there any other alternative (better) data sources?**
Perhaps the "[Basic Goodie Tutorial](https://duck.co/duckduckhack/goodie_basic_tutorial)"

**What are some example queries that trigger this Instant Answer?**
duckduckhack bitflipped

**Which communities will this Instant Answer be especially useful for? (gamers, book lovers, etc)**
A community of one. Ok, there's probably a handful of friends that would be amused.

**Is this Instant Answer connected to a DuckDuckHack [Instant Answer idea](https://duck.co/ideas)?**
Indirectly, I want to work on one but this is my first foray into DDG Perl Codebase.

**Which existing Instant Answers will this one supercede/overlap with?**
Everyone else who has ever done the extra credit on the tutorial?

**Are you having any problems? Do you need our help with anything?**
Heh... there was an errant " at the end of my "return" statement. Because I had my screen split with the tutorial and Codio I missed it. (Insert diatribe about why copy/paste coding is error prone) Interestingly, when starting the server I didn't get any kind of error about that InstantAnswer not being loaded.

I wonder if there's a way to start the server "verbosely" and list what answers are being loaded...
!

**Where did you hear about DuckDuckHack? (For first time contributors)**
It depends on who you ask, but I blame my buddy that we hack on projects together.

**What does the Instant Answer look like? (Provide a screenshot for new or updated Instant Answers)**
[2014-12-01 19_42_04-duckduckhack_bitflipped_at_duckduckgo](https://cloud.githubusercontent.com/assets/10040125/5257219/3c30d10c-7992-11e4-918f-3fd3282e8c5e.png)

## Checklist
Please place an 'X' where appropriate.

```
[x] Added metadata and attribution information (https://duck.co/duckduckhack/metadata)
[x] Wrote test file and added to t/ directory (https://duck.co/duckduckhack/goodie_tests)
[x] Verified that instant answer adheres to design guidelines (https://duck.co/duckduckhack/design_styleguide)
[x] Verified that instant answer adheres to code styleguide (https://duck.co/duckduckhack/code_styleguide) (there isn't one for Perl...)
It passes perlcritic
# Goodie Pull Request Template

Using this template will help us better understand your Instant Answer and assist you when necessary. Simply copy and paste the markdown below into the description of your GitHub pull request and complete as appropriate.

**What does your Instant Answer do?**
prints "bitflipped is awesome and has successfully completed the DuckDuckHack Goodie tutorial!" when "duckduckhack bitflipped" is entered

**What problem does your Instant Answer solve (Why is it better than organic links)?**
because I'm awesome.

**What is the data source for your Instant Answer? (Provide a link if possible)**
Me. I approved this message. Also the goodie quick start guide.

**Why did you choose this data source?**
Because it seemed like the most logical place to start.

**Are there any other alternative (better) data sources?**
Perhaps the "[Basic Goodie Tutorial](https://duck.co/duckduckhack/goodie_basic_tutorial)"

**What are some example queries that trigger this Instant Answer?**
duckduckhack bitflipped

**Which communities will this Instant Answer be especially useful for? (gamers, book lovers, etc)**
A community of one. Ok, there's probably a handful of friends that would be amused.

**Is this Instant Answer connected to a DuckDuckHack [Instant Answer idea](https://duck.co/ideas)?**
Indirectly, I want to work on one but this is my first foray into DDG Perl Codebase.

**Which existing Instant Answers will this one supercede/overlap with?**
Everyone else who has ever done the extra credit on the tutorial?

**Are you having any problems? Do you need our help with anything?**
Heh... there was an errant " at the end of my "return" statement. Because I had my screen split with the tutorial and Codio I missed it. (Insert diatribe about why copy/paste coding is error prone) Interestingly, when starting the server I didn't get any kind of error about that InstantAnswer not being loaded.

I wonder if there's a way to start the server "verbosely" and list what answers are being loaded...
!

**Where did you hear about DuckDuckHack? (For first time contributors)**
It depends on who you ask, but I blame my buddy that we hack on projects together.

**What does the Instant Answer look like? (Provide a screenshot for new or updated Instant Answers)**
[2014-12-01 19_42_04-duckduckhack_bitflipped_at_duckduckgo](https://cloud.githubusercontent.com/assets/10040125/5257219/3c30d10c-7992-11e4-918f-3fd3282e8c5e.png)

## Checklist
Please place an 'X' where appropriate.

```
[x] Added metadata and attribution information (https://duck.co/duckduckhack/metadata)
[x] Wrote test file and added to t/ directory (https://duck.co/duckduckhack/goodie_tests)
[x] Verified that instant answer adheres to design guidelines (https://duck.co/duckduckhack/design_styleguide)
[x] Verified that instant answer adheres to code styleguide (https://duck.co/duckduckhack/code_styleguide) (there isn't one for Perl...)

It passes percritic tests
[03:03 AM codio@oregano-patent zeroclickinfo-goodies {master}]$ perlcritic lib/DDG/Goodie/IsAwesome/Bitflipped.pm
Code before strictures are enabled at line 8, column 1. See page 429 of PBP. (Severity: 5)

[x] Tested cross-browser compatibility (Where are the *NIX's)

Please let us know which browsers/devices you've tested on:
- Windows 8
[] Google Chrome
[] Firefox
[] Opera
[] IE 10

- Windows 7
[x] Google Chrome
[x] Firefox
[] Opera
[] IE 8
[] IE 9
[] IE 10

- Windows XP
[] IE 7
[] IE 8

- Mac OSX
[] Google Chrome
[] Firefox
[] Opera
[] Safari

- iOS (iPhone)
[] Safari Mobile
[] Google Chrome
[] Opera

- iOS (iPad)
[] Safari Mobile
[] Google Chrome
[] Opera

- Android
[] Firefox
[] Native Browser
[] Google Chrome
[] Opera
```