Skip to main content

New top story on Hacker News: Show HN: Beta test Execute Program's interactive "Python for Programmers" course

Show HN: Beta test Execute Program's interactive "Python for Programmers" course
20 by gary_bernhardt | 4 comments on Hacker News.
I'm Gary Bernhardt, founder of Execute Program, an interactive platform for learning programming languages and other programming tools. Our "Python for Programmers" course is in a free open beta for the next week or so. We don't normally do open betas, but the infrastructure behind this course is new and very complex, so we want to stress test it. https://ift.tt/rFbvOek... Today, "Python for Programmers" contains 581 interactive code examples covering the core language. It's aimed at established programmers, not beginners. We don't explain basic language features like `while`, but we do show them briefly and note anything special about how they work in Python. We pay special attention to foot guns. For example, we have an entire lesson about Python's mutable default argument foot gun. This is the first of two courses, with the second coming in 2024. For this course, we drew the line at __dunder__ methods: if a topic requires a dunder method other than `__init__`, then it'll be in the follow-up course. This beta is concurrent with the tail end of our editing process, so you may see the course grow by another 17 lessons (214 code examples) during the beta. Some details about how the course works internally, and why we need a beta at all: First, all Python code in the course runs in your browser via Pyodide. (Reality continues to look more and more like my PyCon 2014 talk [1].) You'll feel a pause when the first code example runs, as your browser loads and boots CPython (around 12 MB). After that, it should be as responsive as a local app. Second, if you look at the course page, you'll see that it's structured as a DAG, similar to a "tech tree" in Civilization, Age of Empires, Stellaris, Satisfactory, etc. (Some of those games have true trees, but some of their "trees" are actually DAGs like ours.) You make progress through the course by traversing one graph edge at a time. Our courses have always been structured as graphs internally, but the raw graphs are simply unreadable due to the number of edges [2]. This year, I taught Execute Program to simplify its own course graphs by breaking them into the level subgraphs that you see on the page, so we can finally render them. It automatically turns the mess that I linked above into the clean graphs that you see in the course. The graph for this course is currently a bit dull, but it'll fill out as we finish editing the remaining lessons. I like Everyday TypeScript's graph [3] the best. Please try the course and use the "Give Feedback" entry in the menu to tell us what you think! I'll also stick around in this thread today. [1] https://ift.tt/Tvkep4U... [2] https://ift.tt/7lfOhCZ... [3] https://ift.tt/lUWfPCY

Comments

Popular posts from this blog

New top story on Hacker News: Tell HN: I think I found Toyota's battery

Tell HN: I think I found Toyota's battery 173 by scythe | 29 comments on Hacker News. Recently there was a thread about a "breakthrough" in battery technology at Toyota. https://ift.tt/nUtv4yY Toyota has been putting out PR puff pieces about their "solid-state" (solid-electrolyte) batteries for years, but this story was unique in that it had a quote from Keiji Kaita, who holds some high-level role at Toyota. Anyway, I didn't think much of it, because there was no paper referenced in the Guardian article, which seemed to be the original source. But while reading about something else, I came across the paper "A near dimensionally invariable high-capacity positive electrode material", published in Nature Materials last December: https://ift.tt/24ZXPy5 This paper, reporting a cathode that has very little (much less than normal) change in size or shape when charged and discharged, claims reversible storage with a solid electrolyte. It stands to reaso...

New top story on Hacker News: Show HN: Neucards – Privacy based digital contact card

Show HN: Neucards – Privacy based digital contact card 7 by bdominy | 1 comments on Hacker News. Neucards is an end-to-end encrypted contact information sharing and updating iOS app that protects your identity while letting you keep in touch with people. I started working on neucards as a side project more than ten years ago, and I decided three years ago to go full-time and try to build a community around it. There are two major problems that neucards addresses. First, most people end up with contact lists that are hopelessly out of date. Over time, people move, change jobs, or add social profiles and unless they tell you, chances are you could lose touch. Second, your contact information ends up in the wrong hands. There has been a huge increase in robocalls, unsolicited emails, data breaches, and online scams that is driven by accessing a person's contact info. Even worse, with AI now being able to imitate a person's voice or other mannerisms, knowledge about the connecti...