Coder Social home page Coder Social logo

nine43's People

Contributors

math2001 avatar

Watchers

 avatar  avatar

nine43's Issues

should net.JSONStream.aclose use stream.send_eof?

I originally implemented net.JSONStream.aclose by just closing the underlying stream because I had forgotten about send_eof, but now I'm not sure what are the benefits of it.

What do I gain by being polite? Less angry error messages? Letting the other one know that we're willingly closing, and not crashing? Could that result in a different behavior from the server? Should net.JSONStream raise a different error?

Monitoring the application

There's this very interesting package called Eliot, that propose a different approach to logging.

For sure, the current way logging works is just very inefficient. Firstly, debug isn't always enabled (and leaving every module's logging level to DEBUG would be a nightmare), and even if it was, it's so painful to look through it, and track on particular thing (concurrency doesn't make things any better).

From what I understand right now, Eliot does it using actions. A program is just a collection of actions, and Eliot monitors them, and record how they behaved. It's seems nicer for debugging and monitoring perfs.

How to test the client

  1. dump surfaces to files, and then compare them.
  2. check states changes as we trigger events in a sandbox (can we do that with pygame? If not, then that means that I'll have to build some annoying abstraction).

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.