Giter Site home page Giter Site logo

apolloxii's People

Contributors

katiaash avatar rinoma avatar veredrec avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

apolloxii's Issues

ES6 on the frontend in `script.js`

Remember that for now we're still writing only ES5 on the frontend as it's not fully supported. I think it's only a case of changing const to var on line 26 and change the arrow function. ๐Ÿ‘

Uneven contribution/commits

Hey guys, I think it's really important to always check out your contributions and see if you're spreading the workload evenly amongst your team. I know that @KatiaAsh was having laptop issues, and so if she was working on Stefano or Vered's devices and is missing commits from her own GitHub account that's completely fine, but just something to remember that what makes us so special is that we always encourage pair programming!

screen shot 2017-07-27 at 10 47 32 am

Router/handler

Again, nice start to modularisation and seperation of concerns, but could be improved.

All the router should do is pass the (req, res) onto a handler, and then the handler does everything with it. So you have

router = (req, res) => {
if (option1) 
    handler1(req,res)
if (option2) 
    handler2(req,res)
}

Everything you need is within those request and response arguments. This then is much neater, easier to read and easier to replicate.

If for example, one person writes the router, they can always pass the (req,res) arguments to every handler, and then whoever is making the handlers will always know to make a function with those two arguments

Search function non pure?

Really nice modularisation of all your code, but you're search function relies on the food variable to work, so testing it you would also have to require in food - maybe pass it as a second variable to the function (JSONToSearchThrough?) and then you've got a nice neat, easily testable function.

Loading FontAwesome vs SVG in `index.html`

Just for the future, it's probably better to use SVG vs importing in the entire FontAwesome for better performance, on line 10:

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">

Autocomplete not accessible

Keydown enter of a search takes me to 404
Cannot tab through search results
Cannot select food using key up or key down

Unclear commit messages

Try to steer clear from vague commit messages like:

"fix somestuff in css"
"Made some small changes to router"
"changed css and handler"
"edit html and add images"

You get the idea ๐Ÿ˜Š

Remove console.log

A few unnecessary console.log (that's been commented out). Consider removing if it serves no purposeful function

Not responsive

I can't use the app on mobile because it's not designed to be responsive ๐Ÿ˜ข

Basic HTML

Add structure and main elements on index.html

Create server

Create and build server.js, handlers.js, router.js

โœจ โœจ โœจ Awesome job! โœจ โœจ โœจ

Hey team, after code-reviewing I feel like your team understood the objective of this week and completed a project that outlined your understanding, really awesome job! As always, when we learn something new we tend to drop the things that we learned from weeks before (I completely understand, I've been there!) But it's good to always take the time to go back and spend some time on the stuff you might've not prioritized (for example, accessibility and tests). Cheers! ๐Ÿ‘

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.