Coder Social home page Coder Social logo

week6-ammpazon's People

Contributors

akinsho avatar majakudlicka avatar piotrberebecki avatar smarthutza avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

week6-ammpazon's Issues

Favicon?

I know, I know.....It has to be said, though

Commit history

For your next project, I'd like to see a greater separation of concerns in your commits. Many of them covered a number of issues. Try to keep them granular, remember the ideal is one commit per pomodoro

Also, the commit history shows slightly uneven involvement in making commits - try to make sure you switch drivers regularly and share around the making of commits and the job of merging things in

User interface is quite minimal

It would be confidence inspiring if there was some indication that a request is being made after you select from the dropdown options, even if it's just a bit of code that says 'Retrieving data...'

front-end tests

This will be more relevant as you develop the front-end, but you're still putting stuff onto the dom so you should include tests for that

Simpler error handling in queries

Correct me if I'm wrong, but I don't think you need the if / else control flow here. You can just call handlerCallback(err, res).

If there is an error the rest of your code should check for it first and ignore the res (which will be null or empty anyway) and if there's no error it'll be null anyway so you can just pass both variables straight through.

Failing tests

Check out your tests as some are failing - but so awesome to see that you are writing tests! Please cover this in presentations. I bet everyone can learn from this.

Only export what's needed

In your database_queries.js you export the whole query object but as far as I can see the only think you use in the rest of the app is getData.

Since you've done a nice job of only giving the rest of the app a single point through which to interface with the database, you don't need to export the whole query object.

In fact, the object doesn't need to exist at all. I would move the queries object up to the top level of the file and make getData a plain function (which you then export), rather than making them both part of an object - getData is the only big of the file that the rest of the app needs to know about so only export it.

Accessibility issues

I can tab onto the select list but once I press down for the possible selections, chromevox does not tell me what they are. You'll need to use labels so the options are read out.

Advanced database use (for FAC cohort)

Hey team. I'm super impressed that you have set up tests for your database. I don't think any of us managed that in FAC9 so total kudos. It shows a really good understanding of what is going on under the hood that you have done this.

Some things to note:

  • Please make sure everyone on your team could explain all the code to anyone else in your cohort. Otherwise, the success of this enhancement in minimal. And on this, I challenge you as a team to have one of the people who did not previously understand this explain it in the presentations this afternoon
  • Be really careful about keeping your production database URL in your config file. All it takes is one careless 'npm run build' and all your data is overwritten (ouch)
  • Ideally your tests should start from a clean slate each time, so it would be great if it removes any items from the database that it adds.

No favicon but code for favicon included

Your code seems pretty robust to me so struggling to find much at the moment!

Handlers file line 26 for favicon not being used. Include one of a motorbike :)

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.