Git Product home page Git Product logo

Comments (6)

TheBlueMatt avatar TheBlueMatt commented on May 18, 2024

Random notes on this:

I like js/crypto.js, js/webcrypto.js, and js/api.js. I'm currently thinking rename js/helpers.js to like js/textsecure.js and then move those into a textsecure-lib folder or so. Those will then be publicly consumable and can form the backbone to any JS-based TS plugin.

from signal-desktop.

liliakai avatar liliakai commented on May 18, 2024

helpers.js is the file of shame--nothing personal, just kindof a big lump
of spaghetti code. renaming it won't make it prettier. I suggest a strategy
of parceling off logical chunks until there is no more helpers.js.

If you make a textsecure.js (or perhaps it should be signal.js or
whisper.js or even axolotl.js), it should probably just define the main
library interface, with functions for sending messages, and registering
onMessageReceived (or similar) event callbacks.

On Thu, May 15, 2014 at 8:11 PM, Matt Corallo [email protected]:

Random notes on this:

I like js/crypto.js, js/webcrypto.js, and js/api.js. I'm currently
thinking rename js/helpers.js to like js/textsecure.js and then move those
into a textsecure-lib folder or so. Those will then be publicly consumable
and can form the backbone to any JS-based TS plugin.


Reply to this email directly or view it on GitHubhttps://github.com//issues/16#issuecomment-43291486
.

from signal-desktop.

TheBlueMatt avatar TheBlueMatt commented on May 18, 2024

Oh, no question it's a huge mess. My point is more to reactor it into modules that actually make sense together and then hide most of the crud from public api consumption.

from signal-desktop.

TheBlueMatt avatar TheBlueMatt commented on May 18, 2024

Took out some of the low-hanging fruit in 05101b6 and 6bc19ef. Mostly just split out things into semi-logical namespaces. The real offenders are still there (and not namespaced) but the namespaced things are somewhat clean or, at least, clean enough for a release to me.

from signal-desktop.

TheBlueMatt avatar TheBlueMatt commented on May 18, 2024

Well, +/- some really ugly APIs which need cleaned (promises so we can expose exceptions and error handling, mostly)

from signal-desktop.

TheBlueMatt avatar TheBlueMatt commented on May 18, 2024

Closing this, as it is out of date and in progress, at least for most of the issues (feel free to reopen with more specifics if anyone disagrees).

from signal-desktop.

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.