Git Product home page Git Product logo

quack's Introduction

๐Ÿ‘‹ Hi, I'm Andrew

Now Playing...

quack's People

Contributors

arylatt avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

weldrake13

quack's Issues

Introduce a state caching

Currently the duck is not state aware. This means that when a user clicks the duck, there system doesn't know if the duck is quacking at the moment or not.
From an end user point of view this is simply a little confusion when the duck spins besides someone else having turned it off. The issue however is when we want to disable the duck. if the duck gets disabled, whilst on, an human(someone in the office) would be unable to turn it off...

You shuold cache the state so that the system knows if the duck is on or off based on when the program is started. The state could also be updated maybe via API to tell the system that it is currently on or off (incase some weirdness happens).

You could take this one step further, and actiuvely monitor the current between the power and the speaker to see if the duck is on or off at any time.

Quack quack quack quack, quack quack quack quack

Quack quack, quack quack quack quack quack. Quack quack quack quack quack quack quack quack quack quack quack quack quack, quack quack.

Repro Quacks

  • Quack
  • Quack quack quack quack

Expected Quacks
Quack quack quack quack quaaaccccckkkk....

Actual Quacks
Quack quack quack quack quack!

Quacks

2375134_0

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.