create account

How to write a simple program: "Hello World" by superfreek

View this thread on: hive.blogpeakd.comecency.com
· @superfreek · (edited)
$0.58
How to write a simple program: "Hello World"
## Hello World
<h1>https://pixabay.com/static/uploads/photo/2016/05/02/01/32/barbie-1366378_960_720.jpg</h1>

Hello world is a small, simple program that is used to demonstrate the syntax of a programming language.


## Ruby
<br />
http://i.imgur.com/VG0sp1O.png

If you read my <a href="https://steemit.com/tag/@superfreek/how-to-become-a-self-taught-programmer">last post</a>, I recommended ruby. That will be the programming language we'll be using to write our simple program. You can download ruby here for any platform:
https://www.ruby-lang.org/en/downloads/
<br />
## The Program
http://i.imgur.com/7aAhti4.jpg
Here is the entire “Hello World” program written in ruby:

```
puts “Hello World”
```

If you saved that snippet as `hello_world.rb` (a ruby file), and ran it in your terminal(or command prompt on windows), it would look like this:

```
ruby hello_world.rb
Hello World
```

the first line in the above snippet is running the program `hello_world.rb`, and the second line is the output from the program, in this case, it is printing `Hello World`.
<br />
## Demo
http://i.imgur.com/pyVURiU.png
I made a gif showing me writing this program from the start, I’m using vim as the text editor to write the ruby file, save it, then run it with the same commands I used above:
http://i.imgur.com/TyK7CSV.gif

<br />
That’s it! First Program Written. We're all programmers now.
<br />

## A bit about me

I've been learning about programming for at least a decade, and I probably won't stop. You can check out my intro post and some of the projects I've worked on:

https://steemit.com/introduceyourself/@superfreek/a-developer-introduction-post

And my last post "How to become a self-taught programmer":

https://steemit.com/tag/@superfreek/how-to-become-a-self-taught-programmer
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
authorsuperfreek
permlinklearning-to-write-a-simple-program-hello-world
categoryintroduceyourself
json_metadata{"tags":["programming","introduceyourself","steemit","life","money"],"image":["https://pixabay.com/static/uploads/photo/2016/05/02/01/32/barbie-1366378_960_720.jpg","http://i.imgur.com/VG0sp1O.png","http://i.imgur.com/7aAhti4.jpg","http://i.imgur.com/pyVURiU.png"],"links":["https://steemit.com/tag/@superfreek/how-to-become-a-self-taught-programmer","https://www.ruby-lang.org/en/downloads/","https://steemit.com/introduceyourself/@superfreek/a-developer-introduction-post"]}
created2016-08-23 05:08:48
last_update2016-08-23 05:22:18
depth0
children6
last_payout2016-09-23 07:19:39
cashout_time1969-12-31 23:59:59
total_payout_value0.499 HBD
curator_payout_value0.079 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,791
author_reputation624,465,111,399
root_title"How to write a simple program: "Hello World""
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id946,270
net_rshares893,953,438,227
author_curate_reward""
vote details (30)
@craigwilliamz ·
Welcome to Steemit! If you would like to see statistics of any post on Steemit, you can use Steemd.com. I have made a bookmark for your convenience in accessing Steemd. https://steemit.com/steemd/@craigwilliamz/steemd-statistics-bookmark-for-easy-access-to-steemd
properties (22)
authorcraigwilliamz
permlinkre-learning-to-write-a-simple-program-hello-world-20160823t051420
categoryintroduceyourself
json_metadata""
created2016-08-23 05:14:21
last_update2016-08-23 05:14:21
depth1
children0
last_payout2016-09-23 07:19:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length263
author_reputation171,004,441,932
root_title"How to write a simple program: "Hello World""
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id946,310
net_rshares0
@jarvis ·
Re: How to write a simple program: "Hello World"
What was the best part of your weekend?
properties (22)
authorjarvis
permlinkre-learning-to-write-a-simple-program-hello-world-20160823t051346
categoryintroduceyourself
json_metadata"{"replyto": "@superfreek/learning-to-write-a-simple-program-hello-world"}"
created2016-08-23 05:13:45
last_update2016-08-23 05:13:45
depth1
children0
last_payout2016-09-23 07:19:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length40
author_reputation-788,377,956,676
root_title"How to write a simple program: "Hello World""
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id946,305
net_rshares0
@lizzie ·
Wow! Amazing post! I look forward to reading more.
properties (22)
authorlizzie
permlinkre-superfreek-learning-to-write-a-simple-program-hello-world-20160823t054101550z
categoryintroduceyourself
json_metadata{"tags":["introduceyourself"]}
created2016-08-23 05:41:03
last_update2016-08-23 05:41:03
depth1
children1
last_payout2016-09-23 07:19:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length50
author_reputation125,578,657,155
root_title"How to write a simple program: "Hello World""
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id946,495
net_rshares0
@veerprit ·
rofl
properties (22)
authorveerprit
permlinkre-lizzie-re-superfreek-learning-to-write-a-simple-program-hello-world-20160823t074818107z
categoryintroduceyourself
json_metadata{"tags":["introduceyourself"]}
created2016-08-23 07:48:18
last_update2016-08-23 07:48:18
depth2
children0
last_payout2016-09-23 07:19:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length4
author_reputation2,373,190,796,507
root_title"How to write a simple program: "Hello World""
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id947,350
net_rshares0
@me-confucius ·
Re: How to write a simple program: "Hello World"
*Boldness, without the rules of propriety, becomes insubordination.*
properties (22)
authorme-confucius
permlinkre-learning-to-write-a-simple-program-hello-world-20160823t051457
categoryintroduceyourself
json_metadata"{"replyto": "@superfreek/learning-to-write-a-simple-program-hello-world"}"
created2016-08-23 05:14:57
last_update2016-08-23 05:14:57
depth1
children0
last_payout2016-09-23 07:19:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length69
author_reputation-1,109,228,844,392
root_title"How to write a simple program: "Hello World""
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id946,317
net_rshares0
@veerprit ·
Spacemacs better than vim. Everyone knows this.

Nice post though
👍  
properties (23)
authorveerprit
permlinkre-superfreek-learning-to-write-a-simple-program-hello-world-20160823t051400595z
categoryintroduceyourself
json_metadata{"tags":["introduceyourself"]}
created2016-08-23 05:13:45
last_update2016-08-23 05:13:45
depth1
children0
last_payout2016-09-23 07:19:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length65
author_reputation2,373,190,796,507
root_title"How to write a simple program: "Hello World""
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id946,306
net_rshares115,471,166
author_curate_reward""
vote details (1)