Skip to content
4 min read

Coding and Computational Thinking in a Hong Kong Junior Secondary Class

Teaching computational thinking through unplugged activities before code, so Junior Secondary students learn the reasoning first.

Coding and Computational Thinking in a Hong Kong Junior Secondary Class

Quick answer: Computational thinking is the reasoning skill, breaking a problem into steps, spotting patterns, and building an algorithm, while coding is one way to express that reasoning. Teach the thinking first with unplugged activities, and the coding itself becomes far less intimidating when it finally starts.

What is computational thinking, separate from writing actual code?

Four habits: decomposition, breaking a big problem into smaller ones; pattern recognition, spotting what repeats; abstraction, ignoring irrelevant detail; and algorithm design, writing the steps in order. None of these require a keyboard. A student planning a school event using these four steps is doing computational thinking, even with no computer in sight.

Naming these four habits explicitly, rather than assuming students absorb them by osmosis while coding, gives them a vocabulary to talk about their own problem-solving process.

How do you teach algorithm design before any actual programming?

Unplugged activities work well here: writing precise instructions for making a sandwich, then having a partner follow them literally, exposing every gap and ambiguity in the "algorithm." Students discover fast that "put the peanut butter on the bread" fails when the instructions never said to open the jar first.

The Algorithms and Computational Thinking unit opens with exactly this kind of unplugged, literal-instruction activity before any code is written.

The ready-made version of this lesson

More in Computer Science for Middle School. Every download has a 30-day money-back guarantee.

What's the right moment to move from unplugged activities into actual code?

Once a class can reliably write an unambiguous set of instructions for a simple task, they are ready to see those same instructions expressed as code, because the hard part, precise sequential thinking, is already in place. Moving to code too early, before that habit is solid, means students fight the syntax and the logic problem at the same time.

The Programming with Python unit is built to pick up right at this point, translating already-understood logic into working code rather than teaching logic and syntax together.

How do you handle the wide skill gap between students who code at home and those who don't?

Frame every task around the computational thinking, not the syntax, so a student with home coding experience cannot simply coast on prior knowledge; decomposing a genuinely new problem is a level playing field even for a confident coder. Pair students deliberately so the stronger coder explains their reasoning aloud, which reinforces their own understanding while supporting their partner.

This matters most in the first two weeks of a unit, before confidence gaps calcify into fixed judgements. A student who assumes they are "not a coding person" after one bad early lesson often carries that belief for years, well past the point where the actual skill gap has closed.

How do you differentiate a computational thinking unit?

Approaching: complete unplugged decomposition and pattern-spotting tasks, writing algorithms in plain numbered steps rather than code.

On level: translate a plain-language algorithm into simple code with block-based or basic text syntax, debugging with guided prompts.

Above level: design an original algorithm for a genuinely new problem and implement it in code, then identify a more efficient alternative approach.

What goes wrong when coding is taught without the thinking behind it?

First, students copy example code without understanding the logic, so a slightly different problem leaves them stuck. Second, "computational thinking" becomes a phrase on a slide rather than a practised skill, because every lesson jumps straight to syntax. Third, students who struggle with typing or syntax get marked as struggling with the subject, when the actual gap is unrelated to their reasoning ability.

Frequently asked questions

Do students need prior coding experience for this unit?

No. The unplugged activities are designed for a class with zero prior exposure, building the reasoning skills before any code appears.

Is this tied to a specific Hong Kong computer science syllabus?

These are general computer science teaching resources, not an EDB publication and not vetted by any examination authority. Match the sequence to your own scheme of work.

How long should the unplugged phase last before introducing code?

Two to three lessons is usually enough to establish the four core habits before moving into actual programming syntax.

What if a student already codes fluently at home?

Give them a genuinely novel problem rather than a familiar one, so their advantage is real reasoning ability rather than memorised syntax.

Related posts

Want a ready-to-teach curriculum?Complete, ready-to-use teaching curricula for Middle & High School — structured units, assessments, and more.

All Middle School Curricula →

Teaching High School classes?Complete, ready-to-use teaching curricula for Middle & High School — structured units, assessments, and more.

All High School Curricula →
✏
About the author
The TeachLessons Team
Curriculum Designers & Educators

The TeachLessons team is made up of experienced classroom teachers and curriculum specialists from the US, UK, and Australia. We build complete, ready-to-use teaching resources because we know what it takes to walk into a classroom prepared. Every resource is grounded in real teaching practice, standards-aligned, and designed to make lessons better from day one.

Curriculum DesignK–12 EducationStandards AlignmentClassroom PracticeLearning Design
Common Questions

FAQ about TeachLessons resources

TeachLessons provides K–12 resources. Complete Curriculum packages currently focus on Middle School and High School, while the blog also supports Elementary teachers.

Each package includes lesson plans, worksheets, assessments, rubrics, and teacher notes as print-ready PDFs.

Yes. Resources align with relevant US standards such as Common Core, NGSS, and the NCSS C3 Framework.

Yes. Complete Curriculum packages currently focus on Middle and High School, while our blog supports Elementary teachers with lesson ideas, classroom strategies, cross-curricular activities, free downloads, and Teach-Life-Balance support.

  • Blog articles with practical lesson ideas
  • Free resources via the newsletter
  • Teach-Life-Balance for teachers at every level

The Teach-Life-Balance course is a time-saving programme for Elementary, Middle, and High School teachers. It helps with lesson planning, marking, admin, routines, boundaries, and workload management.

It includes a teacher planner, guides, templates, and practical strategies. Available at teachlessons.us/products/teach-life-balance.

After purchase you receive an instant email with your download link. Files are also stored in your customer account under Orders. Materials are print-ready PDFs for class, projection, or digital use.

Resources are licensed for personal classroom use. You may use them in your own classes. Sharing digital files or uploading them online is not permitted under a single-user licence. School licences are available on request.

Yes. Although primarily aligned to US standards, the lesson structures and subject content work well for UK and Australian classrooms with minor adaptation. The store supports GBP and AUD currency.

Keep reading

You might also like

Discussion

Comments

No comments yet — be the first to share your thoughts!

Leave a comment

Comments are reviewed before being published.

Also join the newsletter?
Get weekly lesson ideas and a free resource pack.

Please fill in all required fields and confirm your consent.

* Required. Email will not be published. Privacy Policy.

✅

Thanks for your comment!

Your comment is being reviewed and will appear here shortly.

Free resource inside

Lesson ideas straight to your inbox.

Join thousands of teachers. Sign up and get a free starter resource pack plus weekly lesson ideas — no fluff, just things that work in real classrooms.

No spam, ever
Unsubscribe any time
GDPR & COPPA compliant

Please fill in all required fields and confirm your consent.

💌

Almost there, !

Check your inbox and click the confirmation link to receive your free pack.

1
Check your inboxA confirmation email from teachlessons.us is on its way.
2
Click the linkConfirm your email to activate your subscription.
3
Receive your free packYour starter resource pack arrives right after confirmation.
No email yet?Check your spam or junk folder and mark us as “Not Spam”. Sender: teachlessons.us