GithubHelp home page GithubHelp logo

Comments (7)

Daandelange avatar Daandelange commented on September 10, 2024

Blank would be better IMO and we can use a placeholder saying "myGeniusApp" or something similar

from pgelectron.

ofZach avatar ofZach commented on September 10, 2024

I'm trying to keep this PG similar to the simple one, so I don't think blank makes sense. I've added something that increments a counter, so we do mySketch, mySketch1, mySketch2, etc... I prefer it to be as simple as possible to make a new sketch.

from pgelectron.

Daandelange avatar Daandelange commented on September 10, 2024

ok :)
Instead of incrementing, it would be funny (later on) to call them "myGeniusSketch", "mySuperSketch", "myBrandNewSketch", "myAmazingSketch", etc.

from pgelectron.

ofZach avatar ofZach commented on September 10, 2024

https://github.com/weaver/moniker is interesting if we wanted to try that ... :)

also the way I am doing this is kind of ghetto, I am calculating this in index.js:

https://github.com/ofZach/pgElectron/blob/master/index.js#L72-L73

but since I don't want to save it out (and alot of stuff saves out the settings) I delete it here:

https://github.com/ofZach/pgElectron/blob/master/app.js#L272-L277

maybe it should be it's own callback? (just flagging that this is kind of in-elegant)

from pgelectron.

Daandelange avatar Daandelange commented on September 10, 2024

Yes, a lot of stuff trigger a settings.json write-out which is kind of dirty but it simplifies the rest of the code a lot and prevents having duplicate code.

But... I don't think you have to put this in defaultSettings (also called obj).
I'll try to move this apart and integrate moniker :)

from pgelectron.

Daandelange avatar Daandelange commented on September 10, 2024

@ofZach I'll let you close this issue if approved 👍

from pgelectron.

Daandelange avatar Daandelange commented on September 10, 2024

Todo: install moniker with npm or exclude npm_modules from .gitignore (or add it somehow as a dependency)

from pgelectron.

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.