Giter VIP home page Giter VIP logo

Comments (7)

macMikey avatar macMikey commented on August 15, 2024

especially because we can embed objects in other objects after the fact, the main thing we're missing will be access to being able to call the functions within the objects.
we have some potential issues w/ inheritence b/c tokens will expire and need to be redone for everyone
i guess we could have a google session class and then have the spreadsheets inherit from that. obviously sheets would inherit spreadsheets.
then we have to work out the calls - now we are instantiating them in effectively reverse order.

from 4d-google-workspace.

macMikey avatar macMikey commented on August 15, 2024

in this context, unlike merggoole, it seems like there isn't any point to trying to keep the sheets separate.
then again, there was a regex for getting a sheet id.

from 4d-google-workspace.

macMikey avatar macMikey commented on August 15, 2024

maybe another way to do this would be:

  1. generate a comms object
  2. sheet extends that object
  3. sheet does its thing
  4. parent (that owns comms and sheet) checks to see if comms expired and if so updates parent comms and any other child objects

from 4d-google-workspace.

macMikey avatar macMikey commented on August 15, 2024

passing a pointer to update comms might help

from 4d-google-workspace.

macMikey avatar macMikey commented on August 15, 2024
  1. create comms object
  2. create spreadsheet, passing pointer to comms
  3. spreadsheet calls header function using pointer to comms data
  4. if comms data is old, pointer is used to update comms data
    this gets us around not being able to use a pointer to the comms functions but having access to the comms data via a pointer.

from 4d-google-workspace.

macMikey avatar macMikey commented on August 15, 2024

Solution?

per vdl and KM conversation:

It seems that we should maybe do the following:

  • comms - does the comms, doesn't really have any initialization, should probably be all functions
  • auth - extends comms and does the auth and headers
  • spreadsheets - extends comms and manages the spreadsheet data

since comms doesn't have any properties, by extending it we don't need to do anything else per se
We then pass the auth object to every spreadsheet object, and we can then refer to the auth properties because the object is a pointer.
The comms functions are automagically incorporated by reference, like a submodule, and thus we just call the functions
When we need auth, we just use the auth properties, which are incorporated.

from 4d-google-workspace.

macMikey avatar macMikey commented on August 15, 2024

v. 0.0.0.4
0b24a99

from 4d-google-workspace.

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.