Welcome to the second newsletter, If your back from the first I must say, I am surprised.
A week in words
This week I decided to sit down and go nuclear on an old project… Again. Front End Wizard was a project I started a few years back, and I have decided to rebuild! I started delving deeper into TypeScript this week, its something I have been meaning to do for a long time. And I switched all my IDE’s to the LIGHT THEME for a bit to see how that goes, will give an update on that next week.
I have not managed to get as much content into this second version as I would have liked after spending an entire day lay on the sofa with illness watching Dark on Netflix 😢
Is Redux dead… This old chestnut.
Is Redux dead? This is something I see a lot online, on articles on dev.to and on twitter posts and general ramblings about the complexity of Redux and the rise of Context.
Obviously we have much better exposure to Reacts Context API now which has made us question if we need Redux anymore. Context is very powerful, but we must remember, this is exactly what Redux is using under the hood! I am not arguing against the Context API in anyway, in fact the opposite, you should try out the Context API and understand how it works, but you don’t need to use it for everything. I use the Context API for small projects because its easy to roll out and can be tweaked to your liking much easier. However when my projects start getting bigger, I default to Redux. The architectural patterns and middlewares it offers just speed up development for me. I find i can end up trying to reinvent the wheel when doing more complex tasks with Context which have been solved hundreds of time with Redux.
Keeping this short Redux is not dead, it’s a very powerful tool, and the improvements being made week on week are modernising it to keep it up to date and easy to use. Just check out the hooks you have. You no longer have to do all the old connect and mapStateToProps and you can keep your react projects entirely functional!
Here is a very short list of reasons that Redux is still not dead:
- It’s constantly being updated and modernized!
- It enforces consisten architectural patterns
- It has good tooling and debuggin capabilities. I’m looking at you Redux DevTools
- Middleware & Addons
TL:DR; No, it’s not dead
Time for TypeScript
Unfortunately I didn’t get the chance to dig as deep as I would have liked this week into TS but its something I am looking to keep going pushing forward as I have been meaning to do it for years.
What I did have enough time to do was start rebuilding Front End Wizard using TypeScript and then realise that I was in too deep. So I took a step back, and I am taking a different approach.
So next week I will update on the journey so far with typescript.
As I mentioned in the breakdown. I’m rebuilding Front End Wizard so watch this space. Currently, I have made absolutely nada progress but this will be a complete rebuild from the ground up. I will start working on a new branch and share that next week with the progress and what has been done!
Week Coding Breakdown
Check out Wakatime to find out what your coding breakdown is!
Coding stats for the last 7 days (where usage was over 5%):
|.md||18%||Trying to figure out what to put in this newsletter|
|.jsx||17%||Updating minor pieces of this website|
|.scss||9%||Started looking through the old front end wizard code|
|.js||7%||Looking through transpiled ts files|
|.json||5%||All the tsconfig settings|
- Formik - Build forms in React, without the tears
Had a mini heart attack yesterday. My laptops trackpad and keyboard stopped working (Dell XPS 9360). I cleaned it, rebooted it, rolled it back updated it but nothing would work! Turned out turning bluetooth off fixed it. No idea why yet but I’m going to have a dig around at some point to figure out why.
I went on an amazing Hike last week! I go every Sunday with a small group of friends and this Sundays hike (which was supposed to be 10k) ended up at 23k after we took a slight diversion. Safe to say I slept that night.
It’s been over 3 months since I stopped drinking, I have decided its now a permanent thing, I no longer drink. Now I just need to stop snacking all the time!
Until next Wednesday, Have a great week!