Giter Site home page Giter Site logo

notes's Introduction

Hi there ๐Ÿ‘‹

notes's People

Contributors

hoodedice avatar

Watchers

 avatar  avatar

notes's Issues

minify html

right now the way ejs is written is easy to read and easy to modify.
html-minifier is probably the best way to go about it.

Minor: Parallelize generateUUID()

Notice that getCurrentDate() and getRandomIdentifier() are independent of each other. They aren't very expensive functions, so doing this fix won't give a huge performance gain but would still be a nice to have in the long run /shrug

Use toISOString() for Date

toISOString() along with string.slice will get rid of the convoluted code in getCurrentDateTime() and getCurrentDate()

Rewrite the database

So the database needs to be rewritten to provide for some extra features that will be implemented later on. For now the design calls for

  • A Trigger that runs a Stored Procedure that updates latest_version_id with the number of the latest revision.
  • Connect to the database from within the application.
  • Use environment variables.
  • test the database (this can happen after I set up more of the routes in the application)

"module" that can generate random strings to be used as UIDs

Since every note has a unique author, we don't need our UIDs to be GUIDs, so to say. They just need to be unique vs the other UIDs by the same author.
Thus, my first attempt will be to make the UID as small as possible in terms of chars. I think 6 (42,180,533,641 possibilities per user) should be a fine length (imgur manages fine with 7)
As for uniqueness, I realized that copying twitter's snowflake system (" The full ID is composed of a timestamp, a worker number, and a sequence number") might be best. Instead, I will just affix a YYMMDD to the start of the UID, bringing the char length to 12

Check if passwords match

JavaScript code (or see if possible without) that checks if both the passwords on the registration page match.

Move to Apache Cassandra

Moving from mysql to cassandra because performance (not like I have that many consumers of this anyway)

server timeout

Increase time of response after 5 login attempts for a client. See into doing this in such a way that doesn't stall the server.

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.