Professional Documents
Culture Documents
Build An App in 3 Steps
Build An App in 3 Steps
It was a lot of trial and error; I didnt actually fully understand what I was doing. I didnt know any
web fundamentals how the Internet worked, the dierence between a web application and a
web site and I definitely could not have built an application from scratch.
When I first joined the bootcamp, I knew that I wanted to build some kind of indexing system
that would be as organized as a library system. But also, as pretty and graphics-oriented as
Pinterest. Now that Ive graduated, I want to build even more things. And I can.
The bootcamp was far from easy, but it was completely enriching and being able to build any
application I want? That feeling is absolutely amazing!
Id like to share that experience with you. I know that you may not have time to sign up for the
whole nine weeks so heres a fun little app that you can build within a super short time.
Enjoy! :-)
Code Fairy
nextacademy.com
NEXT Academy
One of the best things about it, is that it looks a lot like English. This makes it really, really easy
to read and write Ruby.
For a quick trial of how Ruby works, head on over to Try Ruby and finish the exercises there. Itll
only take 15 minutes (and was incidentally also my first ever exposure to the Ruby language).
Its really simple, especially if you understand the logic behind the app. Sometimes programmers
use pseudocode to understand what a client wants. Pseudocode is normal text that outlines a
process/function that a programmer can easily translate into code.
nextacademy.com
NEXT Academy
Heres an example of pseudocode that details how the Pig Latin translator will work:
Do you understand the pseudocode? Its pretty self-explanatory, isnt it? For our app, were
going to translate single words from English into Pig Latin.
Now, lets think about how we want the app to run. First, when we run the script, we want to
prompt the user to input a word. If the users word starts with a vowel, the word should look the
same. If its a consonant, however, the translator should remove the consonant from the front
and move it to the back of the word, as well as add ay. So the word apple would still be
apple but the word hello would be ellohay.
Heres the script that I wrote when I first wrote this application:
def pig_latin
puts "Type a word:"
word = gets.chomp
if word.start_with?("a","e","i","o","u")
word
else
consonants = ""
while word.start_with?(b,c","d","f","g","h","j","k","l","m","n","p",
"q","r","s","t","v","w","x","y","z","qu")
consonants += word.slice!(0)
pl_word = word + consonants + "ay"
puts pl_word
end
end
end
pig_latin
Run this script in the Ruby environment and see what happens! Now, try and write your own
version of this app.
nextacademy.com
NEXT Academy
Final Words
What I really love about programming is that there is no one correct answer or solution.
There are many ways that one can go about solving a problem or making something work. As
someone who has always had trouble with just following orders, this arrangement is ideal!
Now that youve dipped your toes in Ruby, do you think you might want to try more?
Codecademy has a great Ruby tutorial and you can learn about Rails using Michael Hartls Ruby
on Rails Tutorial.
Before I signed up for the bootcamp, I tried learning coding online but found it rather slow as I
didnt have someone available to show me the ropes. At NEXT Academy, I had mentors and
classmates that I could discuss my programming challenges with. Even now, when building my
own applications, I sometimes run into trouble and I know that I still have a community that I can
go back to seek help from.
If you would like to be part of a community like that you can sign up here: APPLY NOW
nextacademy.com