Coder Social home page Coder Social logo

Full Proper Logging about pedal HOT 1 OPEN

acbart avatar acbart commented on September 27, 2024
Full Proper Logging

from pedal.

Comments (1)

acbart avatar acbart commented on September 27, 2024

This dovetails with error handling. What kind of errors do we have in Pedal?

  • Student code errors are things that should be transformed into feedback. Student errors should never stop the ICS.
  • System errors are bad and should probably give a productive error message.
  • Instructor Control Script errors are also bad and should probably give a productive error message.

The latter two kinds of errors should be raised, that seems clear enough. And I guess logged? Or one of the other? I need to think a bit more about what this should look like exactly. Can we think of some cases of actual errors?

It's confusing because usually catchable exceptions are because you know the user can get things into an invalid state. But what situations in Pedal allow the instructor to get things into a bad state? Let's think about each tool:

  • TIFA: This has no configuration, so that's not very exciting. It can have errors in some places, I guess, but those are things to fix in the code rather than to just raise as errors, aren't they?
  • Sandbox: Perhaps if you set up an input wrong?
  • Assertions: Ah, yes, here's something where the user can make many mistakes regarding the values, right? They could pass in something that doesn't work in a context? But shouldn't we do type changes until something works? It's simpler for some of the cases where an invalid value is more likely, I suppose (e.g., didn't pass in a valid node name to prevent_ast).

So many of Pedal's tools are unconditional executions. You just call them and let them work. That's a tricky part of all this.

from pedal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.