So you think you know how to code huh? That’s what I thought when I finished my boot camp, and then I did my first technical interview. Wow was that a shocker, it really put me in my place and made me realize I knew way less than I thought. Even if you are smart enough to solve an algorithm, it doesn’t mean you did it in an efficient way. This is where Big O notation comes into play. Big O measures how quickly your code will compute relative to other methods of solving the same problem. …
On May 14, 2018 the United States Supreme Court reversed their decision on the Professional and Amateur Sports Protection Act of 1992. Before this was overturned it was only legal to bet on sports in the state of Nevada. Since the decision was made to overturn it, 20 states have legalized sports gambling and another 6 states have passed bills that will take effect in the next few months. You might be curious at just how big is the sports gambling industry since its federal legalization? Well, experts estimate that over $20 billion has been bet so far and the…
Be sure to check out more of my blogs here and follow me on LinkedIn here.
Do you ever get that spooky feeling that someone is watching you? Sometimes even listening in on your conversations? Well, I’m sure google hears everything but we’re here today to talk about how a web page can listen to everything you do. From clicking on buttons to constantly watching where the mouse is many modern websites are built to change depending on how you interact with them. This is all based on the javascript frontends of the website but relies heavily on a framework…
Most of us have been dreaming in our sleep since we were little kids. Sometimes it’s the most wonderful out of body experiences while other times it’s dark spooky nightmares. Hopefully the good overcomes the darkness and you wake up in a good mood. That is until coding boot camp starts and you're waking up in the middle of the night in a frantic trying to remember the proper syntax for a for loop. Don’t worry you are not alone, it is a common problem for students to dream about their code when they start a boot camp. …
If you thought loops were a powerful way to iterate through your code you better strap in for these enumerables. Enumerables are built-in methods for ruby that give you the power to iterate through code and transform it in many ways. We will start by discussing the basic enumerable “each” as well as some more sophisticated ones.
All enumerables are based around the .each method. As you would think the .each method iterates through each value in an array and executes the code between the two keywords do and end. In the example shown here, it will start with 1…
Growing up in the city, when someone starts talking about loops my brain immediately thinks of a highway. This helps me envision how a loop in Ruby works as well. There are many different types of loops and when you are first learning it can be difficult to understand how they work. Once you master them however you can be a mean driving Ruby machine. Using loops can help eliminate repetitive code and make complex tasks simpler.
Full Stack Software Engineer with a background in Petroleum Engineering