Continuing to Learn Some Ruby by bitcoinparadise

View this thread on steempeak.com
· @bitcoinparadise · (edited)
$5.44
Continuing to Learn Some Ruby
<center>https://www.jewelinfo4u.com/wp-content/uploads/2016/03/ruby-on-rails-steams-critical-security-patch-1.jpg</center>

I have been spending some time here and there learning Ruby on <a href="https://www.codecademy.com">Codeacedemy. </a>Currently, I am on the Hashes and Symbols section.

![Screenshot.png](https://steemitimages.com/DQmdJ3BNbTN7oKkWmBU187vAv85X1TkQdNASvBfLfuLah86/Screenshot.png)

Just having some fun and wrote up a little easy script from the example on the site.

#### Code:

```
steemians = {
  bitcoinparadise: 65,
  fyrstikken: 72,
  seablue: 61
}

puts "What would you like to do?"
puts "-- Type 'add' to add a steemian."
puts "-- Type 'update' to update a steemian."
puts "-- Type 'display' to display all steemians."
puts "-- Type 'delete' to delete a steemian."

choice = gets.chomp.downcase
case choice
when 'add'
  puts "What steemian do you want to add?"
  name = gets.chomp
  if steemians[name.to_sym].nil?
    puts "What's their rep?
(Type a number 0 to 99.)"
    rep = gets.chomp
    steemians[name.to_sym] = rep.to_i
    puts "#{name} has been added with a rep of #{rep}."
  else
    puts "That steemian already exists! Their rep is #{steemians
[name.to_sym]}."
  end
when 'update'
  puts "What steemian do you want to update?"
  name = gets.chomp
  if steemians[name.to_sym].nil?
    puts "Steemian not found!"
  else
    puts "What's the new rep?(Type a number 0 to 99.)"
    rep = gets.chomp
    steemians[name.to_sym] = rep.to_i
    puts "#{name} has been updated with new rep of #{rep}."
  end
when 'display'
  steemians.each do |steemian, rep|
    puts "#{steemian}: #{rep}"
  end
when 'delete'
  puts "What steemian do you  want to delete?"
  name = gets.chomp
  if steemians[name.to_sym].nil?
    puts "Steemian not found!"
  else
   steemians.delete(name.to_sym)
    puts "#{name} has been removed."
  end
else
  puts "Sorry, I didn't understand you."
end
```
<br>

Here's a little gif of what the script does:

<center>https://media.giphy.com/media/DISiRWw4vgC1W/giphy.gif</center>

It's not much but I'm still learning and understanding a bit more. I wish I could take more time out of my day to keep at it and be a better coder someday but life has got me busy with a lot these days. 

I am amazed by those that know a ton of different programming languages. I only wished I had learned more when I was younger.

# About Ruby
Created by **Yukihiro β€œMatz” Matsumoto**, he took some of his favorite languages(Perl, Smalltalk, Eiffel, Ada, and Lisp) to form Ruby.

Matsumoto has often said he is:

> β€œtrying to make Ruby natural, not simple,” in a way that mirrors life.
>
> Ruby is simple in appearance, but is very complex inside, just like our human body.

Released in 1995, only recently reached mass acceptance in 2006 and is in the top 10 on most of the indices that measure the growth and popularity of programming languages worldwide.

Ruby is free to use, copy, modify, and distribute.

https://www.ruby-lang.org
<br>
<br>
*Image <a href="https://www.jewelinfo4u.com/ruby-facts-and-buying-guide">Source</a>*

---

<center>Thank you for taking the time to read my post. </center>
<center>Feel free to follow and find me in <a href="http://steemspeak.com">SteemSpeak</a> on Discord.</center> 

<div class="pull-left">
<a href="https://steemit.com/@bitcoinparadise"rel="noopener"><img src="https://steemitimages.com/DQmQv7vvUEUTyqTNYdFH3Cp4zS3CKFBcVhwTpkKEeUanGsF/btcfollow1.png">
</a></div>

<div class="pull-right"><a href="http://steemspeak.com"><img src="https://steemitimages.com/DQmc32tdyksdwbPd8KoAqdijRPrrB51UfJjN2kDU3z7zGCv/steemspeak.png"></a></div>
πŸ‘  , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
post_id9,850,041
authorbitcoinparadise
permlinkcontinuing-to-learn-some-ruby
categoryprogramming
json_metadata{"image":["https:\/\/www.jewelinfo4u.com\/wp-content\/uploads\/2016\/03\/ruby-on-rails-steams-critical-security-patch-1.jpg"],"app":"steemit\/0.1","links":["https:\/\/www.codecademy.com","https:\/\/www.ruby-lang.org","https:\/\/www.jewelinfo4u.com\/ruby-facts-and-buying-guide","http:\/\/steemspeak.com","https:\/\/steemit.com\/@bitcoinparadise"],"tags":["programming","coding","learning","ruby","development"],"format":"markdown"}
created2017-08-11 10:52:18
last_update2018-11-12 23:18:15
depth0
children9
net_rshares1,582,400,769,585
last_payout2017-08-18 10:52:18
cashout_time1969-12-31 23:59:59
total_payout_value4.303 SBD
curator_payout_value1.139 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length3,612
author_reputation52,885,100,418,823
root_title"Continuing to Learn Some Ruby"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (29)
@karencarrens ·
$0.03
Interesting that so much time passed from its release its adoption.  Who else uses Ruby to code off Steem's blockchain. Is there an example of what Ruby was used for? There's so much development going on, I still haven't wrapped my head around the development side of Steem.
πŸ‘  
properties (23)
post_id9,916,779
authorkarencarrens
permlinkre-bitcoinparadise-continuing-to-learn-some-ruby-20170812t035039653z
categoryprogramming
json_metadata"{"app": "steemit/0.1", "tags": ["programming"]}"
created2017-08-12 03:50:39
last_update2017-08-12 03:50:39
depth1
children2
net_rshares9,393,489,018
last_payout2017-08-19 03:50:39
cashout_time1969-12-31 23:59:59
total_payout_value0.023 SBD
curator_payout_value0.006 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length274
author_reputation5,181,368,069,850
root_title"Continuing to Learn Some Ruby"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@bitcoinparadise ·
There's a lot to the development side that I'm still learning. As far as examples of what ruby is used for, @inertia is a great programmer in this language. You can check out his app catalog here:
https://steemit.com/radiator/@inertia/my-app-catalog
properties (22)
post_id9,931,265
authorbitcoinparadise
permlinkre-karencarrens-re-bitcoinparadise-continuing-to-learn-some-ruby-20170812t085525409z
categoryprogramming
json_metadata"{"app": "steemit/0.1", "users": ["inertia"], "links": ["https://steemit.com/radiator/@inertia/my-app-catalog"], "tags": ["programming"]}"
created2017-08-12 08:55:27
last_update2017-08-12 08:55:27
depth2
children1
net_rshares0
last_payout2017-08-19 08:55:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length249
author_reputation52,885,100,418,823
root_title"Continuing to Learn Some Ruby"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@karencarrens ·
Thanks, this is exactly what I was needing.
properties (22)
post_id9,956,925
authorkarencarrens
permlinkre-bitcoinparadise-2017812t105131514z
categoryprogramming
json_metadata"{"app": "esteem/1.4.6", "format": "markdown+html", "community": "esteem", "tags": "programming"}"
created2017-08-12 15:51:30
last_update2017-08-12 15:51:30
depth3
children0
net_rshares0
last_payout2017-08-19 15:51:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length43
author_reputation5,181,368,069,850
root_title"Continuing to Learn Some Ruby"
beneficiaries
0.
accountesteemapp
weight500
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@khairulmuammar ·
very good information, thank you mr. @bitcoinparadise
properties (22)
post_id9,995,392
authorkhairulmuammar
permlinkre-bitcoinparadise-continuing-to-learn-some-ruby-20170813t032835925z
categoryprogramming
json_metadata"{"app": "steemit/0.1", "users": ["bitcoinparadise"], "tags": ["programming"]}"
created2017-08-13 03:28:36
last_update2017-08-13 03:28:36
depth1
children0
net_rshares0
last_payout2017-08-20 03:28:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length53
author_reputation39,405,383,233,632
root_title"Continuing to Learn Some Ruby"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@sophiedeziel ·
$0.03
Professional and experienced rubyist here! Feel free to ask me questions if you want help. Keep up the good work and I hope you enjoy what you are learning.
πŸ‘  
properties (23)
post_id10,251,441
authorsophiedeziel
permlinkre-bitcoinparadise-continuing-to-learn-some-ruby-20170816t043148080z
categoryprogramming
json_metadata"{"app": "steemit/0.1", "tags": ["programming"]}"
created2017-08-16 04:31:48
last_update2017-08-16 04:31:48
depth1
children2
net_rshares8,598,669,543
last_payout2017-08-23 04:31:48
cashout_time1969-12-31 23:59:59
total_payout_value0.025 SBD
curator_payout_value0.003 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length156
author_reputation17,201,073,656
root_title"Continuing to Learn Some Ruby"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@bitcoinparadise ·
That's awesome! I would recommend following @inertia, he's a very experienced rubyist as well. I will definitely ask you some questions! Thank you for your comment and I am very much enjoying learning this language :)
πŸ‘  
properties (23)
post_id10,252,590
authorbitcoinparadise
permlinkre-sophiedeziel-re-bitcoinparadise-continuing-to-learn-some-ruby-20170816t045256241z
categoryprogramming
json_metadata"{"app": "steemit/0.1", "users": ["inertia"], "tags": ["programming"]}"
created2017-08-16 04:52:57
last_update2017-08-16 04:52:57
depth2
children1
net_rshares644,140,552
last_payout2017-08-23 04:52:57
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length217
author_reputation52,885,100,418,823
root_title"Continuing to Learn Some Ruby"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@sophiedeziel ·
$0.02
I already follow @inertia! We're not a lot yet on Steemit, but I guess it's a matter of time :)
πŸ‘  
properties (23)
post_id10,254,792
authorsophiedeziel
permlinkre-bitcoinparadise-re-sophiedeziel-re-bitcoinparadise-continuing-to-learn-some-ruby-20170816t053336014z
categoryprogramming
json_metadata"{"app": "steemit/0.1", "users": ["inertia"], "tags": ["programming"]}"
created2017-08-16 05:33:36
last_update2017-08-16 05:33:36
depth3
children0
net_rshares6,501,677,260
last_payout2017-08-23 05:33:36
cashout_time1969-12-31 23:59:59
total_payout_value0.016 SBD
curator_payout_value0.004 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length95
author_reputation17,201,073,656
root_title"Continuing to Learn Some Ruby"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@ghaaspur ·
Great example. It's more than I can do :-)
properties (22)
post_id10,399,670
authorghaaspur
permlinkre-bitcoinparadise-2017817t213634457z
categoryprogramming
json_metadata"{"app": "esteem/1.4.7", "format": "markdown+html", "community": "esteem", "tags": "programming"}"
created2017-08-17 19:36:36
last_update2017-08-17 19:36:36
depth1
children0
net_rshares0
last_payout2017-08-24 19:36:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length42
author_reputation271,922,061,735
root_title"Continuing to Learn Some Ruby"
beneficiaries
0.
accountesteemapp
weight500
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@ilovecoding ·
Hello! Your post has been resteemed and upvoted by @ilovecoding because **we love coding**! Keep up good work! Consider upvoting this comment to support the @ilovecoding and increase your future rewards! ^_^ Steem On! 
 ![](https://codingforspeed.com/images/i-love-coding.jpg) 
*Reply !stop to disable the comment. Thanks!*
πŸ‘  
properties (23)
post_id65,934,275
authorilovecoding
permlink20181112t231830511z
categoryprogramming
json_metadata{"app":"ilovecoding","tags":["ilovecoding"]}
created2018-11-12 23:18:30
last_update2018-11-12 23:18:30
depth1
children0
net_rshares398,170,270
last_payout2018-11-19 23:18:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length323
author_reputation40,842,386,526
root_title"Continuing to Learn Some Ruby"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)