create account

Dahlia (and a little bit about Bash programming with kids) :: Daily and Fresh πŸ“· (231/366) by gamer00

View this thread on: hive.blogpeakd.comecency.com
· @gamer00 · (edited)
$1.34
Dahlia (and a little bit about Bash programming with kids) :: Daily and Fresh πŸ“· (231/366)
# Hello!

<center>![](https://images.ecency.com/DQmUdBvkYwQyK2dFvjLR3CX1ieRW2NLj5n41MUUFcX2L9mq/dahlia_mg_4362.jpg)</center>

This is a photo I am definitely not very content with. I took plenty of shots from different sides of the plant. But still struggled with everything from lighting to composition. I just couldn't seem to get it right. Everything failed.

I feel like giving up.

### Changing the subject...

## Parenting / Programming Bash

A few days ago I taught Miro some programming, using the Bash command shell. We wrote a number guessing game together. I told him what to write line by line in an editor, and told him what each line will do.

Here's my version of the program:
```
#!/bin/bash

# Satunnaislukupeli

satLuku=$((RANDOM%100+1))

echo -n "Arvaa luku (1-100): "

while read arvLuku 
do
# echo $satLuku

if [ $arvLuku -gt $satLuku ]
then
  echo "Liian suuri luku!"

elif [ $arvLuku -lt $satLuku ]
then
  echo "Liian pieni luku!"
else
  echo "Arvasit aivan oikein!!!"
  break
 
fi
done
```

Translations: 
> "Satunnaislukupeli" = "Random number game"
"Arvaa luku" = "Guess a number"
"Liian suuri/pieni" = "Too large/small"
"Arvasit oikein" = "You guessed correctly"

Miro made some (mainly linguistic) changes to his code though, but it worked too.
He was very impressed about what you can make the computer do.

Should I teach him the same in Python or Javascript? Maybe something else?


## See ya!

---

<div class="pull-right">
  
  
| <center>[`Next`](/hive-181829/@gamer00/minecraft-player-daily-and-fresh-232-366)</center> |
|-|
| [Daily and Fresh πŸ“· #232](/hive-181829/@gamer00/minecraft-player-daily-and-fresh-232-366) |
| [Daily and Fresh πŸ“· #233](/hive-181829/@gamer00/surprise-meme-daily-and-fresh-233-366) |
| [Daily and Fresh πŸ“· #234](/hive-181829/@gamer00/it-was-miro-s-10th-birthday-today-daily-and-fresh-234-366) |
| [Daily and Fresh πŸ“· #235](/hive-181829/@gamer00/in-the-forest-autumn-is-gradually-progressing-daily-and-fresh-235-366) |
| [Daily and Fresh πŸ“· #236](/hive-181829/@gamer00/unproductivity-daily-and-fresh-236-366) |
  
</div>

<div class="pull-left">

| <center>[`Previous`](/hive-181829/@gamer00/stormy-outside-so-daily-and-fresh-230-366)</center> |
|-|
| [Daily and Fresh πŸ“· #230](/hive-181829/@gamer00/stormy-outside-so-daily-and-fresh-230-366) |
| [Daily and Fresh πŸ“· #229](/hive-181829/@gamer00/raspberrypi-found-ideas-daily-and-fresh-229-366) |
| [Daily and Fresh πŸ“· #228](/hive-181829/@gamer00/otsake-daily-and-fresh-228-366) |
| [Daily and Fresh πŸ“· #227](/hive-181829/@gamer00/posing-for-the-camera-in-the-forest-daily-and-fresh-227-366) |
| [Daily and Fresh πŸ“· #226](/hive-181829/@gamer00/my-editing-got-terminated-by-an-overheated-processor-daily-and-fresh-226-366) |

  
</div>

<center>
  
<br />

| <center>**`Weeklies`**</center> |
| - |
|<center>[`Weekly and Fresh πŸ“Έ #32`](/weeklyandfresh/@gamer00/weekly-and-fresh-32-52)</center>|
|<center>[`Weekly and Fresh πŸ“Έ #31`](/weeklyandfresh/@gamer00/weekly-and-fresh-31-52)</center>|
|<center>[`Weekly and Fresh πŸ“Έ #30`](/weeklyandfresh/@gamer00/weekly-and-fresh-30-52)</center>|
|<center>[`Weekly and Fresh πŸ“Έ #29`](/weeklyandfresh/@gamer00/weekly-and-fresh-24-52)</center>|
|<center>[`Weekly and Fresh πŸ“Έ #28`](/weeklyandfresh/@gamer00/weekly-and-fresh-28-52)</center>|

  
</center>

---

<center>Like my post? **[🍻 Buy me a beer! 🍻](/buymeabeer/@gamer00/buy-me-a-beer)**</center>
πŸ‘  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
authorgamer00
permlinkdahlia-and-a-little-bit-about-bash-programming-with-kids-daily-and-fresh-231-366
categoryhive-181829
json_metadata{"image":["https://images.ecency.com/DQmUdBvkYwQyK2dFvjLR3CX1ieRW2NLj5n41MUUFcX2L9mq/dahlia_mg_4362.jpg"],"tags":["hive-181829","onephotoeveryday","dailyandfresh","photography","flowers","dahlia","blog","parenting","coding","bash"],"app":"esteem/2.2.7-surfer","format":"markdown+html","community":"esteem.app"}
created2020-09-18 21:48:24
last_update2020-09-24 05:44:51
depth0
children6
last_payout2020-09-25 21:48:24
cashout_time1969-12-31 23:59:59
total_payout_value0.676 HBD
curator_payout_value0.663 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,383
author_reputation152,628,347,447,868
root_title"Dahlia (and a little bit about Bash programming with kids) :: Daily and Fresh πŸ“· (231/366)"
beneficiaries
0.
accountesteemapp
weight300
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id99,701,165
net_rshares6,635,014,877,835
author_curate_reward""
vote details (46)
@ecency ·
**Yay!** <br>Your post has been **boosted with Ecency Points**. Keep up the good work! <br>Dear reader, Install Android: https://android.ecency.com, iOS: https://ios.ecency.com mobile app or desktop app for Windows, Mac, Linux: https://desktop.ecency.com<br>Learn more: https://ecency.com <br>Join our discord: https://discord.me/ecency
properties (22)
authorecency
permlinkre-2020919t91923995z
categoryhive-181829
json_metadata{"tags":["ecency"],"app":"ecency/3.0.5-welcome","format":"markdown+html"}
created2020-09-19 07:19:24
last_update2020-09-19 07:19:24
depth1
children0
last_payout2020-09-26 07:19:24
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_length336
author_reputation549,971,524,037,747
root_title"Dahlia (and a little bit about Bash programming with kids) :: Daily and Fresh πŸ“· (231/366)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id99,706,382
net_rshares0
@kaminchan ·
$0.02
That’s a nice photo!! I like it a lot! I could not take photos like that! 

Oh! I wish I had a friend teaching me to program too!
πŸ‘  ,
properties (23)
authorkaminchan
permlinkre-gamer00-2020919t112058655z
categoryhive-181829
json_metadata{"tags":["hive-181829","onephotoeveryday","dailyandfresh","photography","flowers","dahlia","blog","parenting","coding","bash"],"app":"ecency/3.0.4-mobile","format":"markdown+html"}
created2020-09-19 04:21:00
last_update2020-09-19 04:21:00
depth1
children0
last_payout2020-09-26 04:21:00
cashout_time1969-12-31 23:59:59
total_payout_value0.012 HBD
curator_payout_value0.012 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length130
author_reputation466,156,039,895,442
root_title"Dahlia (and a little bit about Bash programming with kids) :: Daily and Fresh πŸ“· (231/366)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id99,704,727
net_rshares171,362,820,039
author_curate_reward""
vote details (2)
@lordvdr ·
$0.02
Javascript is used a lot for web programming. As is its similar typescript (used for Angular programming). That would not be a bad thing to teach him. Perhaps some C# as well since it goes hand in hand with the typescript(Angular).
πŸ‘  ,
properties (23)
authorlordvdr
permlinkre-gamer00-qgvkv3
categoryhive-181829
json_metadata{"tags":["hive-181829"],"app":"peakd/2020.09.4"}
created2020-09-18 22:23:27
last_update2020-09-18 22:23:27
depth1
children1
last_payout2020-09-25 22:23:27
cashout_time1969-12-31 23:59:59
total_payout_value0.012 HBD
curator_payout_value0.012 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length231
author_reputation12,670,791,127,409
root_title"Dahlia (and a little bit about Bash programming with kids) :: Daily and Fresh πŸ“· (231/366)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id99,701,590
net_rshares172,213,573,224
author_curate_reward""
vote details (2)
@gamer00 ·
I'm a bit wary of everything corporate, like C#. When it comes to programming languages, the standards should be set by the programming community, and not a corporate entity controlling the language.

Other than that, I'm open to everything. Python is quite excellent, and if I learn this stuff I might even try C/C++. And for Leo/Miro, I wouldn't mind teaching them about algorithms, flowcharts and pseudo-code first. It might help them perceive it a bit more efficiently.

(I had to go that route myself because I got stuck with complexity as soon as I started trying to learn by doing...)
properties (22)
authorgamer00
permlinkre-lordvdr-2020920t24114481z
categoryhive-181829
json_metadata{"tags":["hive-181829"],"app":"esteem/2.2.7-surfer","format":"markdown+html","community":"esteem.app"}
created2020-09-19 23:41:15
last_update2020-09-19 23:41:15
depth2
children0
last_payout2020-09-26 23:41:15
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_length591
author_reputation152,628,347,447,868
root_title"Dahlia (and a little bit about Bash programming with kids) :: Daily and Fresh πŸ“· (231/366)"
beneficiaries
0.
accountesteemapp
weight300
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id99,717,739
net_rshares0
@poshbot ·
https://twitter.com/AmbyR00/status/1307075352523661312
properties (22)
authorposhbot
permlinkre-dahlia-and-a-little-bit-about-bash-programming-with-kids-daily-and-fresh-231-366-20200918t215348z
categoryhive-181829
json_metadata"{"app": "beem/0.24.8"}"
created2020-09-18 21:53:48
last_update2020-09-18 21:53:48
depth1
children0
last_payout2020-09-25 21:53:48
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_length54
author_reputation5,554,335,374,496
root_title"Dahlia (and a little bit about Bash programming with kids) :: Daily and Fresh πŸ“· (231/366)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id99,701,231
net_rshares0
@sheikh27 ·
$0.03
Dhalia is looking very beautiful, i am always annoyed with the programming code, it sucks my eyes and head.
πŸ‘  ,
properties (23)
authorsheikh27
permlinkqgw241
categoryhive-181829
json_metadata{"app":"hiveblog/0.1"}
created2020-09-19 04:36:03
last_update2020-09-19 04:36:03
depth1
children0
last_payout2020-09-26 04:36:03
cashout_time1969-12-31 23:59:59
total_payout_value0.014 HBD
curator_payout_value0.014 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length107
author_reputation30,566,561,477,037
root_title"Dahlia (and a little bit about Bash programming with kids) :: Daily and Fresh πŸ“· (231/366)"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id99,704,865
net_rshares198,010,750,841
author_curate_reward""
vote details (2)