42 karma · joined April 1, 2016
Aside from that reasoning, I see this as a means to differentiate different types of programs, if they do in fact exist. I don't actually buy that argument; while I obviously have not read the entire internet, I do have yet to encounter a bootcamp whose marketing strategy ISN'T centered around the promise of becoming a full-time developer upon matriculation.
Thanks for the code review - it's always good to see suggestions on how to improve things. If you have ideas on how to make the code better, please feel free to submit a pull request. Thanks for sharing your feedback!
Thanks for your comment. News Genius' site is a bit misleading, as there are a few different ways one could wind up with site annotations.
The first, as you mention, is by opting in. I agree that such a tool could be a useful way to foster discourse on your content. This tool is not meant for people who opt in to Genius annotations.
Further down on Genius' page, it states that any page can be annotated simply by prepending `genius.it/` to a site URL, regardless of whether the content publisher has granted permission. Unfortunately, the comments section of any Internet page tends to showcase some extremely uncivilized discourse. This is why many site authors choose to disable comments. Genius circumvents these people's wishes. Further, unlike a comments section, Genius does not actually notify the owner of a website if his/her content is annotated. Site owners have the option to moderate comments; it took Genius until today to even add a Report Abuse button.
Hopefully this clarifies some of the motivation. Thanks for sharing your perspective!
I originally intended to leverage Rack all the way through by inspecting headers. However, much to my chagrin, I discovered that Genius does not reveal its identity in the headers, so I had to resort to JS instead to accomplish my goal.
Thanks for sharing. The gem works in a similar way, with a small JS script.
Definitely a good point. Interestingly, I didn't set out intending to use JS to solve this problem. I wanted to use Rack to intercept the request and check the headers and proceed from there. However, when I was playing around with it in Request Bin, I noticed that Genius actually modifies the URL so that there is no reference to them anywhere in the headers. This is generally poor etiquette and forced me to modify my approach.
Thanks for your comment!