Grilled Cheese

ExploreLog inSign up
Terms of UsePrivacy PolicyCommunity StandardsHelpGet the app

Grilled Cheese is a product of Village Compute

Version devBuilt at: 2026-10-16 08:00:47 EDT

PhotosVideosAllPeople
LatestRanked
@bterwijn.bsky.socialOct 14, 2026, 10:33 AM

How well do you know NumPy? ๐Ÿ”ข

- Whatโ€™s the difference between '*' and '@'?
- When does slicing create a view, and when a copy?
- How does broadcasting work?

This ๐—บ๐—ฒ๐—บ๐—ผ๐—ฟ๐˜†_๐—ด๐—ฟ๐—ฎ๐—ฝ๐—ต example walks through all essential NumPy operations: ๐Ÿ‘‰ memory-graph.com#micropip=num...

#PythonDev #memory_graph #NumPy

@bterwijn.bsky.socialOct 7, 2026, 3:02 PM

An exercise to help build the right mental model for Python data.
- Solution: memory-graph.com#codeurl=http...
- Explanation: github.com/bterwijn/mem...

#PythonDev #memory_graph #Mutability #LocalVariables

Photo, no description
@bterwijn.bsky.socialOct 2, 2026, 3:02 PM

Solving SUDOKU

Repeatedly clicking (or holding) the green "Continue" button solves each Sudoku puzzle in the Memory Graph Web Debugger: memory-graph.com#codeurl=http...
- easy
- medium, from Gordon Royleโ€™s collection
- hard, "Everest" by Arto Inkala

#PythonDev #memory_graph #Sudoku #SudokuSolver

Photo, no description
@bterwijn.bsky.socialSep 28, 2026, 10:45 AM

An exercise to help build the right mental model for Python data.
- Solution: memory-graph.com#codeurl=http...
- Explanation: github.com/bterwijn/mem...
- More exercises: bsky.app/profile/bter...

#PythonDev #memory_graph #Mutability

Photo, no description
@bterwijn.bsky.socialSep 27, 2026, 11:47 AM

๐ŸŒณ Recursive tree traversal in Python visually explained:
memory-graph.com#codeurl=http...

A binary tree can be traversed in three classic ways:
๐Ÿ”น ๐—ฃ๐—ฟ๐—ฒ๐—ผ๐—ฟ๐—ฑ๐—ฒ๐—ฟ: current, left, right
๐Ÿ”น ๐—œ๐—ป๐—ผ๐—ฟ๐—ฑ๐—ฒ๐—ฟ: left, current, right
๐Ÿ”น ๐—ฃ๐—ผ๐˜€๐˜๐—ผ๐—ฟ๐—ฑ๐—ฒ๐—ฟ: left, right, current

#Python #memory_graph #Recursion #BinaryTree

@bterwijn.bsky.socialSep 25, 2026, 10:49 AM

A ๐ก๐š๐ซ๐ exercise to help build the right mental model for Python data.
- Solution: memory-graph.com#codeurl=http...
- Explanation: github.com/bterwijn/mem...

#PythonDev #memory_graph #ShallowCopy

Photo, no description
@bterwijn.bsky.socialSep 25, 2026, 9:32 AM

๐ŸŒณ Trie demo: memory-graph.com#codeurl=http...

A trie is a tree-shaped data structure that can be implemented elegantly in Python using nested dictionaries (hash tables).

Tries are often used for:
- Autocomplete
- Prefix search
- Sequence matching

#PythonDev #memory_graph #DataStructures #Trie

@bterwijn.bsky.socialSep 23, 2026, 4:40 PM

An exercise to help build the right mental model for Python data.
- Solution: memory-graph.com#codeurl=http...
- Explanation: github.com/bterwijn/mem...

#PythonDev #memory_graph #ShallowCopy

Photo, no description
@bterwijn.bsky.socialSep 22, 2026, 3:08 PM

How does ๐—Ÿ๐—ฎ๐˜‡๐˜† ๐—˜๐˜ƒ๐—ฎ๐—น๐˜‚๐—ฎ๐˜๐—ถ๐—ผ๐—ป work in Python?

In this example: memory-graph.com#codeurl=http...
we show a sink reading from different sources, some eager some lazy, using the Iterator Protocol, where ๐ฆ๐ž๐ฆ๐จ๐ซ๐ฒ_๐ ๐ซ๐š๐ฉ๐ก shows what's really going on.

#PythonDev #memory_graph #LazyEvaluation #IteratorProtocol

@bterwijn.bsky.socialSep 22, 2026, 1:16 AM

โ“๏ธ Your functions work, but you want to add logging. Do you edit each function?

๐ŸŽฏ Decorators help: wrap a function, add logic before and after each call.

๐Ÿ”Ž We use '@log_call' to log each call with arguments and return value: memory-graph.com#codeurl=http...

#PythonDev #memory_graph #Decorators

@bterwijn.bsky.socialSep 20, 2026, 3:05 AM

An exercise to help build the right mental model for Python data.
- Solution: memory-graph.com#codeurl=http...
- Explanation: github.com/bterwijn/mem...

#PythonDev #memory_graph #ShallowCopy

Photo, no description
@bterwijn.bsky.socialSep 17, 2026, 8:59 PM

How do we turn, say โ‚ฌ24.72, into coins? ๐Ÿช™๐Ÿช™๐Ÿ’ฐโ›€โ›

In this classic beginner-friendly exercise ๐ฆ๐ž๐ฆ๐จ๐ซ๐ฒ_๐ ๐ซ๐š๐ฉ๐ก visualizes what happens step-by-step at execution for easy understanding and debugging.

Run the demo: memory-graph.com#codeurl=http...

#PythonDev #memory_graph

Photo, no description
@bterwijn.bsky.socialSep 17, 2026, 10:13 AM

How do Python for-loops work?

Using the Iterator Protocol:

๐‘–๐‘ก๐‘’๐‘Ÿ๐‘Ž๐‘ก๐‘œ๐‘Ÿ = ๐‘–๐‘ก๐‘’๐‘Ÿ(๐‘๐‘œ๐‘›๐‘ก๐‘Ž๐‘–๐‘›๐‘’๐‘Ÿ)
๐‘คโ„Ž๐‘–๐‘™๐‘’ ๐‘‡๐‘Ÿ๐‘ข๐‘’:
..๐‘ก๐‘Ÿ๐‘ฆ:
....๐‘ฃ๐‘Ž๐‘™๐‘ข๐‘’ = ๐‘›๐‘’๐‘ฅ๐‘ก(๐‘–๐‘ก๐‘’๐‘Ÿ๐‘Ž๐‘ก๐‘œ๐‘Ÿ)
....๐‘๐‘Ÿ๐‘–๐‘›๐‘ก(๐‘ฃ๐‘Ž๐‘™๐‘ข๐‘’)
..๐‘’๐‘ฅ๐‘๐‘’๐‘๐‘ก ๐‘†๐‘ก๐‘œ๐‘๐ผ๐‘ก๐‘’๐‘Ÿ๐‘Ž๐‘ก๐‘–๐‘œ๐‘›:
....๐‘๐‘Ÿ๐‘’๐‘Ž๐‘˜

A Linked_List example: memory-graph.com#codeurl=http...

#PythonDev #memory_graph #Iterator #IteratorProtocol

@bterwijn.bsky.socialSep 16, 2026, 11:38 PM

An exercise to help build the right mental model for Python data.
- Solution: memory-graph.com#codeurl=http...
- Explanation: github.com/bterwijn/mem...

The Solution link uses ๐—บ๐—ฒ๐—บ๐—ผ๐—ฟ๐˜†_๐—ด๐—ฟ๐—ฎ๐—ฝ๐—ต: github.com/bterwijn/mem...
to visualize code execution.

#PythonDev #memory_graph #ShallowCopy #DeepCopy

Photo, no description
@bterwijn.bsky.socialSep 16, 2026, 11:36 PM

Data Structures in Python get easy when you can see the structure of your data using ๐—บ๐—ฒ๐—บ๐—ผ๐—ฟ๐˜†_๐—ด๐—ฟ๐—ฎ๐—ฝ๐—ต. A Binary Tree example: memory-graph.com#codeurl=http...

VS Code setup: dai.ly/xb2u52e?star...

memory_graph GitHub: github.com/bterwijn/mem...

#PythonDev #memory_graph #DataStructures #BinaryTree

@bterwijn.bsky.socialSep 16, 2026, 11:33 PM

An exercise to help build the right mental model for Python data.
- Solution: memory-graph.com#codeurl=http...
- Explanation: github.com/bterwijn/mem...

The Solution link uses memory_graph: github.com/bterwijn/mem...
to reveal whatโ€™s actually happening.

#PythonDev #memory_graph #Mutability

Photo, no description
@bterwijn.bsky.socialSep 16, 2026, 11:31 PM

Programming courses often focus heavily on understanding code, while paying far less attention to understanding the program state.

Package memory_graph: memory-graph.com#codeurl=http...
visualizes the state for easy program understanding and debugging.

#PythonDev #memory_graph #PythonTeaching