Have you ever argued with your team on how an API should be formatted? JSON:API is a specification that was created to standardize and reduce the number of decisions that have to be made when building JSON APIs. (Yes, it can be confusing talking about JSON:API compliant APIs and JSON APIs that don’t follow the spec). The benefit of following a specification that is opinionated about the format of your API is that it allows developers to be more productive and focus on what matters, the unique parts of an application.
The Page Object design pattern is used to isolate HTML structure and CSS selectors from your tests. One of the main benefits from the page object pattern is test readability, and this really starts to shine as your acceptance and integration (component) tests get more complicated. Not only do page objects greatly improve test readability, they also make your tests more DRY. When HTML structure and CSS selectors change, you can make a change in a single place in your page object as opposed to going through and updating multiple, repeated selectors in your tests. Personally, I have also found that tests have become easier to write as my page objects get more defined.
for loop versus using the
forEach() method on arrays. In this post, I’d like to review how each of these work and discuss why you might want to choose one over the other.
I still remember what it felt like being a new developer trying to get my first job. I had lots of questions like, “Should I go back to college and get a CS degree?”, “Should I work for a startup or an established company?”, “Do I need to know algorithms to become a web developer?”, “What technologies should I focus on?”, and many more. I didn’t have very many people to ask these questions, so I just figured it out for myself. Getting my first job was tough, but each job after that became easier and easier, and now, I no longer have doubts about being in the web development industry.
Ever wondered how to create your own custom Ember CLI command? Recently I created a custom Ember CLI command as an addon called ember-share that allows you to share your local running Ember app with the world via a publicly accessible URL. This endeavor took some research and required looking at other addons like ember-cli-deploy, so I thought I’d share what I learned in case you want to create your own custom command too.