Git Product home page Git Product logo

Comments (4)

gorn avatar gorn commented on August 9, 2024

I will try to read through this, thanks for inspiration. Do you have any particular favorites in this API. Just write some pseudocode of gist how you would imagine that it works.

from rspreadsheet.

gorn avatar gorn commented on August 9, 2024

Ok, I did put some list of possible inpiraion to https://github.com/gorn/rspreadsheet/blob/master/DEVEL_BLOG.md (scroll down to possible ideas from Google Spreadsheet API (issue #9)).

There might be some things, but it really feels very non-ruby. Did you mean to reuse API as it is or, convert it to ruby style. For example in GS API they use something like

@sheet = @workbook.worksheets(1)
@workbook.delete_sheet(@sheet)

but I much prefer more ruby way like

@sheet = @workbook.worksheets(1)
@sheet.delete

Was your intention to introduce alternative "JavaScript" like syntax, or use more rubyway?

from rspreadsheet.

zekefast avatar zekefast commented on August 9, 2024

@gorn I have not check all your ideas document completely, but definitely you do not need to make a direct copy of the Google Spreadsheet to you library, because at first Google Spreadsheet API was created for JavaScript and at second they have slightly different context of manipulation (here I mean that they manipulate with SpreadsheetApp and you rather with documents).

Also I like that you document is a separate object (i am talking about instance of ::Rspreadsheet::Workbook now). That allows to create it in one place and send to another to fill with data which is greatly improve ability to test document generation code! So really would like that you leave that ability.

I really do not like libraries where all functionality combined in top level module or class and you can not have second instance of it as everything belongs to class (unless you apply ruby magic, but that is not a good approach to deal with things anyway!).

In particular in Google Spreadsheet API I liked specific method to manipulate formulas, alignment and other styles. Also a range idea, because it refer to UI experience where you select cells and apply to them common styles.

I shall check your ideas list and let you know! Thank you for your work!

from rspreadsheet.

gorn avatar gorn commented on August 9, 2024

@zekefast any thoughts on this? Have you looked at the ideas. What do you think?

from rspreadsheet.

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.