googblogs.com

All Google blogs and Press in one site

Skip to content
  • Home
  • Categories
    • Google Ads Developer Blog
    • Google Africa Blog
    • AdWords Agency Blog
    • Android Blog
    • Android Developers Blog
    • Australia Blog
    • Blogger Buzz
    • Consumer Packaged Goods Blog
    • Custom Search Blog
    • DoubleClick Advertiser Blog

Teaching kids to program in their native language


Today we introduce two programs to help kids program in their native language — clojure-turtle and clj-thamil. Both are written in Clojure, a dialect of Lisp that runs on the Java Virtual Machine. What makes Clojure unique is its simple design which can help make the path for kids to learn programming easier.

clojure-turtle: a bridge between logo beginners and lisp experts

For some beginners, the Clojure learning curve has been steep in the area of functions and functional programming. Many students learning to program prefer to start instead with Logo, a dialect of Lisp that is used in Scratch and teaching efforts such as code.org. We designed clojure-turtle with this in mind.

The clojure-turtle project was created to bridge the gap between the people using Lisp at opposite ends of the spectrum. It’s for those learning to program for the first time and those with “real-world concerns” who write macros. The project implements Logo in Clojure, and remains faithful to the basics of Logo —(forward 10),  (right 90), etc.  But the door is left open for you to blur the lines of Logo/Clojure, beginner/FP, etc.:

(defn square-by-length
 [side-length]
 (repeat 4 (all (forward side-length) (right 90))))

(defn mirrored [f]
 (fn [& args]
   (repeat 2 (all (apply f args) (right 180)))))

(def lengths [40 50 60])
(map (mirrored square-by-length) lengths)
clojure-turtle2.png
One place where the Logo in Clojure approach of clojure-turtle has already proven successful is in ClojureBridge, a workshop for beginners aimed at increasing the number of people from underrepresented minority groups within the Clojure community. The section on teaching functions had been challenging for students previously, but students now learning through the Logo-based approach move past it with ease onto higher level concepts.

clj-thamil: programming in your native language

When I originally set out to create a library for processing for the Thamil language, I stumbled upon the realization that I could also program in the Thamil language. Functions are first-class data, which can be assigned to new names. But macros are what enable me to “translate” the rest of Clojure from English to Thamil, doing so in the form of a library, without having to modify the compiler, and in a manner that is generic for any language to use. Now, a function to pluralize a word in Thamil can be itself written in Thamil. In my Clojure/West talk on clj-thamil, I talked about the potential impact on increasing diversity among programmers, especially when we consider the number of people globally who do not have access to a (good) English education that is an implicit prerequisite for learning to program.

Putting the two together: learning Logo in your native language

The approach of clj-thamil is flexible and powerful enough that we can “translate” any code, not just the core of Clojure. So why not translate clojure-turtle in less than 30 lines of code? Here is a video demonstrating the use of Logo in the Thamil language:


The simple concepts of Logo soften the learning curve for programming and can make it fun for all ages! The simplicity of Clojure gives it a power that you can use to shape the program to your will — students can write all their code in a non-English language if they want. The combination of simple concepts can make it  possible to teach programming to kids around the world who do not speak English. I hope that clojure-turtle and clj-thamil can be used to improve literacy and diversity for students learning to code.

Visit the clojure-turtle Github page and the clj-thamil Github page to learn more, sign up for the mailing lists and contribute patches for features.

By Elango Cheran, Software Engineering

Source: Google Open Source Blog


This entry was posted in Open Source Blog and tagged clojure, lisp, logo, Open source, students on March 4, 2016 by Open Source Programs Office.

Post navigation

← Why are my earnings down right now? Introducing Analytics for Google Cast Applications →

Recent Comments

    Archives

    • May 2025
    • April 2025
    • March 2025
    • February 2025
    • January 2025
    • December 2024
    • November 2024
    • October 2024
    • September 2024
    • August 2024
    • July 2024
    • June 2024
    • May 2024
    • April 2024
    • March 2024
    • February 2024
    • January 2024
    • December 2023
    • November 2023
    • October 2023
    • September 2023
    • August 2023
    • July 2023
    • June 2023
    • May 2023
    • April 2023
    • March 2023
    • February 2023
    • January 2023
    • December 2022
    • November 2022
    • October 2022
    • September 2022
    • August 2022
    • July 2022
    • June 2022
    • May 2022
    • April 2022
    • March 2022
    • February 2022
    • January 2022
    • December 2021
    • November 2021
    • October 2021
    • September 2021
    • August 2021
    • July 2021
    • June 2021
    • May 2021
    • April 2021
    • March 2021
    • February 2021
    • January 2021
    • December 2020
    • November 2020
    • October 2020
    • September 2020
    • August 2020
    • July 2020
    • June 2020
    • May 2020
    • April 2020
    • March 2020
    • February 2020
    • January 2020
    • December 2019
    • November 2019
    • October 2019
    • September 2019
    • August 2019
    • July 2019
    • June 2019
    • May 2019
    • April 2019
    • March 2019
    • February 2019
    • January 2019
    • December 2018
    • November 2018
    • October 2018
    • September 2018
    • August 2018
    • July 2018
    • June 2018
    • May 2018
    • April 2018
    • March 2018
    • February 2018
    • January 2018
    • December 2017
    • November 2017
    • October 2017
    • September 2017
    • August 2017
    • July 2017
    • June 2017
    • May 2017
    • April 2017
    • March 2017
    • February 2017
    • January 2017
    • December 2016
    • November 2016
    • October 2016
    • September 2016
    • August 2016
    • July 2016
    • June 2016
    • May 2016
    • April 2016
    • March 2016
    • February 2016
    • January 2016
    • December 2015
    • November 2015
    • October 2015
    • September 2015
    • August 2015
    • July 2015
    • June 2015
    • May 2015
    • April 2015
    • March 2015
    • February 2015
    • January 2015
    • December 2014
    • November 2014
    • October 2014
    • September 2014
    • August 2014
    • July 2014
    • June 2014
    • May 2014
    • April 2014
    • March 2014
    • February 2014
    • January 2014
    • December 2013
    • November 2013
    • October 2013
    • September 2013
    • August 2013
    • July 2013
    • June 2013
    • May 2013
    • April 2013
    • March 2013
    • February 2013
    • January 2013
    • December 2012
    • November 2012
    • October 2012
    • September 2012
    • August 2012
    • July 2012
    • June 2012
    • May 2012
    • April 2012
    • March 2012
    • February 2012
    • January 2012
    • December 2011
    • November 2011
    • October 2011
    • September 2011
    • August 2011
    • July 2011
    • June 2011
    • April 2011
    • March 2011
    • February 2011
    • March 2010
    • January 2010
    • December 2009
    • November 2009
    • October 2009
    • September 2009

    Categories

    • AdMob Blog
    • Ads Developer Blog
    • AdWords Agency Blog
    • Android Blog
    • Android Developers Blog
    • Apps Feed Blog
    • Artificial Intelligence
    • Australia Blog
    • Blogger Buzz
    • Consumer Packaged Goods Blog
    • Custom Search Blog
    • Data Liberation Blog
    • DoubleClick Advertiser Blog
    • DoubleClick Publishers Blog
    • DoubleClick Search Blog
    • Geo Developers Blog
    • Google Ads Developer Blog
    • Google Africa Blog
    • Google Analytics Blog
    • Google and Your Business
    • Google Apps Developer Blog
    • Google Canada Blog
    • Google Chrome Blog
    • Google Chrome Releases
    • Google Cloud Platform Blog
    • Google Commerce Blog
    • Google Developers Blog
    • Google Drive Blog
    • Google Europe Blog
    • Google Fiber
    • Google for Education Blog
    • Google for Nonprofits
    • Google for Work Blog
    • Google Green Blog
    • Google India Blog
    • Google LatLong Blog
    • Google New Zealand Blog
    • Google News Blog
    • Google Scholar Blog
    • Google Testing Blog
    • Google Translate Blog
    • Google Travel Blog
    • Google Web Fonts Blog
    • Google Webmaster Central Blog
    • Inside AdSense
    • Inside AdWords
    • Inside Search Blog
    • Official Gmail Blog
    • Official Google Blog
    • Online Security Blog
    • Open Source Blog
    • Politics & Elections Blog
    • Public Policy Blog
    • Research Blog
    • Student Blog
    • Uncategorized
    • YouTube Blog
    • YouTube Blog – Australia
    • YouTube Blog – U.K.
    • YouTube Blogs
    • YouTube Creators
    • YouTube Creators – UK
    • YouTube Engineering and Developers Blog
    Proudly powered by WordPress