create account

Code.org - teaching students computer science by wwwiebe

View this thread on: hive.blogpeakd.comecency.com
· @wwwiebe ·
$2.69
Code.org - teaching students computer science
![image.png](https://files.peakd.com/file/peakd-hive/wwwiebe/23yTz7VmruzQm361fkY7Cir1JZP6A8yNX7jysewAvDRVR3ovipBMPQWpCnWVrTnrS5qnq.png)

I have been helping my son catch up on some computer science work (basically, I'm helping him catch up on the entire trimester's work), and the recent project has been to build an app on code.org.

The code.org platform is designed to help teach students computer science. It's primary interface of dragging blocks onto a canvas is shared by multiple other drag-and-drop application toolkits, such as MIT App Inventor, Scratch, and Lego Mindstorms:


![image.png](https://files.peakd.com/file/peakd-hive/wwwiebe/EoH49pmecwu6bHLWN54oUV3NvNdmkK45jmE9PHWSyLxLq4Sy4L2fDU7CN8tCT6bB7to.png)
(MIT App Inventor)

For better or worse, I've spent at least a few years of my career writing scripts and working in computer science, so I'm certainly familiar with a lot of the constructs that a grade 10 computer science class will need to know. They're currently working on loops, lists, and querying data sets, which are items that are second, even third, nature to me. Fourth even.

Most work to be performed in code.org can be completed by dragging blocks onto the canvas and filling them out correctly. However, we were beginning to run into an issue where the documentation was listing examples for blocks that did not exist, and by showing examples of actual written code in addition to blocks; this was confusing me greatly, leaving me wondering how to proceed in helping the boy.

Then, lo, I found it: the *Show Text* button:

![image.png](https://files.peakd.com/file/peakd-hive/wwwiebe/23wrA5MRFhJgRD1MhRknsQcQh5ETYzg1Y328sVEug3EtAcRgMf9YyuZEcYs5k5xJ95SAh.png)

This button literally changes the canvas editor from a drag and drop interface to a freeform text interface:

```
onEvent("home_lifespan_button", "click", function( ) {
  setScreen("lifespan");
  setProperty("lifespan_pulldown_cat", "options", getColumn("Cats", "Name"));
});
onEvent("home_temperament_button", "click", function( ) {
	setScreen("attributes");
});
onEvent("attribute_home_button", "click", function( ) {
	setScreen("title_screen");
});
onEvent("lifespan_home_button", "click", function( ) {
	setScreen("title_screen");
});
onEvent("lifespan_pulldown_cat", "change", function( ) {
	console.log("Selected option: " + getText("lifespan_pulldown_cat"));
	var cat_name=getText("lifespan_pulldown_cat");
	readRecords("Cats", {Name:cat_name}, function(cat_records) {
	   var minimum_age=cat_records[0]["Minimum Life Span"];
	   console.log("Minimum Age: " + minimum_age);
	   setText("label_min", minimum_age);
	 });
});
```

This solved so many problems for me! The particular issue I was facing was how to query the data set he had chosen. If it was a database I'd write an SQL statement, but it's not a database and SQL isn't an option; instead the documentation directed us to a "readRecords" function which I couldn't find a block for! Now, with being able to write the code directly, I am in a better position to help him complete his project.

**What I Learned Today**: I learned the code.org web interface for teaching students computer science.

---

(c) All images and photographs, unless otherwise specified, are created and owned by me.
(c) Victor Wiebe

---

**About Me**

```
Sometimes photographer. Wannabe author. Game designer. Nerd. 
General all around problem-solver and creative type.
```

Creator of *What I Learned Today* Hive community: https://peakd.com/c/hive-131257/created

---

**Blind Skeleton**

Online Radio: https://victorwiebe.com/radio_wiebe
Friday Night Concert: 6:00pm EST

![Blind Skeleton.jpeg](https://files.peakd.com/file/peakd-hive/wwwiebe/23tRxJCBUeHLB8LrWVoE5LeWLNN3rsH1xmMu3ZPkLYVr6XWqkMD18gfkMfYTKGFLbNLQ8.jpeg)



👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
authorwwwiebe
permlinkcodeorg-teaching-students-computer-science
categoryhive-131257
json_metadata"{"app":"peakd/2022.01.2","format":"markdown","description":"Learning computer science needs to start somewhere","tags":["proofofbrain","marlians","neoxian","palnet","cent","archon","vyb","pimp","creativecoin"],"users":[],"image":["https://files.peakd.com/file/peakd-hive/wwwiebe/23yTz7VmruzQm361fkY7Cir1JZP6A8yNX7jysewAvDRVR3ovipBMPQWpCnWVrTnrS5qnq.png","https://files.peakd.com/file/peakd-hive/wwwiebe/EoH49pmecwu6bHLWN54oUV3NvNdmkK45jmE9PHWSyLxLq4Sy4L2fDU7CN8tCT6bB7to.png","https://files.peakd.com/file/peakd-hive/wwwiebe/23wrA5MRFhJgRD1MhRknsQcQh5ETYzg1Y328sVEug3EtAcRgMf9YyuZEcYs5k5xJ95SAh.png","https://files.peakd.com/file/peakd-hive/wwwiebe/23tRxJCBUeHLB8LrWVoE5LeWLNN3rsH1xmMu3ZPkLYVr6XWqkMD18gfkMfYTKGFLbNLQ8.jpeg"]}"
created2022-02-13 20:45:09
last_update2022-02-13 20:45:09
depth0
children4
last_payout2022-02-20 20:45:09
cashout_time1969-12-31 23:59:59
total_payout_value1.351 HBD
curator_payout_value1.338 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,768
author_reputation344,170,916,911,802
root_title"Code.org - teaching students computer science"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id110,434,511
net_rshares2,122,914,744,406
author_curate_reward""
vote details (34)
@inthenow ·
Ahh the joys of teaching, and picking up some tidbits along the way. LoL :D



---

<center><sub>Posted via [pimp.media](https://pimp.media/@inthenow/r79qx5)</sub></center>
properties (22)
authorinthenow
permlinkr79qx5
categoryhive-131257
json_metadata{"tags":["pimp"],"app":"pimptoken/0.1","canonical_url":"https://pimp.media/@inthenow/r79qx5"}
created2022-02-14 00:34:18
last_update2022-02-14 00:34:18
depth1
children0
last_payout2022-02-21 00:34:18
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_length172
author_reputation90,465,062,318,449
root_title"Code.org - teaching students computer science"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id110,439,968
net_rshares0
@jamesdean88 · (edited)
Nice post. Thank you for your help, computer science does not come easily to me, I prefer humanities, so sometimes I have problems with computer science homework. In this case, I found a site https://getcodinghelp.com/do-my-computer-science-assignment where they help with trained cs homework assignments, now I have a problem with this, but the professionals will help in solving it
properties (22)
authorjamesdean88
permlinkre-wwwiebe-20221114t007450z
categoryhive-131257
json_metadata{"tags":["proofofbrain","marlians","neoxian","palnet","cent","archon","vyb","pimp","creativecoin"],"app":"ecency/3.0.28-vision","format":"markdown+html"}
created2022-11-13 22:00:06
last_update2022-11-13 23:38:48
depth1
children0
last_payout2022-11-20 22:00:06
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_length384
author_reputation3,845,671,644
root_title"Code.org - teaching students computer science"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id118,311,696
net_rshares0
@prydefoltz ·
My son and I work on this too but on a lower setting. Super fun. I know now who I can come to if I have questions:)
properties (22)
authorprydefoltz
permlinkre-wwwiebe-r79k1l
categoryhive-131257
json_metadata{"tags":["hive-131257"],"app":"peakd/2022.01.2"}
created2022-02-13 22:05:45
last_update2022-02-13 22:05:45
depth1
children1
last_payout2022-02-20 22:05:45
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_length115
author_reputation356,671,340,683,482
root_title"Code.org - teaching students computer science"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id110,436,492
net_rshares0
@wwwiebe ·
$0.04
Oh yes, absolutely! It really is a neat application. I won't call myself an expert - yet - but certainly happy to help! 😃
👍  
properties (23)
authorwwwiebe
permlinkre-prydefoltz-r7danz
categoryhive-131257
json_metadata{"tags":["hive-131257"],"app":"peakd/2022.01.2"}
created2022-02-15 22:33:36
last_update2022-02-15 22:33:36
depth2
children0
last_payout2022-02-22 22:33:36
cashout_time1969-12-31 23:59:59
total_payout_value0.019 HBD
curator_payout_value0.019 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length121
author_reputation344,170,916,911,802
root_title"Code.org - teaching students computer science"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id110,504,926
net_rshares32,997,871,046
author_curate_reward""
vote details (1)