Giter Site home page Giter Site logo

rrmbe's People

Contributors

bartbucknill avatar maxgerber avatar rachaelcodes avatar rebecacalvoquintero avatar

Stargazers

 avatar

Watchers

 avatar  avatar

rrmbe's Issues

Accessibility - Improvement suggestion?

Just ran your site using the chromeVOX extension, everything is all good.

Is there a way for chromeVOX to voice back the options when you enter a password?

For e.g

I type in qwerty, and I get a list of results, is there a way for these results to be played back as I arrow down through the list?

I'm just thinking that it would be useful for people that are blind/visually impaired, to be informed about the results through audio.

unused arguments in handlers

I think this may have been from some poor examples on my part from the code along (sorry!) but in your handleFile and handleOther functions you don't actually use the request argument ever (you use the request in your router to get the url, and use that to get and pass in the fileName) so you could remove request from those functions to make things a little clearer.

Styling on selectors other than class

In your CSS you are styling on lots of straight element selectors (p, article etc). I know in the case of how small this app is it's not actually detrimental to be doing this, but I would strongly recommend enforcing good CSS practices on yourself by only using class selectors for styling.

check out https://cssguidelin.es/ for more info on good CSS practices.

Why use regex in handleSearch?

In handleSearch you use a regex to replace the "/search/" from the url with nothing, why a regex assigned to a variable and not just a string of "/search/" in the .replace method?

(this issue isn't being raised because I think you're wrong I'm just interersted if there was a particular reason to do it in this way)

Make handle public a whitelist

It might be nice to route based on a whitelist,
see this example.
Problem with just testing for existence of 'public' in string:

  1. a search term might include 'public', resulting in a search request being routed to handlePublic;
  2. depending on how handlePublic is implemented, it might be possible to formulate a request using something like '/public/../' to access files in root. It would be nice to prevent this in router.

images for readme in repo

it's a little thing but having the images for your readme in your repo bloats it a bit, a good technique is to get github to host them for you by opening an issue, upload the image as a comment to that issue, then use the markdown github generates in your readme, then you have your own images in your readme without having them bloat up your repo :)

see: dwyl/learn-amazon-web-services#24 for more.

getPasswords is moot

Since your getPasswords function in search.js just takes an input and then passes it directly on to passwordSearch and returns the result of passwordSearch, the extra function isn't actually doing anything apart from composing the function with the password array, which you could do when you call the function.

Make ES6 objects less verbose

Identical key-value pairs should be able to be written in shorthand - specifically in the fileName object which resides in router.js`

Mistake in local running instructions

In your instructions for running locally (which I'm super glad you've included for this ace site! ๐Ÿ™) you instruct the person trying to run it to run npm init when I think you meant to put npm install

Ace work on the passwordFilter function

๐Ÿ‘Œ at first when I was looking at it and I thought "huh, I womder why they're using a for loop instead of an array method..? Then I see, you're using break to make your code more performant. This is super cool and I'm really happy to be seeing these kinds of performance considerations in your code.
๐ŸŽ‰ โค๏ธ ๐Ÿ”ฅ

(feel free to close straight away, just wanted to say this on record)

create handlers.js

  • at least 2 dealing with the request
  • one with response.end to set headers

Autcomplete is a little laggy

Our search of the passwords is a naive array iteration, and as the list of passwords is 100k long this is slowing down the autocomplete.
Could we optimise the search module or data structure further?

Write README

Perhaps include user stories (or even a persona).

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.