I was rebuilding a modal at work recently in React and introduced a small bug caused by toggling booleans. Here’s what happened.
So around November/December last year, I really felt like I was stagnating at work. I wasn’t feeling particularly challenged, was undervalued, distracted by my upcoming holiday in Mexico and wasn’t making the progress as a developer that I would have liked. So I decided to try and tackle the last issue as I felt I had the most control of it and I signed up to some courses on Udemy and pick up some new skills. One of those new skills I was interested in was TypeScript – it’s becoming more prevalent in the job market, offers an incremental adoption process and some blockers to adoption at work had been removed.
So I signed up to Stephen Grider’s TypeScript: The Complete Developer’s Guide and I’ve been slowly working through it over the last few months. One of the sections later on in the course is about decorators. I’d seen decorators applied to React-Redux a couple of years ago and I didn’t really understand them/see the need for them and they just generally seemed like confusing magic. Since then I’ve seen similar looking code in my backend colleague’s Spring/Java code, in some Django project I worked with and when looking at some documentation for NestJS. It wasn’t until doing the section of Stephen’s course though that I began to understand them and see some uses for them.
For the last year or so I’ve been working with GraphQL with NodeJS quite a lot, both as a wrapper around some REST microservices and with the graph database Neo4J. While it hasn’t been a problem with the REST microservice project, line length has been a real problem when working with Neo4J schemas. This week I’ve found out two ways to solve this.
I wrote a post about using React’s at-the-time new Context API to deal with translating text strings throughout a React app. Looking back, I think a lot can be improved upon, so here we go.
I graduated from the Codaisseur Academy program in April 2017. I wrote a few blog posts about my experience and new/prospective students regularly contact me asking for insights/advice etc. Hopefully this post can answer some of the more common questions, but the TLDR is that I did this course over 2 years ago, a lot has changed at Codaisseur and you’re better off finding a more recent graduate to ask.
If there is something I’ve missed, just open an issue on GitHub or something?
You’re on the home straight. Your tests are green. Your code is splitting. Lighthouse/Pagespeed/other performance metrics love you. And then you get the call – it’s marketing. They have just a few scripts they want to add. Bundle-bloat isn’t the worst of it - custom events are needed.
React’s new Context API was finally made available with React 16.3 two weeks ago, and I was working on a client’s multilingual site that was passing the locale information through the props of every component. The context API seemed like a fairly decent way of avoiding having to pass the props like this, so this is my super quick implementation of how to do just that.
It’s been too long since my last post, but I think the one year anniversary of moving into this flat in Amsterdam is as good as any other to write something.
So, the whole blogging all the way through the course thing didn’t really work out. Things really kicked up a notch once we moved into the advanced bootcamp, and I didn’t really have time for coding and writing. Sorry about that!
If you don’t read any further than this, I’m currently looking for a job to put these new skills to good use. Here’s my GitHub, I’m really interested in React-y/ES6-y roles, so show me what you’ve got.
Well, it’s two weeks since my last post and I’m now halfway through Codaisseur’s two-month web developer academy. I. Am. Ex. Haus. Ted. Admittedly, I’m not making it easy for myself – in the week before last I went to developer meetups on Tuesday and Wednesday, and had scheduled two for the last week (though I ended up sacking off the AmsterdamJS one on Thursday ¯\_(ツ)_/¯ ).
That’s Week 2 of Codaisseur completed and I’m now 25% of the way through the course. We were only in class for 5 days this week, but the extra day was spent doing homework, so…¯\_(ツ)_/¯.
My last post was about 1400 words, but I think I actually did more this week than last week, so…¯\_(ツ)_/¯. Some people would suggest editing these things after writing them, but I’m pretty sure that as a career-switcher from editorial I can refuse to ever edit anything ever again (edit: spotted a typo in this paragraph immediately after publishing, so here I am fixing it).
So my first week of Codaisseur’s academy/bootcamp was a great success! I think the time spent on the Learn.co Bootcamp Prep has really paid off and I’d definitely recommend it to anyone thinking about a bootcamp or about to embark on one.
The week started last Sunday and ran through until Friday evening. After a lovely day in Utrecht on the Saturday followed by taking it very easy at a friend’s birthday party on the Saturday evening, bright-eyed and bushy tailed, I turned up at the TQ building for 9.30am.
After a brief induction session (don’t be a dick, treat the building/people with respect), we were straight into HTML and CSS with Tijn. Now, I’ve got a fair amount of experience with HTML and CSS, so I was a bit concerned about what I would get out of the day, but luckily there was some interesting stuff to get stuck into.
So, here I am, roughly six months after moving to Amsterdam and it’s time for a change. I always tell people that I fell into editorial work by accident, and it’s true.
A three month temp job at the OU as a production assistant straight after university turned into a full year of it. The company then hired a load of people, and I’d thrown my name in the hat for a new position as a copy editor. One proofreading test and interview later, and I had the job. Six months later, an opportunity came up and I threw my name in the hat again and, yep, you guessed it, I got the job. I didn’t finish my Music Tech degree with the intention of editing online courses, it just kind of happened.
subscribe via RSS