# 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>
author | gamer00 | ||||||
---|---|---|---|---|---|---|---|
permlink | dahlia-and-a-little-bit-about-bash-programming-with-kids-daily-and-fresh-231-366 | ||||||
category | hive-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"} | ||||||
created | 2020-09-18 21:48:24 | ||||||
last_update | 2020-09-24 05:44:51 | ||||||
depth | 0 | ||||||
children | 6 | ||||||
last_payout | 2020-09-25 21:48:24 | ||||||
cashout_time | 1969-12-31 23:59:59 | ||||||
total_payout_value | 0.676 HBD | ||||||
curator_payout_value | 0.663 HBD | ||||||
pending_payout_value | 0.000 HBD | ||||||
promoted | 0.000 HBD | ||||||
body_length | 3,383 | ||||||
author_reputation | 152,628,347,447,868 | ||||||
root_title | "Dahlia (and a little bit about Bash programming with kids) :: Daily and Fresh π· (231/366)" | ||||||
beneficiaries |
| ||||||
max_accepted_payout | 1,000,000.000 HBD | ||||||
percent_hbd | 10,000 | ||||||
post_id | 99,701,165 | ||||||
net_rshares | 6,635,014,877,835 | ||||||
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
mammasitta | 0 | 29,135,328,188 | 4.08% | ||
good-karma | 0 | 440,937,627,286 | 40.86% | ||
djennyfloro | 0 | 1,294,474,400 | 10% | ||
esteemapp | 0 | 657,957,565,344 | 40.86% | ||
tarazkp | 0 | 1,181,617,881,408 | 22% | ||
ambyr00 | 0 | 17,361,798,430 | 3.12% | ||
varunpinto | 0 | 2,430,042,704 | 100% | ||
turpsy | 0 | 52,446,973,398 | 80% | ||
littlenewthings | 0 | 53,176,668,926 | 80% | ||
digitalis | 0 | 206,036,131,357 | 100% | ||
kaminchan | 0 | 92,319,594,725 | 46% | ||
pele23 | 0 | 104,231,092,023 | 30% | ||
roleerob | 0 | 83,942,163,154 | 10% | ||
gtpjfoodbank | 0 | 20,524,907,658 | 60% | ||
esteem.app | 0 | 12,053,498,375 | 40.86% | ||
sheikh27 | 0 | 13,334,346,465 | 100% | ||
fun2learn | 0 | 2,849,325,744 | 3% | ||
russellstockley | 0 | 6,289,247,410 | 25% | ||
sbi2 | 0 | 990,678,223,136 | 68.65% | ||
waybeyondpadthai | 0 | 309,811,519,891 | 100% | ||
tsurmb | 0 | 2,895,467,991 | 100% | ||
peekbit | 0 | 25,676,859,697 | 98.22% | ||
payroll | 0 | 81,966,050,679 | 2% | ||
lordvdr | 0 | 53,155,473,466 | 100% | ||
we-are | 0 | 2,915,843,112 | 17.24% | ||
yayan | 0 | 993,590,740 | 20.43% | ||
doldrums | 0 | 11,216,393,429 | 100% | ||
jokinmenipieleen | 0 | 3,831,249,082 | 100% | ||
laissez-faire | 0 | 44,480,755 | 100% | ||
gudnius.comics | 0 | 1,995,708,788 | 100% | ||
demo123 | 0 | 103,696,034 | 93.6% | ||
anonsteve | 0 | 3,560,958,732 | 100% | ||
ambifokus | 0 | 10,224,731,170 | 12.5% | ||
iamjohn | 0 | 635,685,866 | 11% | ||
babytarazkp | 0 | 3,393,353,363 | 50% | ||
sbi-tokens | 0 | 2,975,051,774 | 9.93% | ||
shtup | 0 | 12,888,782,850 | 100% | ||
rrusina | 0 | 18,868,064,424 | 100% | ||
steemonboarder | 0 | 10,536,835,493 | 100% | ||
luminosity | 0 | 2,145,323,507 | 50% | ||
ninnu | 0 | 27,935,418,213 | 6.25% | ||
kiemis | 0 | 29,508,100,155 | 6.25% | ||
ecency | 0 | 2,040,385,384,401 | 40.53% | ||
reza-shamim | 0 | 1,884,374,894 | 20.43% | ||
ecency.stats | 0 | 3,845,579,500 | 40.86% | ||
matthew.lily | 0 | 3,004,009,698 | 80% |
**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
author | ecency |
---|---|
permlink | re-2020919t91923995z |
category | hive-181829 |
json_metadata | {"tags":["ecency"],"app":"ecency/3.0.5-welcome","format":"markdown+html"} |
created | 2020-09-19 07:19:24 |
last_update | 2020-09-19 07:19:24 |
depth | 1 |
children | 0 |
last_payout | 2020-09-26 07:19:24 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 336 |
author_reputation | 549,971,524,037,747 |
root_title | "Dahlia (and a little bit about Bash programming with kids) :: Daily and Fresh π· (231/366)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 99,706,382 |
net_rshares | 0 |
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!
author | kaminchan |
---|---|
permlink | re-gamer00-2020919t112058655z |
category | hive-181829 |
json_metadata | {"tags":["hive-181829","onephotoeveryday","dailyandfresh","photography","flowers","dahlia","blog","parenting","coding","bash"],"app":"ecency/3.0.4-mobile","format":"markdown+html"} |
created | 2020-09-19 04:21:00 |
last_update | 2020-09-19 04:21:00 |
depth | 1 |
children | 0 |
last_payout | 2020-09-26 04:21:00 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.012 HBD |
curator_payout_value | 0.012 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 130 |
author_reputation | 466,156,039,895,442 |
root_title | "Dahlia (and a little bit about Bash programming with kids) :: Daily and Fresh π· (231/366)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 99,704,727 |
net_rshares | 171,362,820,039 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
gamer00 | 0 | 100,662,548,824 | 15% | ||
dustbunny | 0 | 70,700,271,215 | 20.88% |
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).
author | lordvdr |
---|---|
permlink | re-gamer00-qgvkv3 |
category | hive-181829 |
json_metadata | {"tags":["hive-181829"],"app":"peakd/2020.09.4"} |
created | 2020-09-18 22:23:27 |
last_update | 2020-09-18 22:23:27 |
depth | 1 |
children | 1 |
last_payout | 2020-09-25 22:23:27 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.012 HBD |
curator_payout_value | 0.012 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 231 |
author_reputation | 12,670,791,127,409 |
root_title | "Dahlia (and a little bit about Bash programming with kids) :: Daily and Fresh π· (231/366)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 99,701,590 |
net_rshares | 172,213,573,224 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
gamer00 | 0 | 100,361,809,963 | 15% | ||
dustbunny | 0 | 71,851,763,261 | 21.22% |
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...)
author | gamer00 | ||||||
---|---|---|---|---|---|---|---|
permlink | re-lordvdr-2020920t24114481z | ||||||
category | hive-181829 | ||||||
json_metadata | {"tags":["hive-181829"],"app":"esteem/2.2.7-surfer","format":"markdown+html","community":"esteem.app"} | ||||||
created | 2020-09-19 23:41:15 | ||||||
last_update | 2020-09-19 23:41:15 | ||||||
depth | 2 | ||||||
children | 0 | ||||||
last_payout | 2020-09-26 23:41:15 | ||||||
cashout_time | 1969-12-31 23:59:59 | ||||||
total_payout_value | 0.000 HBD | ||||||
curator_payout_value | 0.000 HBD | ||||||
pending_payout_value | 0.000 HBD | ||||||
promoted | 0.000 HBD | ||||||
body_length | 591 | ||||||
author_reputation | 152,628,347,447,868 | ||||||
root_title | "Dahlia (and a little bit about Bash programming with kids) :: Daily and Fresh π· (231/366)" | ||||||
beneficiaries |
| ||||||
max_accepted_payout | 1,000,000.000 HBD | ||||||
percent_hbd | 10,000 | ||||||
post_id | 99,717,739 | ||||||
net_rshares | 0 |
https://twitter.com/AmbyR00/status/1307075352523661312
author | poshbot |
---|---|
permlink | re-dahlia-and-a-little-bit-about-bash-programming-with-kids-daily-and-fresh-231-366-20200918t215348z |
category | hive-181829 |
json_metadata | "{"app": "beem/0.24.8"}" |
created | 2020-09-18 21:53:48 |
last_update | 2020-09-18 21:53:48 |
depth | 1 |
children | 0 |
last_payout | 2020-09-25 21:53:48 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 54 |
author_reputation | 5,554,335,374,496 |
root_title | "Dahlia (and a little bit about Bash programming with kids) :: Daily and Fresh π· (231/366)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 99,701,231 |
net_rshares | 0 |
Dhalia is looking very beautiful, i am always annoyed with the programming code, it sucks my eyes and head.
author | sheikh27 |
---|---|
permlink | qgw241 |
category | hive-181829 |
json_metadata | {"app":"hiveblog/0.1"} |
created | 2020-09-19 04:36:03 |
last_update | 2020-09-19 04:36:03 |
depth | 1 |
children | 0 |
last_payout | 2020-09-26 04:36:03 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.014 HBD |
curator_payout_value | 0.014 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 107 |
author_reputation | 30,566,561,477,037 |
root_title | "Dahlia (and a little bit about Bash programming with kids) :: Daily and Fresh π· (231/366)" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 99,704,865 |
net_rshares | 198,010,750,841 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
gamer00 | 0 | 100,061,973,319 | 15% | ||
kushtia | 0 | 97,948,777,522 | 100% |