Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 1.54 KB

README.md

File metadata and controls

42 lines (27 loc) · 1.54 KB

newsic

Follow this link to the newsic website http://koalabears.github.io/newsic/

What?

A mobile-first web application that combines trending news with relevant music using the Guardian and Soundcloud APIs

Why?

To learn how to use APIs

How?

Using HTML, CSS, Javascript

Wireframes

Who?

Koalabears

To do

To improve (tips from the Guardian developers)

  • Error check so website doesn't break e.g. tell the code what to do if something doesn't exist. Don't have lots of dots in objects. e.g. if x.y.z.a should be if x.y=? then if x.y.z=? then.....

  • INDENT CODE -

  • DECLARE VARIABLES AT THE TOP - vars should only ever follow a function statement

  • window.localstorage

  • run as one function e.g. "(function(x){ ALL CODE HERE})"

  • don't make lots of DOM changes using javascript (e.g. document.)- better to put it all in a string (templates). try moustache.js