Pleasant programming playground paves popular Python path

Shrew'd thinking: Code Shrew helps peeps who want to, or need to, gobble a slice of Py

To help aspiring programmers start writing code, researchers from the Georgia Institute of Technology in the US have developed a free web-based platform called Code Shrew.

The site – built with Django (Python 3), PostgreSQL, the Skulpt in-browser Python interpreter and the JavaScript-based CodeMirror editor widget – relies on a Python-based syntax to teach basic object-oriented programming concepts using drawing and animation.

Python is among the world's most popular programming languages, thanks in part to its utility for data science and AI-oriented disciplines. The creators of the site hope that the lessons learned through Code Shrew will help students whether they pursue Python or some similar language.

"The programming course consists of lessons that cover essential programming principles, as well as challenges to test users' skills as they progress through the course," explain Ludwik Trammer and Jamie Dunn from the Georgia Institute of Technology, in a paper describing the project. "Both the lessons and challenges take advantage of the editor's instant feedback, allowing for a focus on learning-by-doing."

Creative thinking

Trammer and Dunn say Code Shrew was inspired by a learning theory advocated by Seymour Papert and Idit Harel called constructionism, which holds that people learn best by creating things. Unlike online courses that require students to follow a series of specific steps, Code Shrew lessons don't make many demands on how the student should progress.

"We want students to develop their own personal, unique creations," the pair state in their paper. "They shouldn’t be forced to follow predesigned paths."

Short videos provide an overview of specific concepts. And the interactive editor provides a way to test how code changes affect screen output. What helps make this approach work is that feedback is basically instantaneous. Where other online code editors generally require the user to click a button to run code, Code Shrew continually looks for changes made to the code input area on the left-hand side of the page. The results show up almost immediately in the graphics display area on the right-hand side of the page.

The syntax for basic operations like variable assignment, looping, conditional statements, and interacting with data structures comes from Python, but Code Shrew isn't feature-complete Python. It doesn't implement advanced concepts like Lambda Expressions, for example.

Still, that's for the best in the context of beginning programmers. Educators don't want prospective students to wind up in Python dependency hell or some similar state of frustration arising from installation missteps.

Registration for Code Shrew is not required to use most of the site's content, but it is supported so users can share their creations. Students can create profiles, share their code and remix code created by others. Instead of a "Like" button, there's a "Love" button. ®

Broader topics

Other stories you might like

  • TypeScript joins 5 most used languages in 2022 lineup
    Stackoverflow survey: JavaScript still in lead. Plus, you may hate COBOL, but users saw a salary jump

    The annual Stackoverflow survey is here and while JavaScript continues to rule the roost, TypeScript has edged past Java to make it into the top five most commonly used programming languages.

    Microsoft's superset of JavaScript has been slowly creeping up the rankings: it was seventh most used in 2021, up from ninth place in 2020, and languished in 12th in 2018. In the latest study it was fifth.

    Interestingly, despite TypeScript's popularity in the usage stakes, affection for the technology dropped. Rust continued its run as the most loved language (87 percent of developers wanted to continue using it) but TypeScript slipped from third to fourth in the fondness stakes as Elixir leapt into second place from fourth in 2021.

    Continue reading
  • Indian developer educator Scaler moves to America with $11k online courses
    MOOC dropouts, boot camp avoiders, and college-averse students sought

    Developers in the US with $11,000 to spend, three spare nights a week, and a desire to level up to become an engineering manager or architect have a new education provider to consider: Indian company Scaler, which has made America its first overseas destination.

    Scaler has already seen 18,000 students graduate from its courses, which deliver three two-and-a-half-hour lectures a week. The entire course takes between six and nine months to complete.

    The company told The Register its instructors are former employees of major technology firms, and its curriculum focuses on both high-level system design and lower-level coding concerns so that students emerge with the skills needed to devise and manage projects. Soft skills and career development are also taught during the program.

    Continue reading
  • Wordle recreated in Pascal for the Multics operating system
    Why? I had motivation problems and wanted to kill a few hours, says dev

    Though the Wordle fad appears to be fading, engineers continue to find new and exciting places to port the game. Today we present a version using Pascal on Multics.

    For those either not of a certain age, or unaware of historical operating systems, Multics (Multiplexed Information and Computing Service) dates back more than half a century (development of the OS began in the 1960s) and is a time-sharing operating system.

    It is an undeniably neat system, with a modular architecture supporting both scalability and high availability. Resources could be added while the service was running, and security was front and center with innovations such as file level access controls.

    Continue reading

Biting the hand that feeds IT © 1998–2022