redditkit 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.md +22 -0
- data/README.md +155 -0
- data/Rakefile +8 -0
- data/lib/redditkit.rb +26 -0
- data/lib/redditkit/base.rb +60 -0
- data/lib/redditkit/client.rb +142 -0
- data/lib/redditkit/client/account.rb +73 -0
- data/lib/redditkit/client/apps.rb +63 -0
- data/lib/redditkit/client/captcha.rb +36 -0
- data/lib/redditkit/client/comments.rb +54 -0
- data/lib/redditkit/client/flair.rb +148 -0
- data/lib/redditkit/client/links.rb +134 -0
- data/lib/redditkit/client/miscellaneous.rb +50 -0
- data/lib/redditkit/client/moderation.rb +179 -0
- data/lib/redditkit/client/multireddits.rb +207 -0
- data/lib/redditkit/client/private_messages.rb +74 -0
- data/lib/redditkit/client/search.rb +25 -0
- data/lib/redditkit/client/subreddits.rb +120 -0
- data/lib/redditkit/client/users.rb +109 -0
- data/lib/redditkit/client/utilities.rb +137 -0
- data/lib/redditkit/client/voting.rb +41 -0
- data/lib/redditkit/client/wiki.rb +83 -0
- data/lib/redditkit/comment.rb +54 -0
- data/lib/redditkit/creatable.rb +17 -0
- data/lib/redditkit/error.rb +111 -0
- data/lib/redditkit/link.rb +140 -0
- data/lib/redditkit/moderator_action.rb +19 -0
- data/lib/redditkit/multireddit.rb +32 -0
- data/lib/redditkit/multireddit_description.rb +14 -0
- data/lib/redditkit/paginated_response.rb +22 -0
- data/lib/redditkit/private_message.rb +27 -0
- data/lib/redditkit/response/parse_json.rb +29 -0
- data/lib/redditkit/response/raise_error.rb +21 -0
- data/lib/redditkit/subreddit.rb +86 -0
- data/lib/redditkit/thing.rb +20 -0
- data/lib/redditkit/user.rb +30 -0
- data/lib/redditkit/version.rb +19 -0
- data/lib/redditkit/votable.rb +37 -0
- data/redditkit.gemspec +25 -0
- data/spec/cassettes/RedditKit_Client/should_raise_an_error_with_invalid_credentials.yml +39 -0
- data/spec/cassettes/RedditKit_Client_Account/_sign_in/signs_the_user_in.yml +132 -0
- data/spec/cassettes/RedditKit_Client_Account/_update_session/updates_the_current_session.yml +133 -0
- data/spec/cassettes/RedditKit_Client_Captcha/_captcha_url/returns_a_CAPTCHA_url_from_an_identifier.yml +38 -0
- data/spec/cassettes/RedditKit_Client_Captcha/_needs_captcha_/checks_if_the_current_account_needs_a_CAPTCHA.yml +44 -0
- data/spec/cassettes/RedditKit_Client_Captcha/_new_captcha_identifier/returns_a_new_CAPTCHA_identifier.yml +38 -0
- data/spec/cassettes/RedditKit_Client_Comments/_comment/requests_the_correct_resource.yml +47 -0
- data/spec/cassettes/RedditKit_Client_Comments/_comments/with_a_RedditKit_Link/returns_comments_on_a_link.yml +140 -0
- data/spec/cassettes/RedditKit_Client_Comments/_comments/with_a_link_identifier/returns_comments_on_a_link.yml +89 -0
- data/spec/cassettes/RedditKit_Client_Comments/_submit_comment/requests_the_correct_resource.yml +313 -0
- data/spec/cassettes/RedditKit_Client_Flair/_apply_flair_template/clears_flair_templates.yml +52 -0
- data/spec/cassettes/RedditKit_Client_Flair/_clear_flair_templates/clears_flair_templates.yml +49 -0
- data/spec/cassettes/RedditKit_Client_Flair/_create_flair_template/creates_a_flair_template.yml +46 -0
- data/spec/cassettes/RedditKit_Client_Flair/_create_flair_template/raises_InvalidClassName.yml +46 -0
- data/spec/cassettes/RedditKit_Client_Flair/_create_flair_template/raises_TooManyClassNames.yml +47 -0
- data/spec/cassettes/RedditKit_Client_Flair/_delete_user_flair/requests_the_correct_resource.yml +60 -0
- data/spec/cassettes/RedditKit_Client_Flair/_flair_list/returns_the_list_of_flair.yml +44 -0
- data/spec/cassettes/RedditKit_Client_Flair/_set_flair/requests_the_correct_resource.yml +49 -0
- data/spec/cassettes/RedditKit_Client_Flair/_set_flair_options/sets_flair_options.yml +49 -0
- data/spec/cassettes/RedditKit_Client_Flair/_set_flair_with_csv/requests_the_correct_resource.yml +51 -0
- data/spec/cassettes/RedditKit_Client_Flair/_toggle_flair/requests_the_correct_resource.yml +49 -0
- data/spec/cassettes/RedditKit_Client_Links/_front_page/requests_the_correct_category.yml +498 -0
- data/spec/cassettes/RedditKit_Client_Links/_front_page/requests_the_correct_resource.yml +603 -0
- data/spec/cassettes/RedditKit_Client_Links/_hide/requests_the_correct_resource.yml +46 -0
- data/spec/cassettes/RedditKit_Client_Links/_link/returns_a_link.yml +55 -0
- data/spec/cassettes/RedditKit_Client_Links/_links/contains_pagination_information.yml +402 -0
- data/spec/cassettes/RedditKit_Client_Links/_links/requests_a_certain_number_of_links.yml +186 -0
- data/spec/cassettes/RedditKit_Client_Links/_links/requests_front_page_links_if_no_subreddit_is_present.yml +603 -0
- data/spec/cassettes/RedditKit_Client_Links/_links/requests_links_with_the_correct_time_frame.yml +375 -0
- data/spec/cassettes/RedditKit_Client_Links/_links/requests_the_correct_subreddit_and_category.yml +402 -0
- data/spec/cassettes/RedditKit_Client_Links/_links_with_domain/returns_links_with_a_specific_domain.yml +99 -0
- data/spec/cassettes/RedditKit_Client_Links/_mark_nsfw/requests_the_correct_resource.yml +46 -0
- data/spec/cassettes/RedditKit_Client_Links/_random_link/returns_a_random_link.yml +91 -0
- data/spec/cassettes/RedditKit_Client_Links/_submit/raises_RedditKit_InvalidCaptcha_if_no_CAPTCHA_is_filled_out.yml +54 -0
- data/spec/cassettes/RedditKit_Client_Links/_unhide/requests_the_correct_resource.yml +46 -0
- data/spec/cassettes/RedditKit_Client_Links/_unmark_nsfw/requests_the_correct_resource.yml +46 -0
- data/spec/cassettes/RedditKit_Client_Miscellaneous/_delete/requests_the_correct_resource.yml +46 -0
- data/spec/cassettes/RedditKit_Client_Miscellaneous/_edit/requests_the_correct_resource.yml +52 -0
- data/spec/cassettes/RedditKit_Client_Miscellaneous/_save/saves_an_object.yml +46 -0
- data/spec/cassettes/RedditKit_Client_Miscellaneous/_unsave/unsaves_an_object.yml +89 -0
- data/spec/cassettes/RedditKit_Client_Moderation/_accept_moderator_invitation/requests_the_correct_resource.yml +53 -0
- data/spec/cassettes/RedditKit_Client_Moderation/_ban/requests_the_correct_resource.yml +103 -0
- data/spec/cassettes/RedditKit_Client_Moderation/_contributors_to_subreddit/requests_the_correct_resource.yml +47 -0
- data/spec/cassettes/RedditKit_Client_Moderation/_ignore_reports/requests_the_correct_resource.yml +46 -0
- data/spec/cassettes/RedditKit_Client_Moderation/_moderation_log/returns_RedditKit_ModeratorAction_objects.yml +153 -0
- data/spec/cassettes/RedditKit_Client_Moderation/_moderators_of_subreddit/requests_the_correct_resource.yml +48 -0
- data/spec/cassettes/RedditKit_Client_Moderation/_reset_subreddit_header/requests_the_correct_resource.yml +55 -0
- data/spec/cassettes/RedditKit_Client_Moderation/_set_contest_mode/requests_the_correct_resource.yml +46 -0
- data/spec/cassettes/RedditKit_Client_Moderation/_set_sticky_post/requests_the_correct_resource.yml +46 -0
- data/spec/cassettes/RedditKit_Client_Moderation/_unban/requests_the_correct_resource.yml +54 -0
- data/spec/cassettes/RedditKit_Client_Moderation/_unignore_reports/requests_the_correct_resource.yml +46 -0
- data/spec/cassettes/RedditKit_Client_Multireddits/_add_subreddit_to_multireddit/adds_a_subreddit_to_a_multireddit.yml +177 -0
- data/spec/cassettes/RedditKit_Client_Multireddits/_create_multireddit/creates_a_multireddit.yml +137 -0
- data/spec/cassettes/RedditKit_Client_Multireddits/_create_multireddit/raises_RedditKit_Conflict_when_using_an_existing_name.yml +133 -0
- data/spec/cassettes/RedditKit_Client_Multireddits/_delete_multireddit/deletes_a_multireddit.yml +134 -0
- data/spec/cassettes/RedditKit_Client_Multireddits/_multireddit/with_a_path/returns_a_multireddit.yml +39 -0
- data/spec/cassettes/RedditKit_Client_Multireddits/_multireddit/without_a_path/returns_a_multireddit.yml +39 -0
- data/spec/cassettes/RedditKit_Client_Multireddits/_multireddit_description/with_a_multireddit/returns_a_multireddit_description.yml +81 -0
- data/spec/cassettes/RedditKit_Client_Multireddits/_multireddit_description/with_a_username_and_multireddit_name/returns_a_multireddit_description.yml +45 -0
- data/spec/cassettes/RedditKit_Client_Multireddits/_my_multireddits/return_s_the_user_s_multireddits.yml +47 -0
- data/spec/cassettes/RedditKit_Client_Multireddits/_remove_subreddit_from_multireddit/removes_a_subreddit_from_a_multireddit.yml +175 -0
- data/spec/cassettes/RedditKit_Client_Multireddits/_rename_multireddit/renames_a_multireddit.yml +134 -0
- data/spec/cassettes/RedditKit_Client_Multireddits/_set_multireddit_description/returns_a_multireddit_description.yml +48 -0
- data/spec/cassettes/RedditKit_Client_Multireddits/_update_multireddit/updates_a_multireddit.yml +184 -0
- data/spec/cassettes/RedditKit_Client_PrivateMessages/_block_author_of_message/requests_the_correct_resource.yml +46 -0
- data/spec/cassettes/RedditKit_Client_PrivateMessages/_mark_as_read/requests_the_correct_resource.yml +51 -0
- data/spec/cassettes/RedditKit_Client_PrivateMessages/_mark_as_unread/requests_the_correct_resource.yml +51 -0
- data/spec/cassettes/RedditKit_Client_PrivateMessages/_messages/requests_the_correct_resource.yml +187 -0
- data/spec/cassettes/RedditKit_Client_PrivateMessages/_unblock/requests_the_correct_resource.yml +46 -0
- data/spec/cassettes/RedditKit_Client_Search/_search/restricts_searches_to_a_specific_subreddit.yml +878 -0
- data/spec/cassettes/RedditKit_Client_Search/_search/returns_a_specific_number_of_results.yml +130 -0
- data/spec/cassettes/RedditKit_Client_Search/_search/returns_search_results.yml +844 -0
- data/spec/cassettes/RedditKit_Client_Subreddits/_random_subreddit/returns_a_random_subreddit.yml +181 -0
- data/spec/cassettes/RedditKit_Client_Subreddits/_recommended_subreddits/returns_subreddit_names.yml +37 -0
- data/spec/cassettes/RedditKit_Client_Subreddits/_search_subreddits_by_name/returns_subreddit_names.yml +875 -0
- data/spec/cassettes/RedditKit_Client_Subreddits/_subreddit/returns_a_specified_subreddit.yml +100 -0
- data/spec/cassettes/RedditKit_Client_Subreddits/_subreddits/returns_a_specified_number_of_subreddits.yml +505 -0
- data/spec/cassettes/RedditKit_Client_Subreddits/_subreddits/returns_subreddits_from_a_specific_category.yml +510 -0
- data/spec/cassettes/RedditKit_Client_Subreddits/_subreddits_by_topic/returns_subreddit_names.yml +41 -0
- data/spec/cassettes/RedditKit_Client_Subreddits/_subscribe/requests_the_correct_resource.yml +46 -0
- data/spec/cassettes/RedditKit_Client_Subreddits/_subscribed_subreddits/returns_a_specified_number_of_subreddits.yml +415 -0
- data/spec/cassettes/RedditKit_Client_Subreddits/_subscribed_subreddits/returns_subreddits_from_a_specific_category.yml +58 -0
- data/spec/cassettes/RedditKit_Client_Subreddits/_subscribed_subreddits/returns_the_user_s_subscribed_subreddits.yml +3469 -0
- data/spec/cassettes/RedditKit_Client_Subreddits/_unsubscribe/requests_the_correct_resource.yml +46 -0
- data/spec/cassettes/RedditKit_Client_Users/_friends/returns_the_user_s_friends.yml +48 -0
- data/spec/cassettes/RedditKit_Client_Users/_my_content/returns_the_user_s_content.yml +60 -0
- data/spec/cassettes/RedditKit_Client_Users/_user/requests_the_correct_resource.yml +48 -0
- data/spec/cassettes/RedditKit_Client_Users/_user/returns_a_specified_user.yml +48 -0
- data/spec/cassettes/RedditKit_Client_Users/_user/returns_the_authenticated_user.yml +48 -0
- data/spec/cassettes/RedditKit_Client_Users/_user_content/returns_the_user_s_content.yml +41 -0
- data/spec/cassettes/RedditKit_Client_Users/_username_available_/returns_false_for_an_unavailable_username.yml +36 -0
- data/spec/cassettes/RedditKit_Client_Users/_username_available_/returns_true_for_an_available_username.yml +36 -0
- data/spec/cassettes/RedditKit_Client_Voting/_downvote/with_a_comment_full_name_passed/downvotes_the_comment.yml +100 -0
- data/spec/cassettes/RedditKit_Client_Voting/_downvote/with_a_comment_passed/downvotes_the_comment.yml +154 -0
- data/spec/cassettes/RedditKit_Client_Voting/_downvote/with_a_link_full_name_passed/downvotes_the_link.yml +106 -0
- data/spec/cassettes/RedditKit_Client_Voting/_downvote/with_a_link_passed/downvotes_the_link.yml +166 -0
- data/spec/cassettes/RedditKit_Client_Voting/_upvote/with_a_comment_full_name_passed/upvotes_the_comment.yml +100 -0
- data/spec/cassettes/RedditKit_Client_Voting/_upvote/with_a_comment_passed/upvotes_the_comment.yml +154 -0
- data/spec/cassettes/RedditKit_Client_Voting/_upvote/with_a_link_full_name_passed/upvotes_the_link.yml +106 -0
- data/spec/cassettes/RedditKit_Client_Voting/_upvote/with_a_link_passed/upvotes_the_link.yml +166 -0
- data/spec/cassettes/RedditKit_Client_Voting/_withdraw_vote/with_a_comment_full_name_passed/withdraws_the_vote_on_the_comment.yml +154 -0
- data/spec/cassettes/RedditKit_Client_Voting/_withdraw_vote/with_a_comment_passed/withdraws_the_vote_on_the_comment.yml +208 -0
- data/spec/cassettes/RedditKit_Client_Voting/_withdraw_vote/with_a_link_full_name_passed/withdraws_the_vote_on_the_link.yml +166 -0
- data/spec/cassettes/RedditKit_Client_Voting/_withdraw_vote/with_a_link_passed/withdraws_the_vote_on_the_link.yml +226 -0
- data/spec/cassettes/RedditKit_Client_Wiki/_add_wiki_editor/requests_the_correct_resource.yml +46 -0
- data/spec/cassettes/RedditKit_Client_Wiki/_edit_wiki_page/requests_the_correct_resource.yml +48 -0
- data/spec/cassettes/RedditKit_Client_Wiki/_hide_wiki_revision/requests_the_correct_resource.yml +46 -0
- data/spec/cassettes/RedditKit_Client_Wiki/_remove_wiki_editor/requests_the_correct_resource.yml +46 -0
- data/spec/cassettes/RedditKit_Client_Wiki/_revert_to_revision/requests_the_correct_resource.yml +46 -0
- data/spec/cassettes/RedditKit_Comment/should_not_be_deleted_if_neither_author_and_comment_attributes_are_set_to_deleted_.yml +90 -0
- data/spec/cassettes/RedditKit_Comment/should_return_replies.yml +90 -0
- data/spec/cassettes/authenticated_client.yml +87 -0
- data/spec/redditkit/base_spec.rb +45 -0
- data/spec/redditkit/client/account_spec.rb +50 -0
- data/spec/redditkit/client/apps_spec.rb +58 -0
- data/spec/redditkit/client/captcha_spec.rb +30 -0
- data/spec/redditkit/client/comments_spec.rb +40 -0
- data/spec/redditkit/client/flair_spec.rb +92 -0
- data/spec/redditkit/client/links_spec.rb +103 -0
- data/spec/redditkit/client/miscellaneous_spec.rb +40 -0
- data/spec/redditkit/client/moderation_spec.rb +141 -0
- data/spec/redditkit/client/multireddits_spec.rb +158 -0
- data/spec/redditkit/client/private_messages_spec.rb +51 -0
- data/spec/redditkit/client/search_spec.rb +25 -0
- data/spec/redditkit/client/subreddits_spec.rb +83 -0
- data/spec/redditkit/client/users_spec.rb +92 -0
- data/spec/redditkit/client/voting_spec.rb +99 -0
- data/spec/redditkit/client/wiki_spec.rb +40 -0
- data/spec/redditkit/client_spec.rb +46 -0
- data/spec/redditkit/comment_spec.rb +26 -0
- data/spec/redditkit/creatable_spec.rb +24 -0
- data/spec/redditkit/error_spec.rb +61 -0
- data/spec/redditkit/link_spec.rb +33 -0
- data/spec/redditkit/multireddit_spec.rb +27 -0
- data/spec/redditkit/paginated_response_spec.rb +23 -0
- data/spec/redditkit/thing_spec.rb +18 -0
- data/spec/redditkit/votable_spec.rb +52 -0
- data/spec/redditkit_spec.rb +21 -0
- data/spec/spec_helper.rb +124 -0
- metadata +390 -0
@@ -0,0 +1,130 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://www.reddit.com/r/ruby/search.json?limit=3&q=ruby&restrict_sr=true
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.8
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Content-Type:
|
22
|
+
- application/json; charset=UTF-8
|
23
|
+
Server:
|
24
|
+
- "'; DROP TABLE servertypes; --"
|
25
|
+
Vary:
|
26
|
+
- accept-encoding
|
27
|
+
Date:
|
28
|
+
- Sun, 10 Nov 2013 22:21:33 GMT
|
29
|
+
Content-Length:
|
30
|
+
- '7430'
|
31
|
+
Connection:
|
32
|
+
- keep-alive
|
33
|
+
body:
|
34
|
+
encoding: UTF-8
|
35
|
+
string: "{\"kind\": \"Listing\", \"data\": {\"modhash\": \"\", \"children\":
|
36
|
+
[{\"kind\": \"t3\", \"data\": {\"domain\": \"self.ruby\", \"banned_by\": null,
|
37
|
+
\"media_embed\": {}, \"subreddit\": \"ruby\", \"selftext_html\": \"<!--
|
38
|
+
SC_OFF --><div class=\\\"md\\\"><p>Hello <a href=\\\"/r/ruby\\\">/r/ruby</a>
|
39
|
+
</p>\\n\\n<p>I am new to Ruby, however I&#39;ve programmed
|
40
|
+
in C, C++, Java, and C# along with VB.NET, HTML, and minimal Python. </p>\\n\\n<p>I&#39;ve
|
41
|
+
heard that Ruby is a bit different and has quite the steep learning curve.
|
42
|
+
So I ask you...</p>\\n\\n<p>What is the one thing that you wish
|
43
|
+
you knew before starting to learn or really use Ruby?</p>\\n\\n<p>I
|
44
|
+
also plan on using RoR if anyone has thoughts on that as well!</p>\\n\\n<p>Any
|
45
|
+
comments are appreciated! Thanks Guys!</p>\\n</div><!-- SC_ON
|
46
|
+
-->\", \"selftext\": \"Hello /r/ruby \\n\\nI am new to Ruby, however I've
|
47
|
+
programmed in C, C++, Java, and C# along with VB.NET, HTML, and minimal Python.
|
48
|
+
\\n\\nI've heard that Ruby is a bit different and has quite the steep learning
|
49
|
+
curve. So I ask you...\\n\\nWhat is the one thing that you wish you knew before
|
50
|
+
starting to learn or really use Ruby?\\n\\nI also plan on using RoR if anyone
|
51
|
+
has thoughts on that as well!\\n\\nAny comments are appreciated! Thanks Guys!\",
|
52
|
+
\"likes\": null, \"secure_media\": null, \"link_flair_text\": null, \"id\":
|
53
|
+
\"1j9wqw\", \"secure_media_embed\": {}, \"clicked\": false, \"stickied\":
|
54
|
+
false, \"author\": \"ProductiveThings\", \"media\": null, \"score\": 56, \"approved_by\":
|
55
|
+
null, \"over_18\": false, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\":
|
56
|
+
\"t5_2qh21\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\":
|
57
|
+
null, \"downs\": 6, \"saved\": false, \"is_self\": true, \"permalink\": \"/r/ruby/comments/1j9wqw/what_is_one_thing_you_wish_you_knew_when_starting/\",
|
58
|
+
\"name\": \"t3_1j9wqw\", \"created\": 1375108691.0, \"url\": \"http://www.reddit.com/r/ruby/comments/1j9wqw/what_is_one_thing_you_wish_you_knew_when_starting/\",
|
59
|
+
\"author_flair_text\": null, \"title\": \"What is one thing you wish you knew
|
60
|
+
when starting Ruby?\", \"created_utc\": 1375105091.0, \"ups\": 62, \"num_comments\":
|
61
|
+
73, \"visited\": false, \"num_reports\": null, \"distinguished\": null}},
|
62
|
+
{\"kind\": \"t3\", \"data\": {\"domain\": \"self.ruby\", \"banned_by\": null,
|
63
|
+
\"media_embed\": {}, \"subreddit\": \"ruby\", \"selftext_html\": \"<!--
|
64
|
+
SC_OFF --><div class=\\\"md\\\"><p>...and thanks to everyone
|
65
|
+
in <a href=\\\"/r/ruby\\\">/r/ruby</a>, <a href=\\\"/r/rails\\\">/r/rails</a>
|
66
|
+
and <a href=\\\"/r/programming\\\">/r/programming</a> who helped
|
67
|
+
me gain not only the skills but the confidence to make the switch. I&#39;ve
|
68
|
+
been a lifelong marketer who always felt unfulfilled and spent nights/weekends/free
|
69
|
+
time learning Ruby, Rails, MySQL, PostgreSQL, jQuery, and more, finally culminating
|
70
|
+
in my first full-time development job. Wish me luck!</p>\\n</div><!--
|
71
|
+
SC_ON -->\", \"selftext\": \"...and thanks to everyone in /r/ruby, /r/rails
|
72
|
+
and /r/programming who helped me gain not only the skills but the confidence
|
73
|
+
to make the switch. I've been a lifelong marketer who always felt unfulfilled
|
74
|
+
and spent nights/weekends/free time learning Ruby, Rails, MySQL, PostgreSQL,
|
75
|
+
jQuery, and more, finally culminating in my first full-time development job.
|
76
|
+
\ Wish me luck!\", \"likes\": null, \"secure_media\": null, \"link_flair_text\":
|
77
|
+
null, \"id\": \"1i72ww\", \"secure_media_embed\": {}, \"clicked\": false,
|
78
|
+
\"stickied\": false, \"author\": \"caadbury\", \"media\": null, \"score\":
|
79
|
+
86, \"approved_by\": null, \"over_18\": false, \"hidden\": false, \"thumbnail\":
|
80
|
+
\"\", \"subreddit_id\": \"t5_2qh21\", \"edited\": false, \"link_flair_css_class\":
|
81
|
+
null, \"author_flair_css_class\": null, \"downs\": 20, \"saved\": false, \"is_self\":
|
82
|
+
true, \"permalink\": \"/r/ruby/comments/1i72ww/on_monday_i_start_a_new_career_as_a_web_developer/\",
|
83
|
+
\"name\": \"t3_1i72ww\", \"created\": 1373686161.0, \"url\": \"http://www.reddit.com/r/ruby/comments/1i72ww/on_monday_i_start_a_new_career_as_a_web_developer/\",
|
84
|
+
\"author_flair_text\": null, \"title\": \"On Monday, I start a new career
|
85
|
+
as a web developer in Ruby on Rails\", \"created_utc\": 1373682561.0, \"ups\":
|
86
|
+
106, \"num_comments\": 49, \"visited\": false, \"num_reports\": null, \"distinguished\":
|
87
|
+
null}}, {\"kind\": \"t3\", \"data\": {\"domain\": \"self.ruby\", \"banned_by\":
|
88
|
+
null, \"media_embed\": {}, \"subreddit\": \"ruby\", \"selftext_html\": \"<!--
|
89
|
+
SC_OFF --><div class=\\\"md\\\"><p>Hello everyone,</p>\\n\\n<p>This
|
90
|
+
is a little framework of mine that I&#39;ve built out of a personal need
|
91
|
+
- basically, I wanted to write a desktop app using Ruby and I found it daunting
|
92
|
+
to say the least.</p>\\n\\n<p>So, I&#39;ve built Freightrain
|
93
|
+
to take care of all the stuff I really shouldn&#39;t care about, like
|
94
|
+
loading interface definitions, cross-toolkit compatibility and the likes.</p>\\n\\n<p>Now
|
95
|
+
I&#39;ve been working on it for almost 2 years (on and off of course)
|
96
|
+
and, since I&#39;ve just fixed it so it loads the newest glade specifications,
|
97
|
+
I thought that I could ask you guys for an evaluation.</p>\\n\\n<p>There&#39;s
|
98
|
+
a little readme on the github page and there are some examples in the /examples
|
99
|
+
folder.</p>\\n\\n<p><a href=\\\"http://github.com/bolthar/freightrain\\\">Link
|
100
|
+
to the github page!</a></p>\\n\\n<p>WHOA! Thanks for the
|
101
|
+
attention, I thought this was going to be ignored...</p>\\n\\n<p>How
|
102
|
+
many of you would be interested in a step by step tutorial over the major
|
103
|
+
features? I will build that if there&#39;s enough interest.</p>\\n</div><!--
|
104
|
+
SC_ON -->\", \"selftext\": \"Hello everyone,\\n\\nThis is a little framework
|
105
|
+
of mine that I've built out of a personal need - basically, I wanted to write
|
106
|
+
a desktop app using Ruby and I found it daunting to say the least.\\n\\nSo,
|
107
|
+
I've built Freightrain to take care of all the stuff I really shouldn't care
|
108
|
+
about, like loading interface definitions, cross-toolkit compatibility and
|
109
|
+
the likes.\\n\\nNow I've been working on it for almost 2 years (on and off
|
110
|
+
of course) and, since I've just fixed it so it loads the newest glade specifications,
|
111
|
+
I thought that I could ask you guys for an evaluation.\\n\\nThere's a little
|
112
|
+
readme on the github page and there are some examples in the /examples folder.\\n\\n[Link
|
113
|
+
to the github page!](http://github.com/bolthar/freightrain)\\n\\nWHOA! Thanks
|
114
|
+
for the attention, I thought this was going to be ignored...\\n\\nHow many
|
115
|
+
of you would be interested in a step by step tutorial over the major features?
|
116
|
+
I will build that if there's enough interest.\", \"likes\": null, \"secure_media\":
|
117
|
+
null, \"link_flair_text\": null, \"id\": \"sk4qq\", \"secure_media_embed\":
|
118
|
+
{}, \"clicked\": false, \"stickied\": false, \"author\": \"bolthar\", \"media\":
|
119
|
+
null, \"score\": 160, \"approved_by\": null, \"over_18\": false, \"hidden\":
|
120
|
+
false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_2qh21\", \"edited\": true,
|
121
|
+
\"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\":
|
122
|
+
12, \"saved\": false, \"is_self\": true, \"permalink\": \"/r/ruby/comments/sk4qq/freightrain_easy_ruby_desktop_development/\",
|
123
|
+
\"name\": \"t3_sk4qq\", \"created\": 1334952179.0, \"url\": \"http://www.reddit.com/r/ruby/comments/sk4qq/freightrain_easy_ruby_desktop_development/\",
|
124
|
+
\"author_flair_text\": null, \"title\": \"Freightrain - easy Ruby desktop
|
125
|
+
development\", \"created_utc\": 1334948579.0, \"ups\": 172, \"num_comments\":
|
126
|
+
32, \"visited\": false, \"num_reports\": null, \"distinguished\": null}}],
|
127
|
+
\"after\": \"t3_sk4qq\", \"before\": null}}"
|
128
|
+
http_version:
|
129
|
+
recorded_at: Sun, 10 Nov 2013 22:21:32 GMT
|
130
|
+
recorded_with: VCR 2.6.0
|
@@ -0,0 +1,844 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://www.reddit.com/search.json?limit&q=ruby&restrict_sr
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.8
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- "*/*"
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Content-Type:
|
22
|
+
- application/json; charset=UTF-8
|
23
|
+
Server:
|
24
|
+
- "'; DROP TABLE servertypes; --"
|
25
|
+
Vary:
|
26
|
+
- accept-encoding
|
27
|
+
Date:
|
28
|
+
- Sun, 10 Nov 2013 22:21:32 GMT
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
31
|
+
Connection:
|
32
|
+
- Transfer-Encoding
|
33
|
+
- keep-alive
|
34
|
+
body:
|
35
|
+
encoding: UTF-8
|
36
|
+
string: "{\"kind\": \"Listing\", \"data\": {\"modhash\": \"\", \"children\":
|
37
|
+
[{\"kind\": \"t3\", \"data\": {\"domain\": \"self.IAmA\", \"banned_by\": null,
|
38
|
+
\"media_embed\": {}, \"subreddit\": \"IAmA\", \"selftext_html\": \"<!--
|
39
|
+
SC_OFF --><div class=\\\"md\\\"><p>Verification: <a href=\\\"http://imgur.com/HL2X9\\\">http://imgur.com/HL2X9</a>
|
40
|
+
</p>\\n\\n<p>Twitter: <a href=\\\"http://twitter.com/Ruby_Knox\\\">http://twitter.com/Ruby_Knox</a>
|
41
|
+
</p>\\n\\n<p>Sorry If I&#39;ve missed anyone&#39;s questions!
|
42
|
+
</p>\\n</div><!-- SC_ON -->\", \"selftext\": \"Verification:
|
43
|
+
http://imgur.com/HL2X9 \\n\\nTwitter: http://twitter.com/Ruby_Knox \\n\\nSorry
|
44
|
+
If I've missed anyone's questions! \\n\", \"likes\": null, \"secure_media\":
|
45
|
+
null, \"link_flair_text\": null, \"id\": \"sk79h\", \"secure_media_embed\":
|
46
|
+
{}, \"clicked\": false, \"stickied\": false, \"author\": \"Ruby_Knox\", \"media\":
|
47
|
+
null, \"score\": 260, \"approved_by\": null, \"over_18\": false, \"hidden\":
|
48
|
+
false, \"thumbnail\": \"self\", \"subreddit_id\": \"t5_2qzb6\", \"edited\":
|
49
|
+
true, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\":
|
50
|
+
140, \"saved\": false, \"is_self\": true, \"permalink\": \"/r/IAmA/comments/sk79h/iama_pornstar_camgirl_ruby_knox_ama/\",
|
51
|
+
\"name\": \"t3_sk79h\", \"created\": 1334954774.0, \"url\": \"http://www.reddit.com/r/IAmA/comments/sk79h/iama_pornstar_camgirl_ruby_knox_ama/\",
|
52
|
+
\"author_flair_text\": null, \"title\": \"IAmA pornstar / camgirl - Ruby Knox.
|
53
|
+
AMA\", \"created_utc\": 1334951174.0, \"ups\": 400, \"num_comments\": 687,
|
54
|
+
\"visited\": false, \"num_reports\": null, \"distinguished\": null}}, {\"kind\":
|
55
|
+
\"t3\", \"data\": {\"domain\": \"self.ruby\", \"banned_by\": null, \"media_embed\":
|
56
|
+
{}, \"subreddit\": \"ruby\", \"selftext_html\": \"<!-- SC_OFF --><div
|
57
|
+
class=\\\"md\\\"><p>Hello <a href=\\\"/r/ruby\\\">/r/ruby</a>
|
58
|
+
</p>\\n\\n<p>I am new to Ruby, however I&#39;ve programmed
|
59
|
+
in C, C++, Java, and C# along with VB.NET, HTML, and minimal Python. </p>\\n\\n<p>I&#39;ve
|
60
|
+
heard that Ruby is a bit different and has quite the steep learning curve.
|
61
|
+
So I ask you...</p>\\n\\n<p>What is the one thing that you wish
|
62
|
+
you knew before starting to learn or really use Ruby?</p>\\n\\n<p>I
|
63
|
+
also plan on using RoR if anyone has thoughts on that as well!</p>\\n\\n<p>Any
|
64
|
+
comments are appreciated! Thanks Guys!</p>\\n</div><!-- SC_ON
|
65
|
+
-->\", \"selftext\": \"Hello /r/ruby \\n\\nI am new to Ruby, however I've
|
66
|
+
programmed in C, C++, Java, and C# along with VB.NET, HTML, and minimal Python.
|
67
|
+
\\n\\nI've heard that Ruby is a bit different and has quite the steep learning
|
68
|
+
curve. So I ask you...\\n\\nWhat is the one thing that you wish you knew before
|
69
|
+
starting to learn or really use Ruby?\\n\\nI also plan on using RoR if anyone
|
70
|
+
has thoughts on that as well!\\n\\nAny comments are appreciated! Thanks Guys!\",
|
71
|
+
\"likes\": null, \"secure_media\": null, \"link_flair_text\": null, \"id\":
|
72
|
+
\"1j9wqw\", \"secure_media_embed\": {}, \"clicked\": false, \"stickied\":
|
73
|
+
false, \"author\": \"ProductiveThings\", \"media\": null, \"score\": 55, \"approved_by\":
|
74
|
+
null, \"over_18\": false, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\":
|
75
|
+
\"t5_2qh21\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\":
|
76
|
+
null, \"downs\": 7, \"saved\": false, \"is_self\": true, \"permalink\": \"/r/ruby/comments/1j9wqw/what_is_one_thing_you_wish_you_knew_when_starting/\",
|
77
|
+
\"name\": \"t3_1j9wqw\", \"created\": 1375108691.0, \"url\": \"http://www.reddit.com/r/ruby/comments/1j9wqw/what_is_one_thing_you_wish_you_knew_when_starting/\",
|
78
|
+
\"author_flair_text\": null, \"title\": \"What is one thing you wish you knew
|
79
|
+
when starting Ruby?\", \"created_utc\": 1375105091.0, \"ups\": 62, \"num_comments\":
|
80
|
+
73, \"visited\": false, \"num_reports\": null, \"distinguished\": null}},
|
81
|
+
{\"kind\": \"t3\", \"data\": {\"domain\": \"self.ruby\", \"banned_by\": null,
|
82
|
+
\"media_embed\": {}, \"subreddit\": \"ruby\", \"selftext_html\": \"<!--
|
83
|
+
SC_OFF --><div class=\\\"md\\\"><p>...and thanks to everyone
|
84
|
+
in <a href=\\\"/r/ruby\\\">/r/ruby</a>, <a href=\\\"/r/rails\\\">/r/rails</a>
|
85
|
+
and <a href=\\\"/r/programming\\\">/r/programming</a> who helped
|
86
|
+
me gain not only the skills but the confidence to make the switch. I&#39;ve
|
87
|
+
been a lifelong marketer who always felt unfulfilled and spent nights/weekends/free
|
88
|
+
time learning Ruby, Rails, MySQL, PostgreSQL, jQuery, and more, finally culminating
|
89
|
+
in my first full-time development job. Wish me luck!</p>\\n</div><!--
|
90
|
+
SC_ON -->\", \"selftext\": \"...and thanks to everyone in /r/ruby, /r/rails
|
91
|
+
and /r/programming who helped me gain not only the skills but the confidence
|
92
|
+
to make the switch. I've been a lifelong marketer who always felt unfulfilled
|
93
|
+
and spent nights/weekends/free time learning Ruby, Rails, MySQL, PostgreSQL,
|
94
|
+
jQuery, and more, finally culminating in my first full-time development job.
|
95
|
+
\ Wish me luck!\", \"likes\": null, \"secure_media\": null, \"link_flair_text\":
|
96
|
+
null, \"id\": \"1i72ww\", \"secure_media_embed\": {}, \"clicked\": false,
|
97
|
+
\"stickied\": false, \"author\": \"caadbury\", \"media\": null, \"score\":
|
98
|
+
83, \"approved_by\": null, \"over_18\": false, \"hidden\": false, \"thumbnail\":
|
99
|
+
\"\", \"subreddit_id\": \"t5_2qh21\", \"edited\": false, \"link_flair_css_class\":
|
100
|
+
null, \"author_flair_css_class\": null, \"downs\": 22, \"saved\": false, \"is_self\":
|
101
|
+
true, \"permalink\": \"/r/ruby/comments/1i72ww/on_monday_i_start_a_new_career_as_a_web_developer/\",
|
102
|
+
\"name\": \"t3_1i72ww\", \"created\": 1373686161.0, \"url\": \"http://www.reddit.com/r/ruby/comments/1i72ww/on_monday_i_start_a_new_career_as_a_web_developer/\",
|
103
|
+
\"author_flair_text\": null, \"title\": \"On Monday, I start a new career
|
104
|
+
as a web developer in Ruby on Rails\", \"created_utc\": 1373682561.0, \"ups\":
|
105
|
+
105, \"num_comments\": 49, \"visited\": false, \"num_reports\": null, \"distinguished\":
|
106
|
+
null}}, {\"kind\": \"t3\", \"data\": {\"domain\": \"self.ruby\", \"banned_by\":
|
107
|
+
null, \"media_embed\": {}, \"subreddit\": \"ruby\", \"selftext_html\": \"<!--
|
108
|
+
SC_OFF --><div class=\\\"md\\\"><p>Hello everyone,</p>\\n\\n<p>This
|
109
|
+
is a little framework of mine that I&#39;ve built out of a personal need
|
110
|
+
- basically, I wanted to write a desktop app using Ruby and I found it daunting
|
111
|
+
to say the least.</p>\\n\\n<p>So, I&#39;ve built Freightrain
|
112
|
+
to take care of all the stuff I really shouldn&#39;t care about, like
|
113
|
+
loading interface definitions, cross-toolkit compatibility and the likes.</p>\\n\\n<p>Now
|
114
|
+
I&#39;ve been working on it for almost 2 years (on and off of course)
|
115
|
+
and, since I&#39;ve just fixed it so it loads the newest glade specifications,
|
116
|
+
I thought that I could ask you guys for an evaluation.</p>\\n\\n<p>There&#39;s
|
117
|
+
a little readme on the github page and there are some examples in the /examples
|
118
|
+
folder.</p>\\n\\n<p><a href=\\\"http://github.com/bolthar/freightrain\\\">Link
|
119
|
+
to the github page!</a></p>\\n\\n<p>WHOA! Thanks for the
|
120
|
+
attention, I thought this was going to be ignored...</p>\\n\\n<p>How
|
121
|
+
many of you would be interested in a step by step tutorial over the major
|
122
|
+
features? I will build that if there&#39;s enough interest.</p>\\n</div><!--
|
123
|
+
SC_ON -->\", \"selftext\": \"Hello everyone,\\n\\nThis is a little framework
|
124
|
+
of mine that I've built out of a personal need - basically, I wanted to write
|
125
|
+
a desktop app using Ruby and I found it daunting to say the least.\\n\\nSo,
|
126
|
+
I've built Freightrain to take care of all the stuff I really shouldn't care
|
127
|
+
about, like loading interface definitions, cross-toolkit compatibility and
|
128
|
+
the likes.\\n\\nNow I've been working on it for almost 2 years (on and off
|
129
|
+
of course) and, since I've just fixed it so it loads the newest glade specifications,
|
130
|
+
I thought that I could ask you guys for an evaluation.\\n\\nThere's a little
|
131
|
+
readme on the github page and there are some examples in the /examples folder.\\n\\n[Link
|
132
|
+
to the github page!](http://github.com/bolthar/freightrain)\\n\\nWHOA! Thanks
|
133
|
+
for the attention, I thought this was going to be ignored...\\n\\nHow many
|
134
|
+
of you would be interested in a step by step tutorial over the major features?
|
135
|
+
I will build that if there's enough interest.\", \"likes\": null, \"secure_media\":
|
136
|
+
null, \"link_flair_text\": null, \"id\": \"sk4qq\", \"secure_media_embed\":
|
137
|
+
{}, \"clicked\": false, \"stickied\": false, \"author\": \"bolthar\", \"media\":
|
138
|
+
null, \"score\": 162, \"approved_by\": null, \"over_18\": false, \"hidden\":
|
139
|
+
false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_2qh21\", \"edited\": true,
|
140
|
+
\"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\":
|
141
|
+
13, \"saved\": false, \"is_self\": true, \"permalink\": \"/r/ruby/comments/sk4qq/freightrain_easy_ruby_desktop_development/\",
|
142
|
+
\"name\": \"t3_sk4qq\", \"created\": 1334952179.0, \"url\": \"http://www.reddit.com/r/ruby/comments/sk4qq/freightrain_easy_ruby_desktop_development/\",
|
143
|
+
\"author_flair_text\": null, \"title\": \"Freightrain - easy Ruby desktop
|
144
|
+
development\", \"created_utc\": 1334948579.0, \"ups\": 175, \"num_comments\":
|
145
|
+
32, \"visited\": false, \"num_reports\": null, \"distinguished\": null}},
|
146
|
+
{\"kind\": \"t3\", \"data\": {\"domain\": \"self.ruby\", \"banned_by\": null,
|
147
|
+
\"media_embed\": {}, \"subreddit\": \"ruby\", \"selftext_html\": \"<!--
|
148
|
+
SC_OFF --><div class=\\\"md\\\"><p>I&#39;ve been trying
|
149
|
+
to figure this one out in past few days and I&#39;m quite unable to come
|
150
|
+
up with reasonable answer.</p>\\n\\n<ul>\\n<li>We have GitHub,
|
151
|
+
most awesomest <em>social network</em> on the internet.</li>\\n<li>We
|
152
|
+
have RubyGems, centralized libraries for everything.</li>\\n<li>We
|
153
|
+
have JRuby, for those who want to stick in the Java world or do some real
|
154
|
+
threading.</li>\\n<li>We have Rails, possibly the best web framework
|
155
|
+
available (django people please don&#39;t burry me alive)</li>\\n<li>We
|
156
|
+
have RSpec and Cucumber, which make me cry when I have to work with JUnit.</li>\\n<li>We
|
157
|
+
have great cloud hosting solutions like Heroku and Engine Yard.</li>\\n<li>We
|
158
|
+
have huge number of screencasts and tutorials, especially those high quality
|
159
|
+
ones (Peepcode, Think Vitamin, Railscasts).</li>\\n<li>Last but
|
160
|
+
not least, we have Ruby, language which is fun to work with, expressive ...
|
161
|
+
well you know.</li>\\n</ul>\\n\\n<p>The list could go on
|
162
|
+
and on, so I guess you get my point. </p>\\n\\n<p>My question
|
163
|
+
is: <strong>What is missing? What do we need, but don&#39;t (yet)
|
164
|
+
have?</strong></p>\\n</div><!-- SC_ON -->\", \"selftext\":
|
165
|
+
\"I've been trying to figure this one out in past few days and I'm quite unable
|
166
|
+
to come up with reasonable answer.\\n\\n* We have GitHub, most awesomest *social
|
167
|
+
network* on the internet.\\n* We have RubyGems, centralized libraries for
|
168
|
+
everything.\\n* We have JRuby, for those who want to stick in the Java world
|
169
|
+
or do some real threading.\\n* We have Rails, possibly the best web framework
|
170
|
+
available (django people please don't burry me alive)\\n* We have RSpec and
|
171
|
+
Cucumber, which make me cry when I have to work with JUnit.\\n* We have great
|
172
|
+
cloud hosting solutions like Heroku and Engine Yard.\\n* We have huge number
|
173
|
+
of screencasts and tutorials, especially those high quality ones (Peepcode,
|
174
|
+
Think Vitamin, Railscasts).\\n* Last but not least, we have Ruby, language
|
175
|
+
which is fun to work with, expressive ... well you know.\\n\\nThe list could
|
176
|
+
go on and on, so I guess you get my point. \\n\\nMy question is: **What is
|
177
|
+
missing? What do we need, but don't (yet) have?**\", \"likes\": null, \"secure_media\":
|
178
|
+
null, \"link_flair_text\": null, \"id\": \"elygz\", \"secure_media_embed\":
|
179
|
+
{}, \"clicked\": false, \"stickied\": false, \"author\": \"progfu\", \"media\":
|
180
|
+
null, \"score\": 39, \"approved_by\": null, \"over_18\": false, \"hidden\":
|
181
|
+
false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_2qh21\", \"edited\": false,
|
182
|
+
\"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\":
|
183
|
+
8, \"saved\": false, \"is_self\": true, \"permalink\": \"/r/ruby/comments/elygz/what_is_the_biggest_current_problem_in_ruby/\",
|
184
|
+
\"name\": \"t3_elygz\", \"created\": 1292377299.0, \"url\": \"http://www.reddit.com/r/ruby/comments/elygz/what_is_the_biggest_current_problem_in_ruby/\",
|
185
|
+
\"author_flair_text\": null, \"title\": \"What is the biggest current problem
|
186
|
+
in Ruby community?\", \"created_utc\": 1292377299.0, \"ups\": 47, \"num_comments\":
|
187
|
+
134, \"visited\": false, \"num_reports\": null, \"distinguished\": null}},
|
188
|
+
{\"kind\": \"t3\", \"data\": {\"domain\": \"self.ruby\", \"banned_by\": null,
|
189
|
+
\"media_embed\": {}, \"subreddit\": \"ruby\", \"selftext_html\": \"<!--
|
190
|
+
SC_OFF --><div class=\\\"md\\\"><p>Whats the best way to set
|
191
|
+
up Ruby on Rails on OSx -- Newbie, and trying to figure out how to use Ruby
|
192
|
+
on rails on my macbook </p>\\n</div><!-- SC_ON -->\", \"selftext\":
|
193
|
+
\"Whats the best way to set up Ruby on Rails on OSx -- Newbie, and trying
|
194
|
+
to figure out how to use Ruby on rails on my macbook \", \"likes\": null,
|
195
|
+
\"secure_media\": null, \"link_flair_text\": null, \"id\": \"zm1uu\", \"secure_media_embed\":
|
196
|
+
{}, \"clicked\": false, \"stickied\": false, \"author\": \"sirisaac87\", \"media\":
|
197
|
+
null, \"score\": 27, \"approved_by\": null, \"over_18\": false, \"hidden\":
|
198
|
+
false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_2qh21\", \"edited\": false,
|
199
|
+
\"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\":
|
200
|
+
6, \"saved\": false, \"is_self\": true, \"permalink\": \"/r/ruby/comments/zm1uu/setup_ruby_on_rails_on_osx/\",
|
201
|
+
\"name\": \"t3_zm1uu\", \"created\": 1347219823.0, \"url\": \"http://www.reddit.com/r/ruby/comments/zm1uu/setup_ruby_on_rails_on_osx/\",
|
202
|
+
\"author_flair_text\": null, \"title\": \"Setup Ruby on Rails on OSX -- \",
|
203
|
+
\"created_utc\": 1347216223.0, \"ups\": 33, \"num_comments\": 54, \"visited\":
|
204
|
+
false, \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t3\",
|
205
|
+
\"data\": {\"domain\": \"self.ruby\", \"banned_by\": null, \"media_embed\":
|
206
|
+
{}, \"subreddit\": \"ruby\", \"selftext_html\": \"<!-- SC_OFF --><div
|
207
|
+
class=\\\"md\\\"><p>So jamesgolick was kind enough to make me moderator
|
208
|
+
of the community. I want to make a promise to you guys that I&#39;ll do
|
209
|
+
my best to keep it clean.</p>\\n\\n<p>If you have any requests
|
210
|
+
please let me know (like a valid link for the side navigation).</p>\\n\\n<p>How
|
211
|
+
do you want to see r/ruby improved? - A contest, guides, removing spam, etc.
|
212
|
+
Let me know!</p>\\n</div><!-- SC_ON -->\", \"selftext\":
|
213
|
+
\"So jamesgolick was kind enough to make me moderator of the community. I
|
214
|
+
want to make a promise to you guys that I'll do my best to keep it clean.\\n\\nIf
|
215
|
+
you have any requests please let me know (like a valid link for the side navigation).\\n\\nHow
|
216
|
+
do you want to see r/ruby improved? - A contest, guides, removing spam, etc.
|
217
|
+
Let me know!\", \"likes\": null, \"secure_media\": null, \"link_flair_text\":
|
218
|
+
null, \"id\": \"g1pia\", \"secure_media_embed\": {}, \"clicked\": false, \"stickied\":
|
219
|
+
false, \"author\": \"ViralInfection\", \"media\": null, \"score\": 35, \"approved_by\":
|
220
|
+
null, \"over_18\": false, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\":
|
221
|
+
\"t5_2qh21\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\":
|
222
|
+
null, \"downs\": 6, \"saved\": false, \"is_self\": true, \"permalink\": \"/r/ruby/comments/g1pia/hello_rruby_im_your_new_moderator_how_would_you/\",
|
223
|
+
\"name\": \"t3_g1pia\", \"created\": 1299819313.0, \"url\": \"http://www.reddit.com/r/ruby/comments/g1pia/hello_rruby_im_your_new_moderator_how_would_you/\",
|
224
|
+
\"author_flair_text\": null, \"title\": \"Hello r/ruby. I'm your new moderator,
|
225
|
+
how would you improve r/ruby?\", \"created_utc\": 1299819313.0, \"ups\": 41,
|
226
|
+
\"num_comments\": 53, \"visited\": false, \"num_reports\": null, \"distinguished\":
|
227
|
+
null}}, {\"kind\": \"t3\", \"data\": {\"domain\": \"self.ruby\", \"banned_by\":
|
228
|
+
null, \"media_embed\": {}, \"subreddit\": \"ruby\", \"selftext_html\": \"<!--
|
229
|
+
SC_OFF --><div class=\\\"md\\\"><p>start with straight ruby
|
230
|
+
or go to rails?\\nI started with HTML/CSS/PHP/javascript with no frameworks
|
231
|
+
and am wondering if i would be better to start with straight ruby as well.
|
232
|
+
</p>\\n\\n<p>Thanks all.!!</p>\\n</div><!-- SC_ON
|
233
|
+
-->\", \"selftext\": \"start with straight ruby or go to rails?\\nI started
|
234
|
+
with HTML/CSS/PHP/javascript with no frameworks and am wondering if i would
|
235
|
+
be better to start with straight ruby as well. \\n\\nThanks all.!!\", \"likes\":
|
236
|
+
null, \"secure_media\": null, \"link_flair_text\": null, \"id\": \"widgp\",
|
237
|
+
\"secure_media_embed\": {}, \"clicked\": false, \"stickied\": false, \"author\":
|
238
|
+
\"swiftpants\", \"media\": null, \"score\": 21, \"approved_by\": null, \"over_18\":
|
239
|
+
false, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_2qh21\",
|
240
|
+
\"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\":
|
241
|
+
null, \"downs\": 3, \"saved\": false, \"is_self\": true, \"permalink\": \"/r/ruby/comments/widgp/newb_to_ruby_should_i/\",
|
242
|
+
\"name\": \"t3_widgp\", \"created\": 1342206260.0, \"url\": \"http://www.reddit.com/r/ruby/comments/widgp/newb_to_ruby_should_i/\",
|
243
|
+
\"author_flair_text\": null, \"title\": \"newb to ruby.. should I\", \"created_utc\":
|
244
|
+
1342202660.0, \"ups\": 24, \"num_comments\": 50, \"visited\": false, \"num_reports\":
|
245
|
+
null, \"distinguished\": null}}, {\"kind\": \"t3\", \"data\": {\"domain\":
|
246
|
+
\"self.ruby\", \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"ruby\",
|
247
|
+
\"selftext_html\": \"<!-- SC_OFF --><div class=\\\"md\\\"><p>They
|
248
|
+
only kept one guy on the API team and he&#39;s been there from the beginning.
|
249
|
+
I&#39;ve done a few rails projects but not enough to consider myself a
|
250
|
+
rails developer guru. Any jobs for guys with just ruby experience?</p>\\n</div><!--
|
251
|
+
SC_ON -->\", \"selftext\": \"They only kept one guy on the API team and
|
252
|
+
he's been there from the beginning. I've done a few rails projects but not
|
253
|
+
enough to consider myself a rails developer guru. Any jobs for guys with just
|
254
|
+
ruby experience?\", \"likes\": null, \"secure_media\": null, \"link_flair_text\":
|
255
|
+
null, \"id\": \"1nylih\", \"secure_media_embed\": {}, \"clicked\": false,
|
256
|
+
\"stickied\": false, \"author\": \"Solnse\", \"media\": null, \"score\": 34,
|
257
|
+
\"approved_by\": null, \"over_18\": false, \"hidden\": false, \"thumbnail\":
|
258
|
+
\"\", \"subreddit_id\": \"t5_2qh21\", \"edited\": false, \"link_flair_css_class\":
|
259
|
+
null, \"author_flair_css_class\": null, \"downs\": 7, \"saved\": false, \"is_self\":
|
260
|
+
true, \"permalink\": \"/r/ruby/comments/1nylih/company_downsized_today_i_got_caught_in_the/\",
|
261
|
+
\"name\": \"t3_1nylih\", \"created\": 1381232867.0, \"url\": \"http://www.reddit.com/r/ruby/comments/1nylih/company_downsized_today_i_got_caught_in_the/\",
|
262
|
+
\"author_flair_text\": null, \"title\": \"Company downsized today. I got caught
|
263
|
+
in the layoff spree. Where is the best place for a ruby dev to search for
|
264
|
+
a stable job?\", \"created_utc\": 1381204067.0, \"ups\": 41, \"num_comments\":
|
265
|
+
55, \"visited\": false, \"num_reports\": null, \"distinguished\": null}},
|
266
|
+
{\"kind\": \"t3\", \"data\": {\"domain\": \"self.ruby\", \"banned_by\": null,
|
267
|
+
\"media_embed\": {}, \"subreddit\": \"ruby\", \"selftext_html\": \"<!--
|
268
|
+
SC_OFF --><div class=\\\"md\\\"><p>I&#39;m working my way
|
269
|
+
through Zed&#39;s <em>Learn Ruby the Hard Way</em> and just
|
270
|
+
completed my first week-long, make-your-own-game section.</p>\\n\\n<p>Here
|
271
|
+
it is on github (also my first repo):\\n<a href=\\\"https://github.com/demiankz/escapezeta.git\\\">https://github.com/demiankz/escapezeta.git</a></p>\\n\\n<p>I&#39;ve
|
272
|
+
used most of what I know about ruby to make this game: functions, global variables,
|
273
|
+
arrays, if/else, .include?, booleans, and a couple other random things. I
|
274
|
+
have a feeling that there are major flaws in my code (nested if/else and global
|
275
|
+
variables first among them, I&#39;m sure).</p>\\n\\n<p>I&#39;d
|
276
|
+
love to hear how an experienced rubyist would improve on my attempt.</p>\\n</div><!--
|
277
|
+
SC_ON -->\", \"selftext\": \"I'm working my way through Zed's *Learn Ruby
|
278
|
+
the Hard Way* and just completed my first week-long, make-your-own-game section.\\n\\nHere
|
279
|
+
it is on github (also my first repo):\\nhttps://github.com/demiankz/escapezeta.git\\n\\nI've
|
280
|
+
used most of what I know about ruby to make this game: functions, global variables,
|
281
|
+
arrays, if/else, .include?, booleans, and a couple other random things. I
|
282
|
+
have a feeling that there are major flaws in my code (nested if/else and global
|
283
|
+
variables first among them, I'm sure).\\n\\nI'd love to hear how an experienced
|
284
|
+
rubyist would improve on my attempt.\", \"likes\": null, \"secure_media\":
|
285
|
+
null, \"link_flair_text\": null, \"id\": \"1eqond\", \"secure_media_embed\":
|
286
|
+
{}, \"clicked\": false, \"stickied\": false, \"author\": \"demiankz\", \"media\":
|
287
|
+
null, \"score\": 36, \"approved_by\": null, \"over_18\": false, \"hidden\":
|
288
|
+
false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_2qh21\", \"edited\": false,
|
289
|
+
\"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\":
|
290
|
+
5, \"saved\": false, \"is_self\": true, \"permalink\": \"/r/ruby/comments/1eqond/my_first_ruby_game_what_did_i_do_rightwrong/\",
|
291
|
+
\"name\": \"t3_1eqond\", \"created\": 1369109135.0, \"url\": \"http://www.reddit.com/r/ruby/comments/1eqond/my_first_ruby_game_what_did_i_do_rightwrong/\",
|
292
|
+
\"author_flair_text\": null, \"title\": \"My first Ruby game. What did I do
|
293
|
+
right/wrong?\", \"created_utc\": 1369105535.0, \"ups\": 41, \"num_comments\":
|
294
|
+
55, \"visited\": false, \"num_reports\": null, \"distinguished\": null}},
|
295
|
+
{\"kind\": \"t3\", \"data\": {\"domain\": \"self.ruby\", \"banned_by\": null,
|
296
|
+
\"media_embed\": {}, \"subreddit\": \"ruby\", \"selftext_html\": \"<!--
|
297
|
+
SC_OFF --><div class=\\\"md\\\"><p>This is a translation of
|
298
|
+
<a href=\\\"http://www.nikkan.co.jp/news/nkx0220110919aaac.html\\\">an
|
299
|
+
article by \\u65e5\\u520a\\u5de5\\u696d\\u65b0\\u805e (nikkan)</a> which
|
300
|
+
is a publication dedicated to industry news in Japan.</p>\\n\\n<p>The
|
301
|
+
Japan based Ruby language is set to become an international standard in 2012
|
302
|
+
through the International Organization for Standardization (ISO). Ruby was
|
303
|
+
already standardized through Japanese Industrial Standards (JIS), and the
|
304
|
+
focus will now be directed towards its recognition in the global community
|
305
|
+
by becoming an official ISO standard. This would be the first time a programming
|
306
|
+
language of Japanese origin would become an ISO standard. The nation of Japan
|
307
|
+
hopes that this will increase its recognition in the primarily western dominated
|
308
|
+
software field.</p>\\n\\n<p>Ruby was developed by fellow Yukihiro
|
309
|
+
Matsumoto at the National Applied Communication Laboratory (Matsue city).
|
310
|
+
Features such as the ability to architect high level applications with ease
|
311
|
+
has gained Ruby fast popularity around web development both inside and outside
|
312
|
+
the country.</p>\\n\\n<p>The ISO standardization of Ruby is being
|
313
|
+
pushed by the Information-technology Promotion Agency (IPA). Domestically
|
314
|
+
Ruby became a JIS standard (JIS X3017) in March from a proposal by the Ruby
|
315
|
+
Standardization Study Working Group.</p>\\n</div><!-- SC_ON
|
316
|
+
-->\", \"selftext\": \"This is a translation of [an article by \\u65e5\\u520a\\u5de5\\u696d\\u65b0\\u805e
|
317
|
+
(nikkan)](http://www.nikkan.co.jp/news/nkx0220110919aaac.html) which is a
|
318
|
+
publication dedicated to industry news in Japan.\\n\\n The Japan based Ruby
|
319
|
+
language is set to become an international standard in 2012 through the International
|
320
|
+
Organization for Standardization (ISO). Ruby was already standardized through
|
321
|
+
Japanese Industrial Standards (JIS), and the focus will now be directed towards
|
322
|
+
its recognition in the global community by becoming an official ISO standard.
|
323
|
+
This would be the first time a programming language of Japanese origin would
|
324
|
+
become an ISO standard. The nation of Japan hopes that this will increase
|
325
|
+
its recognition in the primarily western dominated software field.\\n\\n Ruby
|
326
|
+
was developed by fellow Yukihiro Matsumoto at the National Applied Communication
|
327
|
+
Laboratory (Matsue city). Features such as the ability to architect high level
|
328
|
+
applications with ease has gained Ruby fast popularity around web development
|
329
|
+
both inside and outside the country.\\n\\n The ISO standardization of Ruby
|
330
|
+
is being pushed by the Information-technology Promotion Agency (IPA). Domestically
|
331
|
+
Ruby became a JIS standard (JIS X3017) in March from a proposal by the Ruby
|
332
|
+
Standardization Study Working Group.\", \"likes\": null, \"secure_media\":
|
333
|
+
null, \"link_flair_text\": null, \"id\": \"kk5ln\", \"secure_media_embed\":
|
334
|
+
{}, \"clicked\": false, \"stickied\": false, \"author\": \"cwgem\", \"media\":
|
335
|
+
null, \"score\": 59, \"approved_by\": null, \"over_18\": false, \"hidden\":
|
336
|
+
false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_2qh21\", \"edited\": false,
|
337
|
+
\"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\":
|
338
|
+
5, \"saved\": false, \"is_self\": true, \"permalink\": \"/r/ruby/comments/kk5ln/ruby_to_be_the_first_japanese_made_programming/\",
|
339
|
+
\"name\": \"t3_kk5ln\", \"created\": 1316409512.0, \"url\": \"http://www.reddit.com/r/ruby/comments/kk5ln/ruby_to_be_the_first_japanese_made_programming/\",
|
340
|
+
\"author_flair_text\": null, \"title\": \"Ruby to be the first Japanese made
|
341
|
+
programming language to become an international standard sometime next year\",
|
342
|
+
\"created_utc\": 1316405912.0, \"ups\": 64, \"num_comments\": 10, \"visited\":
|
343
|
+
false, \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t3\",
|
344
|
+
\"data\": {\"domain\": \"self.ruby\", \"banned_by\": null, \"media_embed\":
|
345
|
+
{}, \"subreddit\": \"ruby\", \"selftext_html\": \"<!-- SC_OFF --><div
|
346
|
+
class=\\\"md\\\"><p>I was going through github, and I came across
|
347
|
+
a simple tictactoe program. It surprised me how clever the programmer was
|
348
|
+
with blocks and yields and such. I wrote a tictactoe program myself months
|
349
|
+
ago when I was learning Ruby, and when I compare the two, my code is very
|
350
|
+
clunky and not at all as elegant as this programmer. </p>\\n\\n<p>And
|
351
|
+
now I realize that the best way to improve my skills is to read the code of
|
352
|
+
programmers who are much more advanced than I am. </p>\\n\\n<p>So
|
353
|
+
I ask, what are some of the best ruby code that you have ever seen?</p>\\n</div><!--
|
354
|
+
SC_ON -->\", \"selftext\": \"I was going through github, and I came across
|
355
|
+
a simple tictactoe program. It surprised me how clever the programmer was
|
356
|
+
with blocks and yields and such. I wrote a tictactoe program myself months
|
357
|
+
ago when I was learning Ruby, and when I compare the two, my code is very
|
358
|
+
clunky and not at all as elegant as this programmer. \\n \\nAnd now I
|
359
|
+
realize that the best way to improve my skills is to read the code of programmers
|
360
|
+
who are much more advanced than I am. \\n \\nSo I ask, what are some of
|
361
|
+
the best ruby code that you have ever seen?\", \"likes\": null, \"secure_media\":
|
362
|
+
null, \"link_flair_text\": null, \"id\": \"1mwg7o\", \"secure_media_embed\":
|
363
|
+
{}, \"clicked\": false, \"stickied\": false, \"author\": \"hopengrind\", \"media\":
|
364
|
+
null, \"score\": 54, \"approved_by\": null, \"over_18\": false, \"hidden\":
|
365
|
+
false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_2qh21\", \"edited\": false,
|
366
|
+
\"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\":
|
367
|
+
10, \"saved\": false, \"is_self\": true, \"permalink\": \"/r/ruby/comments/1mwg7o/what_are_some_of_the_best_ruby_programs_youve/\",
|
368
|
+
\"name\": \"t3_1mwg7o\", \"created\": 1379872130.0, \"url\": \"http://www.reddit.com/r/ruby/comments/1mwg7o/what_are_some_of_the_best_ruby_programs_youve/\",
|
369
|
+
\"author_flair_text\": null, \"title\": \"What are some of the best ruby programs
|
370
|
+
you've ever seen?\", \"created_utc\": 1379868530.0, \"ups\": 64, \"num_comments\":
|
371
|
+
25, \"visited\": false, \"num_reports\": null, \"distinguished\": null}},
|
372
|
+
{\"kind\": \"t3\", \"data\": {\"domain\": \"self.ruby\", \"banned_by\": null,
|
373
|
+
\"media_embed\": {}, \"subreddit\": \"ruby\", \"selftext_html\": \"<!--
|
374
|
+
SC_OFF --><div class=\\\"md\\\"><p>The languages are often
|
375
|
+
compared so I am hoping my knowledge of python will make learning ruby faster.
|
376
|
+
Maybe the best method is just to read a ruby book and learn from scratch,
|
377
|
+
I am not sure yet how similar they are. However if anyone has made the switch
|
378
|
+
and knows what a good starting point would be or if there are resrouces geared
|
379
|
+
toward switching I would apperciate the advice. Thanks.</p>\\n\\n<p>Edit:
|
380
|
+
I will be using ruby as a scripting language. Mosly maintaing and updating
|
381
|
+
existing scripts that put together XML files used for input for other applications
|
382
|
+
and things like file management and such. So if there are resrouces geared
|
383
|
+
towards scripting rather than building ruby applications that would be helpful.</p>\\n</div><!--
|
384
|
+
SC_ON -->\", \"selftext\": \"The languages are often compared so I am hoping
|
385
|
+
my knowledge of python will make learning ruby faster. Maybe the best method
|
386
|
+
is just to read a ruby book and learn from scratch, I am not sure yet how
|
387
|
+
similar they are. However if anyone has made the switch and knows what a good
|
388
|
+
starting point would be or if there are resrouces geared toward switching
|
389
|
+
I would apperciate the advice. Thanks.\\n\\nEdit: I will be using ruby as
|
390
|
+
a scripting language. Mosly maintaing and updating existing scripts that put
|
391
|
+
together XML files used for input for other applications and things like
|
392
|
+
file management and such. So if there are resrouces geared towards scripting
|
393
|
+
rather than building ruby applications that would be helpful.\", \"likes\":
|
394
|
+
null, \"secure_media\": null, \"link_flair_text\": null, \"id\": \"pgnbp\",
|
395
|
+
\"secure_media_embed\": {}, \"clicked\": false, \"stickied\": false, \"author\":
|
396
|
+
\"f4hy\", \"media\": null, \"score\": 15, \"approved_by\": null, \"over_18\":
|
397
|
+
false, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_2qh21\",
|
398
|
+
\"edited\": true, \"link_flair_css_class\": null, \"author_flair_css_class\":
|
399
|
+
null, \"downs\": 6, \"saved\": false, \"is_self\": true, \"permalink\": \"/r/ruby/comments/pgnbp/i_am_a_python_programmer_who_needs_to_learn_ruby/\",
|
400
|
+
\"name\": \"t3_pgnbp\", \"created\": 1328729735.0, \"url\": \"http://www.reddit.com/r/ruby/comments/pgnbp/i_am_a_python_programmer_who_needs_to_learn_ruby/\",
|
401
|
+
\"author_flair_text\": null, \"title\": \"I am a python programmer who needs
|
402
|
+
to learn ruby. Any good resources or advice?\", \"created_utc\": 1328729735.0,
|
403
|
+
\"ups\": 21, \"num_comments\": 55, \"visited\": false, \"num_reports\": null,
|
404
|
+
\"distinguished\": null}}, {\"kind\": \"t3\", \"data\": {\"domain\": \"self.ruby\",
|
405
|
+
\"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"ruby\", \"selftext_html\":
|
406
|
+
\"<!-- SC_OFF --><div class=\\\"md\\\"><p>Even I have just
|
407
|
+
only few experiences of Ruby, I just become aware of there <em>is</em>
|
408
|
+
<code>for</code> in Ruby (I saw that when I learned Ruby first).
|
409
|
+
\ Most of Ruby codes seem to use just <code>Enumerable#each</code>
|
410
|
+
method instead of <code>for</code> statement, but why? Is there
|
411
|
+
any reason to prefer <code>Enumerable#each</code> method over
|
412
|
+
<code>for</code> statement?</p>\\n</div><!-- SC_ON
|
413
|
+
-->\", \"selftext\": \"Even I have just only few experiences of Ruby, I
|
414
|
+
just become aware of there *is* `for` in Ruby (I saw that when I learned Ruby
|
415
|
+
first). Most of Ruby codes seem to use just `Enumerable#each` method instead
|
416
|
+
of `for` statement, but why? Is there any reason to prefer `Enumerable#each`
|
417
|
+
method over `for` statement?\", \"likes\": null, \"secure_media\": null, \"link_flair_text\":
|
418
|
+
null, \"id\": \"p1l8k\", \"secure_media_embed\": {}, \"clicked\": false, \"stickied\":
|
419
|
+
false, \"author\": \"hongminhee\", \"media\": null, \"score\": 28, \"approved_by\":
|
420
|
+
null, \"over_18\": false, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\":
|
421
|
+
\"t5_2qh21\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\":
|
422
|
+
null, \"downs\": 4, \"saved\": false, \"is_self\": true, \"permalink\": \"/r/ruby/comments/p1l8k/why_is_there_forstatement_in_ruby/\",
|
423
|
+
\"name\": \"t3_p1l8k\", \"created\": 1327833555.0, \"url\": \"http://www.reddit.com/r/ruby/comments/p1l8k/why_is_there_forstatement_in_ruby/\",
|
424
|
+
\"author_flair_text\": null, \"title\": \"Why is there for-statement in Ruby?\",
|
425
|
+
\"created_utc\": 1327833555.0, \"ups\": 32, \"num_comments\": 35, \"visited\":
|
426
|
+
false, \"num_reports\": null, \"distinguished\": null}}, {\"kind\": \"t3\",
|
427
|
+
\"data\": {\"domain\": \"self.ruby\", \"banned_by\": null, \"media_embed\":
|
428
|
+
{}, \"subreddit\": \"ruby\", \"selftext_html\": \"<!-- SC_OFF --><div
|
429
|
+
class=\\\"md\\\"><p>I&#39;m learning ruby now and looking forward
|
430
|
+
to finding a job doing front end and app development. Thanks!</p>\\n</div><!--
|
431
|
+
SC_ON -->\", \"selftext\": \"I'm learning ruby now and looking forward
|
432
|
+
to finding a job doing front end and app development. Thanks!\", \"likes\":
|
433
|
+
null, \"secure_media\": null, \"link_flair_text\": null, \"id\": \"1kylfv\",
|
434
|
+
\"secure_media_embed\": {}, \"clicked\": false, \"stickied\": false, \"author\":
|
435
|
+
\"codemonkei\", \"media\": null, \"score\": 27, \"approved_by\": null, \"over_18\":
|
436
|
+
false, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_2qh21\",
|
437
|
+
\"edited\": 1377394522.0, \"link_flair_css_class\": null, \"author_flair_css_class\":
|
438
|
+
null, \"downs\": 8, \"saved\": false, \"is_self\": true, \"permalink\": \"/r/ruby/comments/1kylfv/what_are_some_good_projects_to_do_with_ruby_to/\",
|
439
|
+
\"name\": \"t3_1kylfv\", \"created\": 1377289503.0, \"url\": \"http://www.reddit.com/r/ruby/comments/1kylfv/what_are_some_good_projects_to_do_with_ruby_to/\",
|
440
|
+
\"author_flair_text\": null, \"title\": \"What are some good projects to do
|
441
|
+
with Ruby to impress employers?\", \"created_utc\": 1377285903.0, \"ups\":
|
442
|
+
35, \"num_comments\": 42, \"visited\": false, \"num_reports\": null, \"distinguished\":
|
443
|
+
null}}, {\"kind\": \"t3\", \"data\": {\"domain\": \"self.ruby\", \"banned_by\":
|
444
|
+
null, \"media_embed\": {}, \"subreddit\": \"ruby\", \"selftext_html\": \"<!--
|
445
|
+
SC_OFF --><div class=\\\"md\\\"><p>I can&#39;t d/l XCode
|
446
|
+
due to my version of OSX. RVM install commands don&#39;t seem to make
|
447
|
+
sense within my terminal. Do I need git? </p>\\n\\n<p>I would
|
448
|
+
like to learn Ruby (then Rails) but so far I&#39;m just frustrated. </p>\\n\\n<p>Thank
|
449
|
+
you for any help you guys can offer.</p>\\n</div><!-- SC_ON
|
450
|
+
-->\", \"selftext\": \"I can't d/l XCode due to my version of OSX. RVM
|
451
|
+
install commands don't seem to make sense within my terminal. Do I need git?
|
452
|
+
\\n\\nI would like to learn Ruby (then Rails) but so far I'm just frustrated.
|
453
|
+
\\n\\nThank you for any help you guys can offer.\", \"likes\": null, \"secure_media\":
|
454
|
+
null, \"link_flair_text\": null, \"id\": \"rpwze\", \"secure_media_embed\":
|
455
|
+
{}, \"clicked\": false, \"stickied\": false, \"author\": \"BeauBeauBeau\",
|
456
|
+
\"media\": null, \"score\": 18, \"approved_by\": null, \"over_18\": false,
|
457
|
+
\"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_2qh21\", \"edited\":
|
458
|
+
false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\":
|
459
|
+
3, \"saved\": false, \"is_self\": true, \"permalink\": \"/r/ruby/comments/rpwze/installing_ruby_wo_xcode_on_a_mac_or_why_is/\",
|
460
|
+
\"name\": \"t3_rpwze\", \"created\": 1333397680.0, \"url\": \"http://www.reddit.com/r/ruby/comments/rpwze/installing_ruby_wo_xcode_on_a_mac_or_why_is/\",
|
461
|
+
\"author_flair_text\": null, \"title\": \"Installing Ruby w/o XCode on a Mac:
|
462
|
+
or why is installing Ruby such a pain in the ass? [NOOB] \", \"created_utc\":
|
463
|
+
1333394080.0, \"ups\": 21, \"num_comments\": 53, \"visited\": false, \"num_reports\":
|
464
|
+
null, \"distinguished\": null}}, {\"kind\": \"t3\", \"data\": {\"domain\":
|
465
|
+
\"self.ruby\", \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"ruby\",
|
466
|
+
\"selftext_html\": \"<!-- SC_OFF --><div class=\\\"md\\\"><p>I
|
467
|
+
fundamentally do not understand the perspective many Rubyists have. I am not
|
468
|
+
saying it anything is bad, I am saying <em>I do not understand</em>.
|
469
|
+
I just have a different perspective. I don&#39;t understand why pragmatic
|
470
|
+
people who don&#39;t seem to be early adopters are leaving a good tool
|
471
|
+
for tools that should only appeal to early adopters.</p>\\n\\n<p>Please,
|
472
|
+
let me explain my perspective. I have been working primarily with C++ the
|
473
|
+
past 15, during that time I have dabbled with Java, PHP, Lua, Perl, Pascal,
|
474
|
+
HTML/CSS, a couple kinds of assembly, C#/VB, others I wish I could forget
|
475
|
+
and of course plain old C. I keep going back to C++ because I have a strong
|
476
|
+
proficiency with it. I have the feeling I can make it do anything. I have
|
477
|
+
made it solve some interesting problems. There are other reasons too, but
|
478
|
+
this seems like enough to convey where I am coming from. I invested real time
|
479
|
+
and effort gaining that proficiency, so I will use C++ when practical an invest
|
480
|
+
more time learning something else when C++ is not practical.</p>\\n\\n<p>I
|
481
|
+
see a ton of Rubyists talking about Elixir and Node.js as somekind of wholesale
|
482
|
+
replacement for Ruby. I understand that the two newer systems provide interesting
|
483
|
+
interactions with threading systems. That does not seem like a reason to dump
|
484
|
+
a whole language, a language with multiple independent healthy implementations
|
485
|
+
(jRuby, Rubunius, Maglev, etc...), particularly when some of them have fixed
|
486
|
+
threading performance. </p>\\n\\n<p>Or maybe I am missing the
|
487
|
+
point, maybe this is just about jumping to some popular new toy now that us
|
488
|
+
old fogeys are onto Ruby? Of course not, all the people I read about in blogs
|
489
|
+
and watch in talks at the countless Ruby conferences seem like pragmatic people
|
490
|
+
interested in getting stuff done. Ruby seems like an excellent tool for getting
|
491
|
+
stuff done. It is extremely easy to express complex ideas quickly. It has
|
492
|
+
an excellent system for handling libraries. It has access to awesome performance
|
493
|
+
via its C-API. If C is not your thing, It is mature enough that it is getting
|
494
|
+
performance optimizations with every new release (of MRI/Yarv at least). These
|
495
|
+
people invested significant time and effort learning Ruby, will their pragmatism
|
496
|
+
just let them throw that away?</p>\\n\\n<p>Perhaps my perspective
|
497
|
+
is wrong and no-one is leaving Ruby? But it seems every other conference talk
|
498
|
+
someone mentions Elixir while spitting Ruby&#39;s name.</p>\\n\\n<p>Perhaps,
|
499
|
+
There is something to Elixir/Node I have completely missed? I read their docs
|
500
|
+
and perused their libraries. They are missing features (and sometimes stability)
|
501
|
+
like tools only a few years old would.</p>\\n\\n<p>Why leave Ruby?</p>\\n</div><!--
|
502
|
+
SC_ON -->\", \"selftext\": \"I fundamentally do not understand the perspective
|
503
|
+
many Rubyists have. I am not saying it anything is bad, I am saying *I do
|
504
|
+
not understand*. I just have a different perspective. I don't understand why
|
505
|
+
pragmatic people who don't seem to be early adopters are leaving a good tool
|
506
|
+
for tools that should only appeal to early adopters.\\n\\nPlease, let me explain
|
507
|
+
my perspective. I have been working primarily with C++ the past 15, during
|
508
|
+
that time I have dabbled with Java, PHP, Lua, Perl, Pascal, HTML/CSS, a couple
|
509
|
+
kinds of assembly, C#/VB, others I wish I could forget and of course plain
|
510
|
+
old C. I keep going back to C++ because I have a strong proficiency with it.
|
511
|
+
I have the feeling I can make it do anything. I have made it solve some interesting
|
512
|
+
problems. There are other reasons too, but this seems like enough to convey
|
513
|
+
where I am coming from. I invested real time and effort gaining that proficiency,
|
514
|
+
so I will use C++ when practical an invest more time learning something else
|
515
|
+
when C++ is not practical.\\n\\nI see a ton of Rubyists talking about Elixir
|
516
|
+
and Node.js as somekind of wholesale replacement for Ruby. I understand that
|
517
|
+
the two newer systems provide interesting interactions with threading systems.
|
518
|
+
That does not seem like a reason to dump a whole language, a language with
|
519
|
+
multiple independent healthy implementations (jRuby, Rubunius, Maglev, etc...),
|
520
|
+
particularly when some of them have fixed threading performance. \\n\\nOr
|
521
|
+
maybe I am missing the point, maybe this is just about jumping to some popular
|
522
|
+
new toy now that us old fogeys are onto Ruby? Of course not, all the people
|
523
|
+
I read about in blogs and watch in talks at the countless Ruby conferences
|
524
|
+
seem like pragmatic people interested in getting stuff done. Ruby seems like
|
525
|
+
an excellent tool for getting stuff done. It is extremely easy to express
|
526
|
+
complex ideas quickly. It has an excellent system for handling libraries.
|
527
|
+
It has access to awesome performance via its C-API. If C is not your thing,
|
528
|
+
It is mature enough that it is getting performance optimizations with every
|
529
|
+
new release (of MRI/Yarv at least). These people invested significant time
|
530
|
+
and effort learning Ruby, will their pragmatism just let them throw that away?\\n\\nPerhaps
|
531
|
+
my perspective is wrong and no-one is leaving Ruby? But it seems every other
|
532
|
+
conference talk someone mentions Elixir while spitting Ruby's name.\\n\\nPerhaps,
|
533
|
+
There is something to Elixir/Node I have completely missed? I read their docs
|
534
|
+
and perused their libraries. They are missing features (and sometimes stability)
|
535
|
+
like tools only a few years old would.\\n\\nWhy leave Ruby?\", \"likes\":
|
536
|
+
null, \"secure_media\": null, \"link_flair_text\": null, \"id\": \"1o6srn\",
|
537
|
+
\"secure_media_embed\": {}, \"clicked\": false, \"stickied\": false, \"author\":
|
538
|
+
\"Sqeaky\", \"media\": null, \"score\": 41, \"approved_by\": null, \"over_18\":
|
539
|
+
false, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_2qh21\",
|
540
|
+
\"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\":
|
541
|
+
null, \"downs\": 10, \"saved\": false, \"is_self\": true, \"permalink\": \"/r/ruby/comments/1o6srn/why_elixir_why_nodejs_coming_from_c_ruby_seems/\",
|
542
|
+
\"name\": \"t3_1o6srn\", \"created\": 1381483029.0, \"url\": \"http://www.reddit.com/r/ruby/comments/1o6srn/why_elixir_why_nodejs_coming_from_c_ruby_seems/\",
|
543
|
+
\"author_flair_text\": null, \"title\": \"Why Elixir? Why Node.js? Coming
|
544
|
+
from C++, Ruby seems like a fine language.\", \"created_utc\": 1381454229.0,
|
545
|
+
\"ups\": 51, \"num_comments\": 46, \"visited\": false, \"num_reports\": null,
|
546
|
+
\"distinguished\": null}}, {\"kind\": \"t3\", \"data\": {\"domain\": \"self.ruby\",
|
547
|
+
\"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"ruby\", \"selftext_html\":
|
548
|
+
\"<!-- SC_OFF --><div class=\\\"md\\\"><p>I&#39;m going
|
549
|
+
through the Ruby Koans right now as part of trying to learn Ruby. I just finished
|
550
|
+
the about_blocks koan and I really just don&#39;t understand how the <code>yield</code>
|
551
|
+
keyword works. Example code from the koan:</p>\\n\\n<pre><code>def
|
552
|
+
many_yields\\n yield(:peanut)\\n yield(:butter)\\n yield(:and)\\n yield(:jelly)\\nend\\n\\ndef
|
553
|
+
test_methods_can_call_yield_many_times\\n result = []\\n many_yields { |item|
|
554
|
+
result &lt;&lt; item }\\n assert_equal [:peanut, :butter, :and, :jelly],
|
555
|
+
result\\nend\\n</code></pre>\\n\\n<p>I can see that <code>result</code>
|
556
|
+
is getting all four yielded values from <code>many_yields</code>,
|
557
|
+
but I don&#39;t really understand what&#39;s going on. I especially
|
558
|
+
don&#39;t understand the cases where yield is called without any values.
|
559
|
+
Can somebody explain this keyword to me?</p>\\n</div><!-- SC_ON
|
560
|
+
-->\", \"selftext\": \"I'm going through the Ruby Koans right now as part
|
561
|
+
of trying to learn Ruby. I just finished the about_blocks koan and I really
|
562
|
+
just don't understand how the `yield` keyword works. Example code from the
|
563
|
+
koan:\\n\\n def many_yields\\n yield(:peanut)\\n yield(:butter)\\n
|
564
|
+
\ yield(:and)\\n yield(:jelly)\\n end\\n\\n def test_methods_can_call_yield_many_times\\n
|
565
|
+
\ result = []\\n many_yields { |item| result << item }\\n assert_equal
|
566
|
+
[:peanut, :butter, :and, :jelly], result\\n end\\n\\nI can see that `result`
|
567
|
+
is getting all four yielded values from `many_yields`, but I don't really
|
568
|
+
understand what's going on. I especially don't understand the cases where
|
569
|
+
yield is called without any values. Can somebody explain this keyword to me?\",
|
570
|
+
\"likes\": null, \"secure_media\": null, \"link_flair_text\": null, \"id\":
|
571
|
+
\"kvjrw\", \"secure_media_embed\": {}, \"clicked\": false, \"stickied\": false,
|
572
|
+
\"author\": \"glenbolake\", \"media\": null, \"score\": 46, \"approved_by\":
|
573
|
+
null, \"over_18\": false, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\":
|
574
|
+
\"t5_2qh21\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\":
|
575
|
+
null, \"downs\": 2, \"saved\": false, \"is_self\": true, \"permalink\": \"/r/ruby/comments/kvjrw/ruby_newbie_i_dont_understand_yield/\",
|
576
|
+
\"name\": \"t3_kvjrw\", \"created\": 1317324898.0, \"url\": \"http://www.reddit.com/r/ruby/comments/kvjrw/ruby_newbie_i_dont_understand_yield/\",
|
577
|
+
\"author_flair_text\": null, \"title\": \"Ruby newbie - I don't understand
|
578
|
+
yield\", \"created_utc\": 1317321298.0, \"ups\": 48, \"num_comments\": 36,
|
579
|
+
\"visited\": false, \"num_reports\": null, \"distinguished\": null}}, {\"kind\":
|
580
|
+
\"t3\", \"data\": {\"domain\": \"self.ruby\", \"banned_by\": null, \"media_embed\":
|
581
|
+
{}, \"subreddit\": \"ruby\", \"selftext_html\": \"<!-- SC_OFF --><div
|
582
|
+
class=\\\"md\\\"><p>I would really like to start a study group for
|
583
|
+
Ruby on Rails for this book <a href=\\\"http://ruby.railstutorial.org/ruby-on-rails-tutorial-book\\\">http://ruby.railstutorial.org/ruby-on-rails-tutorial-book</a>
|
584
|
+
(if you have better suggestions please let me know) I have just finished the
|
585
|
+
CodeCademy course for Ruby so I think I have a decent grasp on the Ruby language.
|
586
|
+
It would be nice if we could have a couple people who are experienced with
|
587
|
+
Rails help guide us through. I plan on hosting it on my website under the
|
588
|
+
Ruby on Rails subforum so we can keep all our stuff uncluttered, my website
|
589
|
+
is called milesftp.com(sorry for the odd name my friend had the domain registered
|
590
|
+
and so we decided to use it for now). If you guys are interested please let
|
591
|
+
me know and we will figure something&#39;s out! Thanks. </p>\\n</div><!--
|
592
|
+
SC_ON -->\", \"selftext\": \"I would really like to start a study group
|
593
|
+
for Ruby on Rails for this book http://ruby.railstutorial.org/ruby-on-rails-tutorial-book
|
594
|
+
(if you have better suggestions please let me know) I have just finished the
|
595
|
+
CodeCademy course for Ruby so I think I have a decent grasp on the Ruby language.
|
596
|
+
It would be nice if we could have a couple people who are experienced with
|
597
|
+
Rails help guide us through. I plan on hosting it on my website under the
|
598
|
+
Ruby on Rails subforum so we can keep all our stuff uncluttered, my website
|
599
|
+
is called milesftp.com(sorry for the odd name my friend had the domain registered
|
600
|
+
and so we decided to use it for now). If you guys are interested please let
|
601
|
+
me know and we will figure something's out! Thanks. \", \"likes\": null, \"secure_media\":
|
602
|
+
null, \"link_flair_text\": null, \"id\": \"1n9e40\", \"secure_media_embed\":
|
603
|
+
{}, \"clicked\": false, \"stickied\": false, \"author\": \"valorvision\",
|
604
|
+
\"media\": null, \"score\": 21, \"approved_by\": null, \"over_18\": false,
|
605
|
+
\"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_2qh21\", \"edited\":
|
606
|
+
false, \"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\":
|
607
|
+
7, \"saved\": false, \"is_self\": true, \"permalink\": \"/r/ruby/comments/1n9e40/creating_a_ruby_on_rails_study_group_please_let/\",
|
608
|
+
\"name\": \"t3_1n9e40\", \"created\": 1380331866.0, \"url\": \"http://www.reddit.com/r/ruby/comments/1n9e40/creating_a_ruby_on_rails_study_group_please_let/\",
|
609
|
+
\"author_flair_text\": null, \"title\": \"Creating A Ruby on Rails Study Group,
|
610
|
+
please let me know if you're interested.\", \"created_utc\": 1380303066.0,
|
611
|
+
\"ups\": 28, \"num_comments\": 40, \"visited\": false, \"num_reports\": null,
|
612
|
+
\"distinguished\": null}}, {\"kind\": \"t3\", \"data\": {\"domain\": \"self.IAmA\",
|
613
|
+
\"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"IAmA\", \"selftext_html\":
|
614
|
+
\"<!-- SC_OFF --><div class=\\\"md\\\"><p>Hi Reddit! </p>\\n\\n<p>I&#39;m
|
615
|
+
Annie. I report on economic policy -- taxes, the economy, Treasury, the IMF,
|
616
|
+
etc. -- from the D.C. bureau of the New York Times.</p>\\n\\n<p>Until
|
617
|
+
October, though, I was the Moneybox columnist for Slate. </p>\\n\\n<p>My
|
618
|
+
last piece for Slate just went up. It&#39;s a big story on how I started
|
619
|
+
to learn to program in Ruby, and about _why, a legend in the Ruby community
|
620
|
+
who disappeared two years ago. </p>\\n\\n<p>You can read it here:
|
621
|
+
<a href=\\\"http://www.slate.com/articles/technology/technology/2012/03/ruby_ruby_on_rails_and__why_the_disappearance_of_one_of_the_world_s_most_beloved_computer_programmers_.html\\\">http://www.slate.com/articles/technology/technology/2012/03/ruby_ruby_on_rails_and__why_the_disappearance_of_one_of_the_world_s_most_beloved_computer_programmers_.html</a></p>\\n\\n<p>You
|
622
|
+
can read all my Times stuff here: <a href=\\\"http://topics.nytimes.com/top/reference/timestopics/people/l/annie_lowrey/index.html?inline=nyt-per\\\">http://topics.nytimes.com/top/reference/timestopics/people/l/annie_lowrey/index.html?inline=nyt-per</a></p>\\n\\n<p>And
|
623
|
+
all my Slate stuff here: <a href=\\\"http://www.slate.com/authors.annie_lowrey.html\\\">http://www.slate.com/authors.annie_lowrey.html</a></p>\\n\\n<p>And
|
624
|
+
you can follow me here: <a href=\\\"https://twitter.com/#!/annielowrey\\\">https://twitter.com/#!/annielowrey</a></p>\\n\\n<p>Ask
|
625
|
+
me anything! </p>\\n</div><!-- SC_ON -->\", \"selftext\":
|
626
|
+
\"Hi Reddit! \\n\\nI'm Annie. I report on economic policy -- taxes, the economy,
|
627
|
+
Treasury, the IMF, etc. -- from the D.C. bureau of the New York Times.\\n\\nUntil
|
628
|
+
October, though, I was the Moneybox columnist for Slate. \\n\\nMy last piece
|
629
|
+
for Slate just went up. It's a big story on how I started to learn to program
|
630
|
+
in Ruby, and about _why, a legend in the Ruby community who disappeared two
|
631
|
+
years ago. \\n\\nYou can read it here: http://www.slate.com/articles/technology/technology/2012/03/ruby_ruby_on_rails_and__why_the_disappearance_of_one_of_the_world_s_most_beloved_computer_programmers_.html\\n\\nYou
|
632
|
+
can read all my Times stuff here: http://topics.nytimes.com/top/reference/timestopics/people/l/annie_lowrey/index.html?inline=nyt-per\\n\\nAnd
|
633
|
+
all my Slate stuff here: http://www.slate.com/authors.annie_lowrey.html\\n\\nAnd
|
634
|
+
you can follow me here: https://twitter.com/#!/annielowrey\\n\\nAsk me anything!
|
635
|
+
\", \"likes\": null, \"secure_media\": null, \"link_flair_text\": null, \"id\":
|
636
|
+
\"qzkdt\", \"secure_media_embed\": {}, \"clicked\": false, \"stickied\": false,
|
637
|
+
\"author\": \"AnnieLowrey\", \"media\": null, \"score\": 141, \"approved_by\":
|
638
|
+
null, \"over_18\": false, \"hidden\": false, \"thumbnail\": \"self\", \"subreddit_id\":
|
639
|
+
\"t5_2qzb6\", \"edited\": false, \"link_flair_css_class\": null, \"author_flair_css_class\":
|
640
|
+
null, \"downs\": 95, \"saved\": false, \"is_self\": true, \"permalink\": \"/r/IAmA/comments/qzkdt/im_annie_lowrey_an_economic_policy_reporter_for/\",
|
641
|
+
\"name\": \"t3_qzkdt\", \"created\": 1331919796.0, \"url\": \"http://www.reddit.com/r/IAmA/comments/qzkdt/im_annie_lowrey_an_economic_policy_reporter_for/\",
|
642
|
+
\"author_flair_text\": null, \"title\": \"I'm Annie Lowrey, an economic policy
|
643
|
+
reporter for the New York Times and the author of the big Slate article on
|
644
|
+
Ruby and _why.\", \"created_utc\": 1331916196.0, \"ups\": 236, \"num_comments\":
|
645
|
+
213, \"visited\": false, \"num_reports\": null, \"distinguished\": null}},
|
646
|
+
{\"kind\": \"t3\", \"data\": {\"domain\": \"self.ruby\", \"banned_by\": null,
|
647
|
+
\"media_embed\": {}, \"subreddit\": \"ruby\", \"selftext_html\": \"<!--
|
648
|
+
SC_OFF --><div class=\\\"md\\\"><p>I am currently a high school
|
649
|
+
student involved in AP CS. I am extremely well with Java, c++, python. The
|
650
|
+
other day I tried this new language called ruby. I instantly fell in love
|
651
|
+
with it. So as I do with most languages that I find appealing I try to master
|
652
|
+
it. As of now I have taken multiple ruby courses online and read 2 or three
|
653
|
+
books about it. So yesterday I was writing my first semi hard application
|
654
|
+
in ruby. One of my fellow class mates turns to me and looks at my computer
|
655
|
+
screen with horror. I asked him what the problem was. He said, &quot;Ew
|
656
|
+
why are you coding in ruby&quot;. I replied and told him that I enjoy
|
657
|
+
this language very much. Other members in my class looked at me like I was
|
658
|
+
committing genocide by writing in ruby, and from that point I was being chewed
|
659
|
+
out on why ruby is trash. I don&#39;t understand why. I get it has its
|
660
|
+
design flaws, but what language doesn&#39;t? I was wondering if something
|
661
|
+
like this has ever happened? In the sense where people think you&#39;re
|
662
|
+
dumb for writing in ruby.</p>\\n</div><!-- SC_ON -->\",
|
663
|
+
\"selftext\": \"I am currently a high school student involved in AP CS. I
|
664
|
+
am extremely well with Java, c++, python. The other day I tried this new language
|
665
|
+
called ruby. I instantly fell in love with it. So as I do with most languages
|
666
|
+
that I find appealing I try to master it. As of now I have taken multiple
|
667
|
+
ruby courses online and read 2 or three books about it. So yesterday I was
|
668
|
+
writing my first semi hard application in ruby. One of my fellow class mates
|
669
|
+
turns to me and looks at my computer screen with horror. I asked him what
|
670
|
+
the problem was. He said, \\\"Ew why are you coding in ruby\\\". I replied
|
671
|
+
and told him that I enjoy this language very much. Other members in my class
|
672
|
+
looked at me like I was committing genocide by writing in ruby, and from
|
673
|
+
that point I was being chewed out on why ruby is trash. I don't understand
|
674
|
+
why. I get it has its design flaws, but what language doesn't? I was wondering
|
675
|
+
if something like this has ever happened? In the sense where people think
|
676
|
+
you're dumb for writing in ruby.\", \"likes\": null, \"secure_media\": null,
|
677
|
+
\"link_flair_text\": null, \"id\": \"1oj5ur\", \"secure_media_embed\": {},
|
678
|
+
\"clicked\": false, \"stickied\": false, \"author\": \"cgrillo5\", \"media\":
|
679
|
+
null, \"score\": 13, \"approved_by\": null, \"over_18\": false, \"hidden\":
|
680
|
+
false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_2qh21\", \"edited\": false,
|
681
|
+
\"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\":
|
682
|
+
17, \"saved\": false, \"is_self\": true, \"permalink\": \"/r/ruby/comments/1oj5ur/what_is_wrong_with_ruby/\",
|
683
|
+
\"name\": \"t3_1oj5ur\", \"created\": 1381904040.0, \"url\": \"http://www.reddit.com/r/ruby/comments/1oj5ur/what_is_wrong_with_ruby/\",
|
684
|
+
\"author_flair_text\": null, \"title\": \"What is wrong with ruby?\", \"created_utc\":
|
685
|
+
1381875240.0, \"ups\": 30, \"num_comments\": 50, \"visited\": false, \"num_reports\":
|
686
|
+
null, \"distinguished\": null}}, {\"kind\": \"t3\", \"data\": {\"domain\":
|
687
|
+
\"self.ruby\", \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"ruby\",
|
688
|
+
\"selftext_html\": \"<!-- SC_OFF --><div class=\\\"md\\\"><p>Dynamic
|
689
|
+
getters and setters in Perl:</p>\\n\\n<pre><code>sub AUTOLOAD
|
690
|
+
{\\n my @elements = qw(color age weight height);\\n\\n our $AUTOLOAD;\\n
|
691
|
+
\ if ($AUTOLOAD =~ /::(\\\\w+)$/ and grep $1 eq $_, @elements) {\\n my
|
692
|
+
$field = ucfirst $1;\\n {\\n no strict &#39;refs&#39;;\\n
|
693
|
+
\ *{$AUTOLOAD} = sub { $_[0]-&gt;{$field} };\\n }\\n goto &amp;{$AUTOLOAD};\\n
|
694
|
+
\ } elsif ($AUTOLOAD =~ /::set_(\\\\w+)$/ and grep $1 eq $_, @elements) {\\n
|
695
|
+
\ my $field = ucfirst $1;\\n {\\n no strict &#39;refs&#39;;\\n
|
696
|
+
\ *{$AUTOLOAD} = sub { $_[0]-&gt;{$field} = $_[1] };\\n }\\n goto
|
697
|
+
&amp;{$AUTOLOAD};\\n } else {\\n croak &quot;$_[0] does not understand
|
698
|
+
this method\\\\n&quot;;\\n }\\n}\\n</code></pre>\\n\\n<p>In
|
699
|
+
Ruby:</p>\\n\\n<pre><code>attr_accessor :color, :age, :weight,
|
700
|
+
:height\\n</code></pre>\\n\\n<p>Yeah.</p>\\n</div><!--
|
701
|
+
SC_ON -->\", \"selftext\": \"Dynamic getters and setters in Perl:\\n\\n
|
702
|
+
\ sub AUTOLOAD {\\n my @elements = qw(color age weight height);\\n
|
703
|
+
\ \\n our $AUTOLOAD;\\n if ($AUTOLOAD =~ /::(\\\\w+)$/ and grep
|
704
|
+
$1 eq $_, @elements) {\\n my $field = ucfirst $1;\\n {\\n no
|
705
|
+
strict 'refs';\\n *{$AUTOLOAD} = sub { $_[0]->{$field} };\\n }\\n
|
706
|
+
\ goto &{$AUTOLOAD};\\n } elsif ($AUTOLOAD =~ /::set_(\\\\w+)$/
|
707
|
+
and grep $1 eq $_, @elements) {\\n my $field = ucfirst $1;\\n {\\n
|
708
|
+
\ no strict 'refs';\\n *{$AUTOLOAD} = sub { $_[0]->{$field}
|
709
|
+
= $_[1] };\\n }\\n goto &{$AUTOLOAD};\\n } else {\\n
|
710
|
+
\ croak \\\"$_[0] does not understand this method\\\\n\\\";\\n }\\n
|
711
|
+
\ }\\n\\nIn Ruby:\\n\\n attr_accessor :color, :age, :weight, :height\\n\\nYeah.\",
|
712
|
+
\"likes\": null, \"secure_media\": null, \"link_flair_text\": null, \"id\":
|
713
|
+
\"e4upb\", \"secure_media_embed\": {}, \"clicked\": false, \"stickied\": false,
|
714
|
+
\"author\": \"Perceptes\", \"media\": null, \"score\": 32, \"approved_by\":
|
715
|
+
null, \"over_18\": false, \"hidden\": false, \"thumbnail\": \"\", \"subreddit_id\":
|
716
|
+
\"t5_2qh21\", \"edited\": true, \"link_flair_css_class\": null, \"author_flair_css_class\":
|
717
|
+
null, \"downs\": 12, \"saved\": false, \"is_self\": true, \"permalink\": \"/r/ruby/comments/e4upb/learning_perl_is_making_me_appreciate_ruby_even/\",
|
718
|
+
\"name\": \"t3_e4upb\", \"created\": 1289518955.0, \"url\": \"http://www.reddit.com/r/ruby/comments/e4upb/learning_perl_is_making_me_appreciate_ruby_even/\",
|
719
|
+
\"author_flair_text\": null, \"title\": \"Learning Perl is making me appreciate
|
720
|
+
Ruby even more\", \"created_utc\": 1289518955.0, \"ups\": 44, \"num_comments\":
|
721
|
+
44, \"visited\": false, \"num_reports\": null, \"distinguished\": null}},
|
722
|
+
{\"kind\": \"t3\", \"data\": {\"domain\": \"self.ruby\", \"banned_by\": null,
|
723
|
+
\"media_embed\": {}, \"subreddit\": \"ruby\", \"selftext_html\": \"<!--
|
724
|
+
SC_OFF --><div class=\\\"md\\\"><p>Hi there,</p>\\n\\n<p>I
|
725
|
+
started learning Ruby a few months ago and I bought myself a Microsoft Kinect
|
726
|
+
Cam as an early X-Mas gift. Of course I&#39;m using Linux (yes your OS-X
|
727
|
+
is fine too) and don&#39;t even own an X-Box 360 ... so I started the
|
728
|
+
hacking.</p>\\n\\n<p>After a short time of fiddling with C, I
|
729
|
+
remembered how much it tends to get on my nerves and how much I love Ruby,
|
730
|
+
so I thought &quot;<strong>Why not write some Kinect stuff with
|
731
|
+
Ruby?!</strong>&quot;. After a bit of googling I found exactly no
|
732
|
+
other projects except</p>\\n\\n<p>---- <a href=\\\"http://openkinect.org/wiki/Ruby_Wrapper#Sample_Code\\\">this
|
733
|
+
one</a> ----</p>\\n\\n<p>which was empty and so I decided
|
734
|
+
to <strong>post my first code snippet there</strong>.</p>\\n\\n<p>Sadly
|
735
|
+
nobody reacted so I have to assume that this project is dead. But what about
|
736
|
+
you? <em>Anyone interested in bringing some of the Kinect functionality
|
737
|
+
to Ruby?</em></p>\\n\\n<p><strong>What <del>I</del>
|
738
|
+
we managed to do:</strong></p>\\n\\n<ul>\\n<li>Control
|
739
|
+
the Kinects motor</li>\\n<li>Control the Kinects LED</li>\\n<li>Get
|
740
|
+
accelerometer data</li>\\n</ul>\\n\\n<p><strong>What
|
741
|
+
is missing (tried but failed):</strong></p>\\n\\n<ul>\\n<li>Get
|
742
|
+
an image from the RGB cam</li>\\n<li>Get an image from the depth
|
743
|
+
cam</li>\\n<li><del>Get accelerometer data</del></li>\\n</ul>\\n\\n<p><strong>TL;DR:</strong>
|
744
|
+
Started to develop a pure Ruby Kinect driver. Who wants to help?</p>\\n\\n<p>PS:
|
745
|
+
I&#39;m not interested in libfreenect wrappers, I want to create a pure
|
746
|
+
Ruby driver. (only with libusb i.e.)</p>\\n\\n<p><strong>EDIT:
|
747
|
+
I&#39;ve put what I got so far on GitHub: <a href=\\\"https://github.com/pachacamac/rinect\\\">see
|
748
|
+
here</a></strong></p>\\n</div><!-- SC_ON -->\",
|
749
|
+
\"selftext\": \"Hi there,\\n\\nI started learning Ruby a few months ago and
|
750
|
+
I bought myself a Microsoft Kinect Cam as an early X-Mas gift. Of course I'm
|
751
|
+
using Linux (yes your OS-X is fine too) and don't even own an X-Box 360 ...
|
752
|
+
so I started the hacking.\\n\\nAfter a short time of fiddling with C, I remembered
|
753
|
+
how much it tends to get on my nerves and how much I love Ruby, so I thought
|
754
|
+
\\\"**Why not write some Kinect stuff with Ruby?!**\\\". After a bit of googling
|
755
|
+
I found exactly no other projects except\\n\\n---- [this one](http://openkinect.org/wiki/Ruby_Wrapper#Sample_Code)
|
756
|
+
----\\n\\nwhich was empty and so I decided to **post my first code snippet
|
757
|
+
there**.\\n\\nSadly nobody reacted so I have to assume that this project is
|
758
|
+
dead. But what about you? *Anyone interested in bringing some of the Kinect
|
759
|
+
functionality to Ruby?*\\n\\n\\n**What ~~I~~ we managed to do:**\\n\\n * Control
|
760
|
+
the Kinects motor\\n * Control the Kinects LED\\n * Get accelerometer data\\n\\n**What
|
761
|
+
is missing (tried but failed):**\\n\\n * Get an image from the RGB cam\\n
|
762
|
+
* Get an image from the depth cam\\n * ~~Get accelerometer data~~\\n\\n\\n\\n**TL;DR:**
|
763
|
+
Started to develop a pure Ruby Kinect driver. Who wants to help?\\n\\nPS:
|
764
|
+
I'm not interested in libfreenect wrappers, I want to create a pure Ruby driver.
|
765
|
+
(only with libusb i.e.)\\n\\n\\n**EDIT: I've put what I got so far on GitHub:
|
766
|
+
[see here](https://github.com/pachacamac/rinect)**\", \"likes\": null, \"secure_media\":
|
767
|
+
null, \"link_flair_text\": null, \"id\": \"euka7\", \"secure_media_embed\":
|
768
|
+
{}, \"clicked\": false, \"stickied\": false, \"author\": \"nexe\", \"media\":
|
769
|
+
null, \"score\": 29, \"approved_by\": null, \"over_18\": false, \"hidden\":
|
770
|
+
false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_2qh21\", \"edited\": true,
|
771
|
+
\"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\":
|
772
|
+
8, \"saved\": false, \"is_self\": true, \"permalink\": \"/r/ruby/comments/euka7/ruby_kinect_project/\",
|
773
|
+
\"name\": \"t3_euka7\", \"created\": 1293897993.0, \"url\": \"http://www.reddit.com/r/ruby/comments/euka7/ruby_kinect_project/\",
|
774
|
+
\"author_flair_text\": null, \"title\": \"Ruby Kinect Project\", \"created_utc\":
|
775
|
+
1293897993.0, \"ups\": 37, \"num_comments\": 36, \"visited\": false, \"num_reports\":
|
776
|
+
null, \"distinguished\": null}}, {\"kind\": \"t3\", \"data\": {\"domain\":
|
777
|
+
\"self.ruby\", \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"ruby\",
|
778
|
+
\"selftext_html\": \"<!-- SC_OFF --><div class=\\\"md\\\"><p>Hey
|
779
|
+
<a href=\\\"/r/ruby\\\">/r/ruby</a>,</p>\\n\\n<p>Lately
|
780
|
+
Ive been getting my hands in a lot of languages to get a feel for them. Trying
|
781
|
+
out JS/WinJS, Ruby (+Some Rails), and Python.</p>\\n\\n<p>Ive
|
782
|
+
worked with Python for a bit now, however I have never taken the time to learn
|
783
|
+
from the ground-up any language ( outside of HTML/CSS(+SASS) ). As such lately
|
784
|
+
Ive been doing some rather simple exploration of Ruby vs Python, jumping between
|
785
|
+
the two trying to get a feel for it. Both seem great, however I am leaning
|
786
|
+
toward Ruby currently, and wanted to see if anyone had some input.</p>\\n\\n<p>A
|
787
|
+
few concerns I have with Ruby is that while there is a TON of Ruby intro material
|
788
|
+
(Learn Ruby the Hard Way, RubyMonk, and Pragmatic Guide), everything project
|
789
|
+
development wise and even gem wise is Rails centric. I understand Rails is
|
790
|
+
popular but even a simple Sinatra app, I cant find a Mailer Gem that doesn&#39;t
|
791
|
+
require Rails. While on the Python end, I fell in love with Hyde but it like
|
792
|
+
many other projects I found for Python are completely dead development wise.</p>\\n\\n<p>Any
|
793
|
+
links or input on what I should be looking at to make a good decision?</p>\\n\\n<p>Note:
|
794
|
+
Apologies if this is asked a lot, or shouldnt be asked here. I tried a search
|
795
|
+
and most of the questions were a year old.</p>\\n</div><!--
|
796
|
+
SC_ON -->\", \"selftext\": \"Hey /r/ruby,\\n\\nLately Ive been getting
|
797
|
+
my hands in a lot of languages to get a feel for them. Trying out JS/WinJS,
|
798
|
+
Ruby (+Some Rails), and Python.\\n\\nIve worked with Python for a bit now,
|
799
|
+
however I have never taken the time to learn from the ground-up any language
|
800
|
+
( outside of HTML/CSS(+SASS) ). As such lately Ive been doing some rather
|
801
|
+
simple exploration of Ruby vs Python, jumping between the two trying to get
|
802
|
+
a feel for it. Both seem great, however I am leaning toward Ruby currently,
|
803
|
+
and wanted to see if anyone had some input.\\n\\nA few concerns I have with
|
804
|
+
Ruby is that while there is a TON of Ruby intro material (Learn Ruby the Hard
|
805
|
+
Way, RubyMonk, and Pragmatic Guide), everything project development wise and
|
806
|
+
even gem wise is Rails centric. I understand Rails is popular but even a simple
|
807
|
+
Sinatra app, I cant find a Mailer Gem that doesn't require Rails. While on
|
808
|
+
the Python end, I fell in love with Hyde but it like many other projects I
|
809
|
+
found for Python are completely dead development wise.\\n\\nAny links or input
|
810
|
+
on what I should be looking at to make a good decision?\\n\\nNote: Apologies
|
811
|
+
if this is asked a lot, or shouldnt be asked here. I tried a search and most
|
812
|
+
of the questions were a year old.\", \"likes\": null, \"secure_media\": null,
|
813
|
+
\"link_flair_text\": null, \"id\": \"zyzf7\", \"secure_media_embed\": {},
|
814
|
+
\"clicked\": false, \"stickied\": false, \"author\": \"RevisionZero\", \"media\":
|
815
|
+
null, \"score\": 7, \"approved_by\": null, \"over_18\": false, \"hidden\":
|
816
|
+
false, \"thumbnail\": \"\", \"subreddit_id\": \"t5_2qh21\", \"edited\": false,
|
817
|
+
\"link_flair_css_class\": null, \"author_flair_css_class\": null, \"downs\":
|
818
|
+
2, \"saved\": false, \"is_self\": true, \"permalink\": \"/r/ruby/comments/zyzf7/looking_for_some_advice_should_i_focus_on/\",
|
819
|
+
\"name\": \"t3_zyzf7\", \"created\": 1347809223.0, \"url\": \"http://www.reddit.com/r/ruby/comments/zyzf7/looking_for_some_advice_should_i_focus_on/\",
|
820
|
+
\"author_flair_text\": null, \"title\": \"Looking for some advice: Should
|
821
|
+
I focus on learning Python or Ruby? Input much appreciated.\", \"created_utc\":
|
822
|
+
1347805623.0, \"ups\": 9, \"num_comments\": 56, \"visited\": false, \"num_reports\":
|
823
|
+
null, \"distinguished\": null}}, {\"kind\": \"t3\", \"data\": {\"domain\":
|
824
|
+
\"self.ruby\", \"banned_by\": null, \"media_embed\": {}, \"subreddit\": \"ruby\",
|
825
|
+
\"selftext_html\": \"<!-- SC_OFF --><div class=\\\"md\\\"><p>Hey
|
826
|
+
everyone, do you guys mind sharing what are good open source projects for
|
827
|
+
Ruby beginners? </p>\\n\\n<p>Thanks for the help in advance!</p>\\n</div><!--
|
828
|
+
SC_ON -->\", \"selftext\": \"Hey everyone, do you guys mind sharing what
|
829
|
+
are good open source projects for Ruby beginners? \\n\\nThanks for the help
|
830
|
+
in advance!\", \"likes\": null, \"secure_media\": null, \"link_flair_text\":
|
831
|
+
null, \"id\": \"18abdk\", \"secure_media_embed\": {}, \"clicked\": false,
|
832
|
+
\"stickied\": false, \"author\": \"ghostwarfare\", \"media\": null, \"score\":
|
833
|
+
36, \"approved_by\": null, \"over_18\": false, \"hidden\": false, \"thumbnail\":
|
834
|
+
\"\", \"subreddit_id\": \"t5_2qh21\", \"edited\": false, \"link_flair_css_class\":
|
835
|
+
null, \"author_flair_css_class\": null, \"downs\": 6, \"saved\": false, \"is_self\":
|
836
|
+
true, \"permalink\": \"/r/ruby/comments/18abdk/what_are_some_good_open_source_projects_for_ruby/\",
|
837
|
+
\"name\": \"t3_18abdk\", \"created\": 1360552623.0, \"url\": \"http://www.reddit.com/r/ruby/comments/18abdk/what_are_some_good_open_source_projects_for_ruby/\",
|
838
|
+
\"author_flair_text\": null, \"title\": \"What are some good open source projects
|
839
|
+
for Ruby beginners?\", \"created_utc\": 1360552623.0, \"ups\": 42, \"num_comments\":
|
840
|
+
22, \"visited\": false, \"num_reports\": null, \"distinguished\": null}}],
|
841
|
+
\"after\": \"t3_18abdk\", \"before\": null}}"
|
842
|
+
http_version:
|
843
|
+
recorded_at: Sun, 10 Nov 2013 22:21:31 GMT
|
844
|
+
recorded_with: VCR 2.6.0
|