Giter Site home page Giter Site logo

vatarn / spreadsheet Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 4 KB

This project presents a Functional Programming Spreadsheet, a web-based spreadsheet application that interprets and evaluates formulas using functional programming principles. It's developed using JavaScript and HTML, offering a dynamic and responsive user interface for complex calculations and data manipulation.

HTML 8.07% JavaScript 86.66% CSS 5.27%

spreadsheet's Introduction

Functional Programming Spreadsheet

Overview

This project presents a Functional Programming Spreadsheet, a web-based spreadsheet application that interprets and evaluates formulas using functional programming principles. It's developed using JavaScript and HTML, offering a dynamic and responsive user interface for complex calculations and data manipulation.

Features

  • Dynamic Spreadsheet Grid: A grid system labeled with letters and numbers, similar to traditional spreadsheet applications.
  • Formula Evaluation: Advanced formula evaluation capabilities, including arithmetic operations, range functions, and custom spreadsheet functions.
  • Custom Functions: A set of pre-defined functions like sum, average, median, and more, catering to various data processing needs.
  • Range Selection and Processing: Ability to process cell ranges (e.g., A1:B2) for operations like sum or average.
  • Cell Reference Resolution: Evaluates formulas containing references to other cells, updating values dynamically.

How it Works

  1. Grid Initialization: Upon loading, the spreadsheet dynamically generates a grid of cells labeled according to rows and columns.
  2. Entering Formulas: Users can input formulas in the cells. These formulas can include arithmetic operations, references to other cells, or calls to custom spreadsheet functions.
  3. Formula Parsing and Evaluation: The application parses and evaluates the input formulas, resolving cell references and function calls.
  4. Update Mechanism: The update function triggers re-evaluation of formulas when cell values change, ensuring data consistency across the spreadsheet.

Technical Details

  • Functional Programming Approach: The application is built using functional programming paradigms in JavaScript, ensuring a clean and efficient codebase.
  • Custom Formula Evaluation: Implements a formula evaluation engine that processes string inputs and calculates results based on custom rules.
  • Spreadsheet Functions: A collection of functions like sum, average, median, etc., are defined to perform common spreadsheet operations.
  • Recursive Formula Resolution: The application can handle complex nested formulas and cell references, thanks to its recursive evaluation mechanism.

Installation and Usage

Simply clone the repository and open the HTML file in a browser. No additional installation is required. Input formulas into the cells to perform calculations and see the results in real-time.

Contributing

Contributions are welcome, especially in expanding the range of functions, improving the UI, or enhancing the formula evaluation engine.

spreadsheet's People

Contributors

vatarn avatar

Watchers

 avatar

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.