create account

Suesa's Adventures in Programming - Part 3/? - First steps in JavaScript by suesa-random

View this thread on: hive.blogpeakd.comecency.com
· @suesa-random ·
$7.82
Suesa's Adventures in Programming - Part 3/? - First steps in JavaScript
<center>![](https://cdn.pixabay.com/photo/2016/01/02/04/59/coffee-1117933_960_720.jpg)<sub>By acekreations on pixabay.com</sub></center>

---
I am back, stronger than ever!

This time, not with SML (who needs that anyway ... I stopped going to the lectures when they tried to teach me grammar. Me is not interested in grammar), but with JavaScript!

@reggaemuffin introduced me to ["Codecademy"](https://www.codecademy.com/learn), which offers an extensive course for this language, in the Pro version. Lucky for me, the Pro version is free for 7 days (at least as of right now).

How extensive you ask? Well, after 3 hours of consistent coding, this is my progress:

<center>![grafik.png](https://files.steempeak.com/file/steempeak/suesa-random/vye5AZa2-grafik.png)</center>
There might be some more material waiting for me.

What did I code so far? Only super serious stuff, of course. How to calculate my age in dog years for example!

![Dog Years.PNG](https://files.steempeak.com/file/steempeak/suesa-random/hBPs2pVV-Dog20Years.PNG)

Or, you know, telling people what my favorite animal is!

![MyfaveAnimal.PNG](https://files.steempeak.com/file/steempeak/suesa-random/gAO74cj2-MyfaveAnimal.PNG)

Something that threw me off slightly, was that you can apparently use recursive (recursive looking?) statements, and it works without crashing everything:

![Recursion feels wrong.png](https://files.steempeak.com/file/steempeak/suesa-random/sIocawq6-Recursion20feels20wrong.png)

`
fahrenheit = Math.floor(fahrenheit)
`
is not something I would do in SML. Although I must confess, it's been a while since I worked with that language, maybe it'd work? My gut feeling says "no".

After I had already ~~tempered with tamparatures~~ tampered with temperatures, it was time to write something about the seasons that will expect me ~~if~~ when I move to Ireland: 404 - Summer not found.

![Summer not found.PNG](https://files.steempeak.com/file/steempeak/suesa-random/nzORue03-Summer20not20found.PNG)

The greatest thing about this tutorial? It allows you to insult non-existent people for their lack of success:

![Last place you suck.PNG](https://files.steempeak.com/file/steempeak/suesa-random/iNOHd0bo-Last20place20you20suck.PNG)

And last but not least, I wrote a short program that can tell the future. And as you all know, Magic Eight Balls do not lie, this certainly proves that Steem will moon this year!


![Steem will moon.PNG](https://files.steempeak.com/file/steempeak/suesa-random/CGNFBumo-Steem20will20moon.PNG)

So, what's my assessment so far?

JavaScript itself seems to be an easy to understand language, what I've seen so far is intuitive even for a biologist. Yes, having basic knowledge in SML might have helped, although it also led to 10 minutes of debugging, because I didn't realize that, while SML uses `if - then - else`, JavaScript uses `if - else`.

I like the fact that you can use `? :` instead of `if - else`.

```
let dessert = "pudding";

if (dessert) {
console.log("HELL YEAH!")
}
else {
console.log("Awww :( ")
};

```


is just so much more to write than


```let dessert = "pudding";

dessert ? 
console.log("HELL YEAH!")
:
console.log("Awww :( ");

```

On top of that, the tutorial offered by Codecademy is really nice. Depending on how fast I get through, I might actually pay money for the Pro version.
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 26 others
properties (23)
authorsuesa-random
permlinksuesa-s-adventures-in-programming-part-3-first-steps-in-javascript
categoryprogramming
json_metadata{"community":"steempeak","app":"steempeak/1.7.2b","format":"markdown","tags":["programming","coding","tutorial","code","experience"],"users":["reggaemuffin"],"links":["/@reggaemuffin","https://www.codecademy.com/learn"],"image":["https://cdn.pixabay.com/photo/2016/01/02/04/59/coffee-1117933_960_720.jpg","https://files.steempeak.com/file/steempeak/suesa-random/vye5AZa2-grafik.png","https://files.steempeak.com/file/steempeak/suesa-random/hBPs2pVV-Dog20Years.PNG","https://files.steempeak.com/file/steempeak/suesa-random/gAO74cj2-MyfaveAnimal.PNG","https://files.steempeak.com/file/steempeak/suesa-random/sIocawq6-Recursion20feels20wrong.png","https://files.steempeak.com/file/steempeak/suesa-random/nzORue03-Summer20not20found.PNG","https://files.steempeak.com/file/steempeak/suesa-random/iNOHd0bo-Last20place20you20suck.PNG","https://files.steempeak.com/file/steempeak/suesa-random/CGNFBumo-Steem20will20moon.PNG"]}
created2019-02-15 20:22:03
last_update2019-02-15 20:22:03
depth0
children6
last_payout2019-02-22 20:22:03
cashout_time1969-12-31 23:59:59
total_payout_value6.006 HBD
curator_payout_value1.814 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,339
author_reputation29,768,903,867,487
root_title"Suesa's Adventures in Programming - Part 3/? - First steps in JavaScript"
beneficiaries
0.
accountsteempeak
weight100
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id79,917,674
net_rshares15,495,025,922,249
author_curate_reward""
vote details (90)
@geekpowered ·
$0.02
Great job! Add random number generation to that, and you have enough to make a simple text game where you fight a dragon. :P

The basics of JavaScript aren't that hard. It does get a bit more annoying as the programs grow and do more complex things though. It's a lot easier than it used to be though, because there are a lot better libraries, so your code can be cleaner and smaller.
👍  ,
properties (23)
authorgeekpowered
permlinkre-suesa-random-suesa-s-adventures-in-programming-part-3-first-steps-in-javascript-20190215t210521412z
categoryprogramming
json_metadata{"tags":["programming"],"community":"steempeak","app":"steempeak/1.7.2b"}
created2019-02-15 21:05:21
last_update2019-02-15 21:05:21
depth1
children3
last_payout2019-02-22 21:05:21
cashout_time1969-12-31 23:59:59
total_payout_value0.018 HBD
curator_payout_value0.001 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length384
author_reputation99,319,261,112,097
root_title"Suesa's Adventures in Programming - Part 3/? - First steps in JavaScript"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id79,920,188
net_rshares49,753,808,475
author_curate_reward""
vote details (2)
@suesa ·
Now I want to make that text based game ....
another time. Got a different project to work on first. Stay tuned for the 1st of April!
properties (22)
authorsuesa
permlinkre-geekpowered-re-suesa-random-suesa-s-adventures-in-programming-part-3-first-steps-in-javascript-20190215t210957473z
categoryprogramming
json_metadata{"tags":["programming"],"community":"steempeak","app":"steempeak/1.7.2b"}
created2019-02-15 21:10:03
last_update2019-02-15 21:10:03
depth2
children2
last_payout2019-02-22 21:10:03
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_length133
author_reputation218,686,954,260,455
root_title"Suesa's Adventures in Programming - Part 3/? - First steps in JavaScript"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id79,920,418
net_rshares0
@geekpowered ·
Oh god no...

There's also Steem libraries for JavaScript. So you could write a bot or a simple game or something for Steem. :)
properties (22)
authorgeekpowered
permlinkre-suesa-re-geekpowered-re-suesa-random-suesa-s-adventures-in-programming-part-3-first-steps-in-javascript-20190215t211238566z
categoryprogramming
json_metadata{"tags":["programming"],"app":"steemit/0.1"}
created2019-02-15 21:12:39
last_update2019-02-15 21:12:39
depth3
children1
last_payout2019-02-22 21:12: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_length127
author_reputation99,319,261,112,097
root_title"Suesa's Adventures in Programming - Part 3/? - First steps in JavaScript"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id79,920,568
net_rshares0
@juanmanuellopez1 ·
$0.02
<div class="text-justify">
The most important thing is that all this is something that you like a lot. I really liked the super serious things you codified. Hahaha!

Hopefully the Steem takes off and goes to the moon as you say ... Hehehe! That would motivate us much more than more than one on this platform.
</div>
👍  ,
properties (23)
authorjuanmanuellopez1
permlinkre-suesa-random-suesa-s-adventures-in-programming-part-3-first-steps-in-javascript-20190220t100127167z
categoryprogramming
json_metadata{"tags":["programming"],"app":"steemit/0.1"}
created2019-02-20 09:30:36
last_update2019-02-20 09:30:36
depth1
children0
last_payout2019-02-27 09:30:36
cashout_time1969-12-31 23:59:59
total_payout_value0.018 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length316
author_reputation17,245,207,026,261
root_title"Suesa's Adventures in Programming - Part 3/? - First steps in JavaScript"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id80,137,548
net_rshares48,963,370,414
author_curate_reward""
vote details (2)
@soundworks ·
$0.02
Dammit! Now, I wanna code something new in JS... screw lectures, I guess xd Hope they won't tell anything important today :)
👍  
properties (23)
authorsoundworks
permlinkre-suesa-random-suesa-s-adventures-in-programming-part-3-first-steps-in-javascript-20190216t091637638z
categoryprogramming
json_metadata{"tags":["programming"],"community":"steempeak","app":"steempeak/1.7.2b"}
created2019-02-16 09:16:39
last_update2019-02-16 09:16:39
depth1
children0
last_payout2019-02-23 09:16:39
cashout_time1969-12-31 23:59:59
total_payout_value0.017 HBD
curator_payout_value0.005 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length124
author_reputation1,173,891,345,825
root_title"Suesa's Adventures in Programming - Part 3/? - First steps in JavaScript"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id79,943,462
net_rshares44,863,980,441
author_curate_reward""
vote details (1)