Using React for the developing your site gives you lots of ways to quickly access and manipulate the state of your site. One great thing you can do with react is live searches without sending a post request.

So let’s say we have a basic listing of car brands that…


My Final Flatiron school project is A imgur.com clone which is built using a react-redux front end and ruby on rails backend.

To display my images on the homepage I have to get all the images and there information and add it to the react images state.

Step 1

I…


I’ve been working on my cli gem and about done all functionality is there, I just need to speed it up and maybe later improve the look/formatting of the output.But for now this blog post is about speeding up my gem.The …


By adding a JQuery front end to my event planner app I was able to add the ability to add information to my web application without refreshing my site page by using AJAX(Asynchronous JavaScript and XML).

The first step of creating my Ajax response was by stopping the natural function…


IF Statement

A simple if statement normally written.

if dishes_dirty == true
puts "wash the dishes"
end

The same code can be written on one line by first putting the output you want to return than condition after the if statement.

puts "wash the dishes" if dishes_dirty == true

If statements in ruby check if condition is true without explicit comparison since the statement is just a true or false boolean we can rewrite this code.

puts "wash the dishes" if dishes_dirty 

IF Else Statement

The normal way you would write a normal if else statement is.

if hungry == true
puts "Go eat"
else
puts "Take a nap."
end

IF Else Ternary operator

hungry == true ?  puts "Go eat" : puts "Take a nap."

The way this code works

condition ? condition meet output :else if condition not meet output

My first full Rails project was building a event budget planner.

The homepage is very basic with a signup page were you can sign up by entering your info or using facebook login.

Once logged in you are welcomed to a page that shows your event which you can click…


As part of my Flatiron Learn Verified program my second project was building a MVC Sinatra Project.

What is it?

The Web Application I built was A Wish List were you create a user account and user can create many wish lists and these list can have many items.

The…


Scraping is a very useful resource to get live up to date information from other website through there HTML information.

The first step is to tell your program what tools it will be requiring

require 'open-uri' require 'nokogiri'

Open URI is a module which is included in ruby which gives…

Vinesh Persaud

Full Stack Web Developer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store