Code Monkey home page Code Monkey logo

placementexercise's Introduction

Placement Exercise

Placement Exercise.

Web Developer - Exercise

Tech Stack
HTML, CSS (Tailwind), JavaScript.

Note: Tailwind may require external installation using the npm, please see here: https://tailwindcss.com/docs/installation. Although, checked on external machines without Tailwind installed and it runs correctly.

Time Structure
20-30 minutes planning. 1 hour of development. 10 minute reflection.

Considerations
The JSON was parsed before development began to get an idea for the structure.

Plan

  1. Develop fetch function to parse JSON to asynchronously display content to the web page.
  2. There will be multiple different functions to implement which create differing elements for each specific part of the JSON, e.g. description, name, programs, to improve coupling (and therefore modularity).
  3. As programs is an array of objects, it’s function will require it’s own nested iteration and creation of elements.
  4. As this is a front-end project, try and fit all the content into one web-page. We won’t have the back-end to manage interactions between URL paths, therefore developing a search function which expands information requested by the user should be high priority.
  5. Due to time constraints, a CSS framework (Tailwind) will be used to quickly style the web page for a sufficient user experience. Functionality will be prioritised over styling.
  6. The first 4 elements (General, Students Union, Sport, Residences) have a different semantic meaning the the rest. The rest seems to be departments of the university. Potentially use the slice method to split these two groups up.

Post-Development Reflection
Search function is slightly flawed - I believe it searches through and returns the descriptions of each topic, rather then just the name, as I intended. Potentially this is an issue caused by making the descriptions a child-element to the name element?

The search function is unefficiently written – The function should be split into differing methods to improve the modularity of the code, right now, it handles a lot of logic inside it.

Front-end display of programs is flawed - The ‘programs’ section in the JSON has it’s own structure that would need to be independently sorted and styled. Time constraints make it difficult to do this, so this would need to be addressed in further development.

Images are styled within the JS function, createImageElement - More of a formatting suggestion, but potentially re factoring this into it’s own CSS class could improve the readability in further development.

Semantic Tagging of HTML elements - Semantic tagging should be enhanced in further development, to aid the ability for screen readers to parse over the webpage effectively.

placementexercise's People

Contributors

co505 avatar

Watchers

 avatar

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.