DEV Community

CodeCara
CodeCara

Posted on

Light at the end of the To-do tunnel?

Things I've worked on/completed since my last post…

I have been working on local storage (the To-do project).

Issues I had….

I had to revisit date-fns, as previously, I had converted the input date to the desired format, which was then saved to the data object, but then I had trouble trying to convert the date back when I wanted the data to be read.

I wondered if it was possible to format the date picker itself, but was told it was not and it was suggested to me that my original approach may not have been ideal. I realised that I had been creating more steps than were necessary, that I should not interfere with the data in the data object and that the ‘right’ way to do it would be to format the the date after it had been read.

Why do so many things make sense in hindsight.

Things that went well...

I got local storage working! I had to rework my edit and delete functions as the sequence of my unique IDs was off due to using the local storage object - to my own amazement, I fixed this quickly and got everything working.

I am thrilled that I managed to figure this out without asking any questions (googling excluded) and it has made me less concerned about figuring out future problems which I have no experience with either.

Things I've learnt/need to improve on...

My git commit history, through the second half of this project in particular, was dreadful. I attribute this to being distracted by all the problems I was trying to deal with at one time - I defnitely need to give attention to this.

Plan for the forthcoming week...

The remaining issue I have to fix is some buttons which don’t fire on first click and after that, it will be tidying up the CSS, cleaning up the code and possibly some code refactoring, although I may ask some other people’s opinions on this.

I think it’s possible that I could finish this project (which has taken months so far) this week(!), but I am not putting myself under pressure.

AWS GenAI LIVE image

How is generative AI increasing efficiency?

Join AWS GenAI LIVE! to find out how gen AI is reshaping productivity, streamlining processes, and driving innovation.

Learn more

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay