Later on in the game, you pick up an item that lets you edit event-handler methods. You can't change everything about them, but you can change some aspects. To get past some traps, you must disable the code that makes them work. This makes for some fun puzzles. You can't just delete the contents of the traps' event handlers. But sometimes you can change the functions they call: turn a game-ending crash into a harmless print; change an if greater than to if less than to confuse things. For any given puzzle, there's probably more than one way past it; as you monkey with the code and see how the game reacts, the solution you find depends on which part of the code you monkeyed with first.
The game is on Steam. In its community section on Steam there's also a nice walkthrough, so you won't get stuck, even if you *blush* have trouble spotting portals at the top of the screen. Fun game. Check it out.