Giter Site home page Giter Site logo

3to5's People

Watchers

 avatar  avatar  avatar  avatar  avatar

3to5's Issues

'x' as element in forEach

It might seem a big picky (probs cause it is a bit) ๐Ÿ˜ณ but on line 45 of dom.js you use x as the argument to the callback to your forEach.

Generally I think it's nicer to put a descriptive name to the element being iterated over by an array method than just x or something. Think about what x in this instance actually is and maybe replace it with something more descriptive.

This will make your code more readable, cause code is for humans!

Responsive, mobile-first design

Design: aim for a responsive, mobile-first design

Must be functional on all browsers, screen resolutions.

Must be able to deal with latency issues; mobile devices without wifi.

Implement postcode validation

Should be able to return an error if the postcode entered is invalid:

function valid_postcode(postcode) {
postcode = postcode.replace(/\s/g, "");
var regex = /[A-Z]{1,2}[0-9]{1,2} ?[0-9][A-Z]{2}/i;
return regex.test(postcode);
}

Greater depth of walking instructions

At the moment the instructions are really on useful for public transport. Walking and cycling need more detailed instructions to actually be useful.

Put your stretch goals in as issues

You've got a really nice list of stretch goals in your readme, you could raise each of these as issues, perhaps making a label called "stretch-goal" and then they would be retained in history in a nice github way.

No feedback on bad data

Bad data, non- London postcodes, part postcodes eg WC1A and some other postcodes, eg E98 1AT will stall the page, as data cannot be processed, but cannot be reentered. An error message would fix this.

A well-considered architecture for your app

Think back to the workshops from the beginning of this week. Try to modularise your code, or break it down into separate files. Document any key decisions about how you structure your code in your readme!

Use of github

you've related quite a few PRs and commits to issues, but still not all of them, please make sure to relate an issue in every commit and PR.

If you are writing a commit message and think "there's not an issue I can relate this to" then make that issue. All work you are doing should be done in relation to an issue.

Issues are the source of truth for your project, they should be where you find out who worked on what, which commits related to it, what was done, and when.

If in doubt, raise more issues than you think you need than less.

Hosting?

Is this hosted anywhere? (github pages, surge, other) If so plz put a link in your repo!

Tests: you must write tests!

Tests: you must write tests!

We'll need to experiment with the API's first before we focus on the tests.

Should we TDD?

API Key privatisation

If using a private API key, you won't be able to deploy to GitHub pages this week (if you're not using an API key, go for it!)

Security and Privacy

Take appropriate measures when it comes to concealing private information (i.e. your API key!)

impure function (which could be pure)

your getTravel method both constructs the url and calls the function that makes the api call.

If you made getTravel return the URL, and removed the call to logic.request on line 24, and then passed the result of getTravel(postcode) into logic.request then your getTravel (probably more aptly named makeTravelUrl or similar at that point) function would be pure and you could write some nice tests for it.

Update readme to include proper api key info

Just actualising the IRL conversation we just had as an issue ๐Ÿ˜‰
Make sure you have correct instructions for set up in your readme, as the curent ones for the api keys don't work.

Though I really appreciate the effort to hide your api keys, on a front end only app it is not possible (on a hosted version someone would still be able to look in "config.js" in their console) so don't worry too much about it, you'll be a ble to hide API keys when you start building your own servers.

Map Section not working

There is a Map section on the website which has not data. This could either be:
-fed information from an api
-removed from the page if the functionality is no longer needed

NPM - Coverage is not working

When I enter this command: npm run coverage

I get this error message:

istanbul cover tape test/*.test.js

No coverage information was collected, exit without writing coverage information

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.