Giter Site home page Giter Site logo

cherry-soda's People

Contributors

drinking-code avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

cherry-soda's Issues

Roadmap

Tracking plans for cherry-cola.

Stability & Flexibility

Cherry-cola has to become stable with all the current features.

  • Dynamic code synchronisation (DOM)
    • Text content
    • Attributes
    • Element types
    • Wrapping / unwrapping elements (moving the other elements horizontally)
    • Appending / prepending elements (moving the other elements vertically)
  • Stable client side element finder (DOM tracking) [low priority]
  • Assigning multiple elements to a single ref [testing]
  • Lexical scope extraction as a function, give file and target position, and (target) function with lexical scope is extracted and bundled
    • For doSomething() callbacks
    • For state .use() callbacks
  • Complete document elements (html (?), head, body) components
  • Full CLI (dev, build, start)

Performance

  • Leverage Bun's APIs (instead of relying on the polyfills)
  • Analyse and optimise compiler timeline and communication between different components of the compiler
  • Optimise the style plugin for imports to compile css (and scss, sass) module names without using sass
  • Test for rendering performance
  • Focus on page load (perceived) performance

Features

  • Deferring sideEffect() results
  • Routing (and location, response codes)
  • CSS splitting and deferring
  • Islands
    • Island priority
    • Scrollable islands (infinite scrolling with predefined content)
  • Component / module lazy loading (code splitting)
  • Images
    • Image component (automatic responsive images)
    • Image generation (favicon, thumbnails / rich link image)
  • Static site generation
  • Tool for analysing site load performance
  • Full client site automatic app version manager
  • Boilerplate generator

Design deficiency with rapidly changing states

A state listener like this

doSomething((myElement, [myState, setMyState]) => {
    const mouseOverHandler = e => {
        setMyState(/* some always changing value */)
    }
    myElement.addEventListener('mouseover', mouseOverHandler)
    return () => {
        myElement.removeEventListener('mouseover', mouseOverHandler)
    }
}, [myElement, myState])

is constantly being re-called, even though it does not have to be. Requiring the state in the statesAndRefs array (to use the setState function) does not imply the usage of the state's value.
Providing the option to use a setState without listening to state changes will drastically improve performance.

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.