GithubHelp home page GithubHelp logo

dcdalin / pace-gets-organised Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 282 KB

A simple day view for a calendar, populated with data from a GraphQL API

Home Page: pace-gets-organised.vercel.app

TypeScript 94.42% JavaScript 5.34% CSS 0.24%

pace-gets-organised's Introduction

Pace gets organized

Link here.

At first glance, a day view calendar seems like a trivial task. However, the rules set with regards to rendering the calendar do increase its complexity. Not being allowed to use calendar components like fullcalendar did make me appreciate the power of open source, especially when it comes to speed of delivery.

Choices I made

After breaking down the task into subtasks, I jumped straight into the backend code. It being the first time working with graphql-yoga, I deemed it fit to quickly play around with the technology by implementing the missing pieces of the CRUD operation - (Create, Update and Delete).

The front end was next. I went for the design first approach as this method often allows me to think of ways I’d want the data to flow. Creating various components quickly made me realize that the CSS grid was not going to work.

I opted to have a look at various calendar component libraries to get a hint on how best to implement the logic. Collision algorithm was the solution found.

Challenges I faced

The major one was a set of new technologies. SWR, graphql-yoga were both new to me. Going through the quick start page of documentation was enough to get me going.

The task itself was the major challenge. I have never implemented a day calendar before, let alone create one from ‘scratch’. On the bright side, this led to reading a lot of calendar component code thus learning new approaches to solving tasks.

Tradeoffs I chose

A lot can be done so as to ensure code is production quality. Some of the tradeoffs include not setting up a proper CI/CD pipeline. Not setting up commit rules or webhooks for tests and remote builds. When it comes to the calendar, responsiveness was a tradeoff I chose. The event component is placed based on exact CSS positioning. Proper testing of the code was also a tradeoff made.

What I don’t like about my solution

Like mentioned, its lack of responsiveness makes for bad user experience.

  • Repetitive code
  • Lack of global state management (Context)
  • Page refresh on new event creation.

What areas would I work on next

  • Database persistence
  • Implementation of Subscriptions
  • Responsiveness of the calendar

pace-gets-organised's People

Contributors

dcdalin 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.