Comments (4)
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.
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.
@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.
@zekefast any thoughts on this? Have you looked at the ideas. What do you think?
from rspreadsheet.
Related Issues (20)
- currency field HOT 2
- libxml-ruby dependency not identified by `gem install` on Alpine and Void Linux HOT 5
- FODS support HOT 7
- Setting background color get more cells colorized HOT 13
- Tests failing for ruby >= 2.4.6 HOT 1
- Cells table:covered-table-cell ignored.
- Repeated header rows (contained in table:table-header-rows) are ignored.
- method mispelled: Rspreadsheet::Row#lenght should be #length HOT 1
- Existing formulas do not calculate fields set by rspreadsheet HOT 9
- libxml gem not installed automatically on windows HOT 9
- Header rows are not respected HOT 1
- Rubyzip 1.3.0 and 2.0.0
- rewriting cell addresses in formulas when inserting rows / cells HOT 1
- Size does not ignore formatted cells without content HOT 9
- Randomly crash HOT 1
- Bundler doesn't detect libxml-ruby as a transitive dependency on macOS
- Can we open password protected file HOT 1
- Uncaught exception: cannot load such file -- libxml_ruby even if it's installed. HOT 2
- Problem writing cell with a drop-down list
- Unclear how to set cell number format for date etc.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rspreadsheet.