This week has been a busy one. I’ve had interviews, worked on some labs, and have had social events in between. So far, I’m feeling pretty good about all of it.
More specifically, I’ve been keeping up with my Object Oriented Programming. As much as I would like to get into the specifics of what I’ve been keeping up with, I have to save it for next week.
I hope to write a blog discerning the differences between the two and hopefully help identify the key similarities and differences.
A Lesson from an Interview Question
Recently, I had an interview where this question came into play. Normally, I would be able to solve this pretty easily, however, the circumstances of the interview denied me the use of any external assistance and didn’t allow me to test my code.
That last part was the more difficult part for me. Anyway, I started pseudo-coding and was able to workout a pretty safe framework for how I thought the solution should look. …
Current Work-in-progress, JokeBook App
I’ve been working on my JokeBook app for a while, adding features and styling here and there, but I wanted to share how I was able to create an update function that allows a User to edit their Bio.
Since I am using a modal to open and close on click of ‘edit’, I created functions that opened and closed the modal in App.js.
Next, I created a handleUpdateUserBio function (still in App.js) that took in an event (in this case, I wanted to pass in the bio ONLY) and send it to the backend as…
What is a Block?
A Block in Ruby is a chunk of code between braces or between do..end that you can associate with method invocations, almost as if they were parameters.
Let’s look at a simple example:
puts 'Beginning of Method'
puts 'End of Method'
In this case, we would see the following code returned:
>Beginning of Method
>In the 'yield' block
>End of Method
A block is simply a chunk of code, and
yield allows you to "inject" that code at some place into a function. So if you want your function to work in…
Recently, I made a blog post that acted as an re-introduction to keeping my Ruby skills sharp. As promised, here is my follow-up to what I’ve been doing.
I’ve learned a few new things while going through my old online assignments, primarily how different Ruby is compared to other programs (duh). However, I wanted to write down the pros as I get back into all this.
Ruby on Rails is pretty time efficient (considering). Although it is relatively easy to learn the basics of this framework, it will take some time for you to unlock its true potential. …
Getting back into coding after a brief time getting your post-graduated ducks in order can be a challenge in itself. Like any skill, coding is one that (if not practiced) can be dulled and rusted.
After brushing up on my Ruby, I definitely felt my mental muscles slowly remember themselves. With all the varied coding languages out there, it’s strange how they can all be very similar, yet, implemented in such a different way. Almost annoyingly so.
Today, I spent the better part of the day flexing those old muscles and trying my hand at some Ruby practice problems. …
A Beginners Guide To Setting-Up a Basic React App
Get excited, because “there must be a better way” isn’t referring to some ethereal future notion of understanding…it’s referring to React.
If “excited” isn’t the right word, then I’ll let you stick to a react-ion your most comfortable with
Let’s start with going into our console.
This will install all the appropriate packages and scripts that a basic React app will need.
Once your console is done downloading everything it needs, go into your new project directory and start your app to make sure it is set-up properly.
Adding Audio to EventListeners
For that project, I created both the front-end and back-end code. In this blog, I’m going to go through the steps I took to add audio functionality for when the notes on my NoteBar were clicked.
Just for reference, I created a migration file in…
HTML and CSS usually go hand-in-hand. As we all know, the HTML is the ‘skeleton’ of the website and the CSS is how you want to style your website and make it look nice.We’re going to look at the basics behind styling HTML content with CSS Selectors.
CSS Selectors are used to find HTML elements and apply stylistic changes to those elements based on how specific you want that styling to be. There are 3 basic Selectors that can do this by calling on an element’s name, id, and class.
The element selector is used to…