Nightwatch is a great library for UI testing, but it does lack one feature I recently needed - the ability to continually refresh a page waiting for an element to appear. Unfortunately, the application I am working on currently doesn't use polling or web sockets to allow for real-time updates, meaning that any changes that come through require a refresh of the browser page to show up.

Nightwatch has functions to wait for an element to be visible, but no functionality to refresh the page and check.

Whiteboard interviews and technical phone screens are just part and parcel of working as a  Software Engineer. Besides learning the data structures and algorithsm you need, the only way to get good at interviewing is to practice. Here is a brief set of steps you can keep in mind while interviewing.

Read and Understand the Problem

  • Read it slowly.
  • Read it again/get it repeated to you.
  • Try and think about what assumptions are hiding in this problem.
  • Ask questions about those assumptions (either to yourself or the interviewer). Nothing is worse than solving the wrong problem.
  • Identify the inputs and outputs
  • Try and indentify any obvious edge cases

My last name is spelled differently than what people usually expect. People expect it to be spelled Rodriguez which is the Spanish spelling of my last name. However, my last name is Portuguese and spelt Rodrigues. So when I was designing my business card I wanted to bring attention to the S, so I changed the color of the S to be red against the rest of the name which is colored black.

Anyway, one thing I wanted to do here was to create the same colored S effect for the title of my website. However, the problem here is that I have control over the exactly text in the HTML, but cannot control the individual elements, classes or id’s of the HTML elements!

This poses an interesting problem, how can you change the color of the last letter of a word using only CSS? 🤔


The Sieve of Eratosthenes is a simple algorithm for finding all of the prime numbers up to a certain limit (or between two numbers).

If you wanted to find all the Prime numbers between 2 and 100 you could iterate from 2 to 100 and test if that number itself were a prime, but ain't no one got time for that.

Since a Prime number is only divisible by itself and 1, we can start from 2, and continually flag every multiple of that number up to n as false (not a prime). The next number would be 3, then we can mark every multiple of 3 to n as false.

Learning to Code: Week 36

I finished off Hack Reactor Prep this week. Precourse Accept kicked off! The weekdays aren't too long, but the weekends will be all day. Think of it as a mini-bootcamp before Hack Reactor. I got a much better understanding of HTML, CSS, closures and this week. Not only that I learned (some) jQuery!

Helped out a fellow student for an hour or two working through some underbar problems involving reduce. I had never pair programmed before and it was fun. I tried my best to steer towards understanding why something wasn't working rather than giving out an answer.

Learning to Code: Week 35

This week I got deep into Hack Reactor Prep and spent a lot of time between that and working on toy problems either from FCC or J. Advice from a bootcamp grad on frameworks:

I would first get really comfortable with understanding Javascript fundamentals, then become literate in a JS framework. I’m not that crazy about these resources, but it’s a starting point. If you find better one’s please let me know.

Learning to Code: Week 32

This week was when the Master JavaScript class on Codementor really took off. The whole concept of a "stateful" application and unidirectional data flow blows my mind. Also this week I discovered the podcast Breaking Into Startups which is run by three guys, two of which went to Hack Reactor and App Academy! They ask the best questions and ones I want to know the answers to without veering off topic. I highly recommend anyone interested in tech or startups listen to it immediately.

Learning to Code: Week 31

I’ve been wanting to make a very simple “Weeks Until” calculator since all of the ones online give me too much information. Round up the nearest week and call it a day. So that’s what I decided to work on!

I got the basic functionality working using the Date() object and getDate and calculated the difference in times in days instead of milliseconds.

Once I could log to the console what I wanted I switched over to HTML. I put in a simple h1, h2, input field and submit button made it run myFunction() to log to the console what was received from the date input since I didn’t know the format. It came out in a string like YYYY-MM-DD

Learning to Code: Week 30

In the job search, a huge part of success is doing well on "technical interviews," which is where companies put you in front of a whiteboard (or an online code editor for first-round phone screens) and ask you questions about data structures and algorithms. I studied these types of questions prior to entering the course. How to arrive at the solution, how to best implement them in JavaScript, how to sketch them out in diagrams, etc.

A good site for beginner-level questions is since they let you see other people's solutions. You'll learn a lot of good language tips this way.

Learning to Code: Week 29

Just make sure you can handle functions that take functions as parameters. If you are familiar with the map, reduce, filter functions and how to write them then that covers what use to be the interview questions.

Also be sure to engage with your interviewer. I am in introvert so I was dinged by my interviewer when I didn't talk. If you don't understand how to do something then start talking and articulating how you would handle something. This shows them how you think and what you would do  and how you think you might solve it.