Giter Site home page Giter Site logo

homework's Introduction

HomeWork

homework's People

Contributors

gmamar avatar

homework's Issues

Don't use <br> for layout stuff

This is eseentially styling the document, placing elements in a specific spot and is a semantic error. You can use CSS to position the fields in the form.

The profileInformation array may seem useful but its abstracting meaning

If you look at it, info.html_url is more readable than info[profileInformation[3]].
I understand it's rally useful for the addFullInfo function but you can get all the info in a different way. If you want to print all the keys of an object and their values you can use this:

for (var i in myObject)
{
	console.log("key: " + i + " value: " myObject[i]);
}

Good job reusing the mainRequest function

Pretty smart to look at what the response look like and then to call a different function based on that.
Alternatively, you could pass two parameters to mainRequest. 1 being the targetPage and 2 being the callback function. That way you can tell mainRequest which function to pass the resulting data to. This is also described in the week 6 assignment.

Good job setting up polling

That's pretty cool, you figured out how to load new info every 60 seconds. You should probably add a check though, to see if a username has been filled in after a minute. Now when you leave the page open without doing anything it tries to get the data for an empty user and that generates an error.

The interaction with the page is a bit janky

This means the content "jumps around" based on what the user does. It's unpredictable and confusing for a user. You can solve this by creating a layout in CSS with a set size and then when the js fills op the html it wont jump around anymore. Think back to the classes on flexbox for instance.

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.