Skip to content

Instantly share code, notes, and snippets.

@garcia50
Last active August 8, 2017 01:43
Show Gist options
  • Save garcia50/c87411e64b06cde2c00a9876eb0d23e6 to your computer and use it in GitHub Desktop.
Save garcia50/c87411e64b06cde2c00a9876eb0d23e6 to your computer and use it in GitHub Desktop.
Prework

ON GOING

29 Behaviors

Google’s my life! Its definitely not a coincidence that its first on the list, for me its always a go to first. I’ve already understood so far through the pre-work that google can become a very helpful and valuable resource to use. The next behavior that resonates with me as an upcoming developer kinda started on its own, the reason being is that I never liked to waste my time and I like to be as efficient with it as I am mindful of the value that it holds. “Code is cheap”, I have already witness this experience in the game we built for our pre-work and in other practices I took. I can definitely resonate with a lot of these behaviors and I know I was supposed to pick 3 but I feel like the 8 and 29 behaviors can be similar. Before anyone can admit it, I guarantee you I’ll be the first to admit that “I don’t know”…seriously I don’t! I’m a little overwhelmed on how much information there is and how much there is to learn, and thats where the “Move Fast and Break Things” behavior comes to play in my life. As a beginning developer I feel like I can learn a lot by making mistakes and messing up and so far it proved itself true by the little programming I’ve done so far.

Checklist

Maintaining oneself organized throughout can have a tremendous impact in ones life. I find being organized crucially important because it definitely coincides with time management, which can effect my productivity, which can later hinder literally everything else. And in this example I find the idea of a check list a great one. I myself create a checklist on a regular basis of normal everyday things like, goals, errands, basic necessities, priorities, chores, etc. I do this to ensure clarity, to be more efficient with my time or anyone else’s, faster accessibility, less stressful and chaotic life and to save me MONEY!

Strength-Base

What is your impression of strengths-based development? What questions do you have about this kind of development?

I would have to agree with part of the first article that perhaps some methods of filtering out candidates is “unethical, and in many cases illegal” due to their shared methodological limitations and I will also agree that being that its the 21st century, we need to update our methods. I do believe that allowing someone to focus on their strengths, and capitalizing on them, can be beneficial not only for themselves but maybe for the team or company that their in. As the saying goes “if it ain’t broke, don’t fix it”, sometimes trying to change something or someone that already clearly has a strength in a particular area can be damaging for the individual and their team. Unless it’s to purposely expand their growth in knowledge and exercise their understanding then it’s better to focus on what you know you’re really good at.

What do you feel are your top strengths? How do you know?

I believe my top strength would have to be that I am a good problem solver; I'm relentless and persistant when it comes to finding solutions for any problem.

How do you hope to develop your strengths for your new career in software development?

I'm going in head first and headstrong with a positive and optomistic view on everything! I'm going to go the extra mile in every area and make sure I stay focused. I will find all the help I can get, ask as many questions as possible, build relashionships with my mentorsa and instructors, connect with others in my position, and take advantage of every learning moment.

EMPATHY

What role does empathy play in your life and how has it helped you? + Why is empathy important for working on a team?

I have found that having empathy in my life has helped me understand the situations around me and the people involved in them. It has taught me how to deal with certain types of people due to their curcumstances either past or current and by doing so allowing me to either be of support or become supported. We may walk past people everyday and little do we know what mountains they face, which is why it is important that when engaged with people either through converstaion, or by sheer happenstance one must be in touch and ready to use and to have empathy for anyone.

How does empathy help you build better software?

It helps me by having a better understanding of what the client is actually trying to achieve. Besides understanding their thoughts and specifications on the project at hand, knowing how it makes them feel and how it motivates them helps me become as motivated and emotional about the work.

Describe a situation in which your ability to empathize with a colleague or teammate was helpful.

During a big project at my old job we had a months deadline we had to meet. I noticed his performance drop and little by little it began to take effect. Sadly, I came to understand that two of his relatives had recently passed, I decided to buy him lunch and take that oppertunity to talk to him and help share his thoughts, eventually I brought the news to my supervisor and he gave him a few days off, which was usually very uncommon for him to do, and he gave him a few paid days off. After spending time with his family he felt a lot better and was able to come back to work. Needless to say we were able to finish the project in time.

When do you find it most difficult to be empathetic in professional settings? How can you improve your skills when faced with these scenarios?

There are many reasons I have found it difficult to be empathetic for example, if I'm in a terrible mood myself, or extremely exhausted or in a huge hurry. Also when the person who I'm trying to be helpful and empathetic towards does not allow me to do so and thus allow their frustrations or circumstances affect their performance in work setting, therefore inturn frustrating me and making me anxious. I've learned that by having more patience I can extend my empathy and improve this skill.

DAY 1

Did you run into any issues?

Besides getting adjusted from being a Windows to Mac computer user and remembering all the keyboard shortcuts and layout, setup was pretty simple and clear to follow.

How do you open Atom from your Terminal?

From my terminal I type in atom

What is the file extension for a Ruby file?

.rb

What is the Atom shortcut for hiding/ showing your file tree view?

command \

What is the Atom shortcut for quickly finding a file (fuzzy finder)?

command t

What does pwd stand for, and how is this command helpful?

pwd stands for print working directory, it prints the full path to your current directory.

What does ls do? What about cd and mkdir?

ls stands for list directory and does just that, it displays the contents of the current directory.

What does hostname tell you, and what shows up in YOUR terminal when you type hostname?

The name of the computer and the current user you are in.

DAY 2

What command is entered into the command line to enter an 'irb' session?

Simply type irb

What is the expression used to express a number squared?

**

What is the ruby command used to output something to the terminal?

Print and puts

How is a ruby file run from the command line?

First type Ruby then file_name.rb, remembering to add the .rb extension letting the terminal know your're about run a Ruby file.

If a # is at the beginning of a ruby line in Atom, what does that indicate?

It indicates that it is a comment, not part of the code.

What will "turing".length return?

6

DAY 3

What is a pomodoro break?

Like my "Be Focused" app the pomodoro break is a method that helps manage your time by seperating work intervals(traditionally 25 minutes) and short breaks(usually 5-7 minutes).

Variables

How do you create a variable?

Variables are crated by assigning a value using a singal equals sign(=).

What did you learn about the rules for naming variables?

All variable names must begin with a letter of the alphabet or an underscore( _ ). After the first initial letter, variable names can also contain letters and numbers. Uppercase characters are distinct from lowercase characters. You cannot use a C++ keyword (reserved word) as a variable name.

How do you change the value of a variable?

To change the value of a variable simply assign the new value to the existing variable using the equals sign.

Datatypes

How can you find out the class of a variable?

Type .class after the variable name.

What are two string methods?

1)include? 2)to_s

How can you change an integer to a string?

By using the .to_s method.

Strings

Why might you use double quotes instead of single quotes in Ruby?

Using double quotes allows you to use string interpolation, single qoutes does not.

What is this used for in Ruby: #{}?

String Interpolation.

How would you remove all the vowels from a string?

By using the .delete('aeiou') method.

Input & Output

What do 'print' and 'puts' do in Ruby?

puts (put string) is a way of printing information to the user of your program. print is like puts but doesn't make a new line after printing.

What does 'gets' do in Ruby?

gets, or get string, pauses your program and waits for the user to type something and hit the enter key.

DAY 4

Numerics and Arithmetic

What is the difference between integers and floats?

They're two different types of objects; integer(whole numbers), Floats(decimal numbers)

What is the ruby command to find 2 to the 2nd power?

**

Booleans

What do each of the following symbols mean?

  • == Equal(evaluate to the same value)
  • >= Greater-than or equal to
  • <= Less-than or equal-to
  • != Not equal
  • && Boolean AND
  • || Boolean OR

What are two Ruby methods that return booleans?

.include? and .empty?

Conditionals

What is flow control?

Flow control allows our programs to make decisions for us and it is found in most object oriented programming languages.

What will the following code return? apple_count = 4

...'Not many apples...'

What is an infinite loop, and how can you get out of one?

An infinite loop is a loop whos condition cannot be made false therefore causing the loop body to run forever, you can get out by terminating the program by typing ctrl+c.

Nil

What is nil?

nil is a special Ruby data type that means "nothing". It's equivalent to null or None in other programming languages.

Symbols

How can symbols be beneficial in Ruby?

Besides helping Ruby use memory more efficiently, symbols let Ruby variables point to the same object in several places instead of allocating a new copy.

Does naming symbols use the same rules for naming variables?

Yes they do.

Arrays

What method can you call to find out how many elements are in an array?

You can use the .count method

What is the index of pizza in this array: ["pizza", "ice cream", "cauliflower"]?

The index of pizza is 0

What do 'push' and 'pop' do?

push adds a new element to the end of the array and pop removes (and returns) the element at the end of the array.

Hashes

Describe some differences between arrays and hashes.

An array is like a list, a collection of data in some kind of order. You can look up a piece of data by using the number it comes in on the list. A hash is like a collection of pairs of information, and each pair is made of a name and a value. The name is called a key, and it must be unique. You use the key to return the value paired to it.

What is a case when you might prefer an array? What is a case when you might prefer a hash?

An array is prefered when order in data is important. A hash is prefered when grouping large amounts of related data.

DAY 5

Exercise 1

The “T” from “Turing”.

[0]

The length of “Turing”.

.length

Make the whole string capital letters.

.upcase

Delete the “n” from “Turing”.

.delete("n")

Assign “Turing” to a variable.

=

Exercise 2

What does gets do?

gets lets the user input a line and returns it as a value to your program.

What is the difference between the input without the .chomp and the input with the .chomp?

Without the .chomp you get a line of text, including a line break at the end. Calling chomp on a value removes the line break.

What does fav_num.to_i do?

It changes the output of fav_num to an integer, in this case it will be 0, since we haven't assigned it to any specific number.

Exercise 3

What does animals.length return?

4

What does animals[0] return?

"dog"

What does animals.empty? return?

false

What are two different ruby commands that add to the animals?

push and <<

What ruby command is used to remove the last element from the array?

.pop

DAY 6 & 7

#Program selects a random number. 
number = rand(1..100)
#Ask user to make a guess and enter it in the prompt. 
puts "I have generated a random number for you to guess, what is your guess?"
print "Enter your guess here: "
#Starting our count at zero to begin counting the loop.
count = 0 
#loop over the users guesses and helps until user has guessed correct
loop do 
  guess = gets.chomp.to_i
  count += 1
  
  if guess == number
    puts "You guessed the right number!"
    break
  end
#Once count reaches count 3, the program ask's the user for help.
  if count == 3 
    print "Cheating is a choice not a mistake...wanna cheat? (Y/N): "
    response = gets.chomp.to_s
    puts
    case 
    when response == 'y'
      print "Keep CALM cheating IS GOOD... here's a hint: "
     if number.even? 
        puts "it's even"
        count = 0
     else
        puts "it's odd"
     count = 0
     end 
    when response == 'n'
      puts "OMG your're so loyal!"
      puts
      count = 0 
    when response != 'y' || response != 'n' 
      count = 0
    end
    #Program gives different comments to user to continue guessing 
    comments = ["Guess again ", "Keep guessing ", "Keep trying "]
    print comments.sample
    count = 0
  end
#Program tells user if he/she is high or low. 
  if guess < number
    puts "Try higher!"  
  elsif guess > number
    puts "Try lower!"
  end
end

Learning Goals

Were you able to get through the work? Did you rush to finish, or take your time?

I took my time and finished relaxed without feeling rushed or pressed to finish soon.

What do you feel most confident about?

I feel confident that I will be fine when Turing starts and when it comes to learning how to program.

What do you feel least confident about?

Honestly, there isnt a single thing that I'm the least confident in, however I would say that when it comes to writing code I find myself at a lost to figure out what the proper syntax is to make the code work properly. But I know it's because of my lack of knoweledge.

What are you most looking forward to learning more about?

I'm looking forward to fully understading Ruby Syntax and gettnig to the point where we start building our web apps.

What topics would you most like to see reinforced by instructors?

Ruby Syntax, Ruby Rails, real life work projects, how a real job looks like and what kinds of things will we be expecting after fnding a job.

What is most confusing to you about what you've learned?

Understanding Ruby syntax.

What questions do you have for your student mentor or for your instructors?

Is it a good idea to work and do Turing at the same time? How are the class enviroments like? Is there enough students-mentoring and instructors to go around for every student? Up to what time in the day are instructors and student mentors available till?

What do you feel was most successful in your game?

I'm sure there is a way simpler way of writing my code, but I'd like to think that its pretty simple and therefore the most succeful part of my game.

What was the most challenging part about creating the game?

Again, good'ol ruby syntax was the most challenging part. I feel like understand enough of what each particular datatype, method and overall the building blocks of ruby is and how they fuction, but its the "putting together" and writing out code to work properly that gives me struggle.

When you reached a challenging part of the game, how did you move forward?

Google!

Priorities

Functions: How do you call a function and store the result in a variable? -"To call a function, first say the name of the function, then send in the values the function needs to do its job."

Describe the purpose of the following in Ruby classes: initialize method, new method, instance variables.

initialized method- "A method that saves the initial data your object is created with (here, a radius) and performs any other required set-up." new method- a method that creates a new instance of your object, arguments passed into the new method are sent to your initialize method. instance variables- "An instance variable has a name beginning with @ , and its scope is confined to whatever object self refers to. Two different objects, even if they belong to the same class, are allowed to have different values for their instance variables."

In your Gist, write a bit about what you found most challenging, and most enjoyable, in creating your program.

The most challenging part I found to be was doing the program mostly on my own, not because I had to but because I wanted to. My mentor allowed me to challenge myself in that way. I did find enjoying because I found myself learning things on my own(even though it felt like forever)...in the end I finally received some much needed help to complete my program.

@garcia50
Copy link
Author

screen shot 2017-07-13 at 11 02 00 am

@garcia50
Copy link
Author

screen shot 2017-07-18 at 12 21 12 pm

@garcia50
Copy link
Author

screen shot 2017-07-18 at 11 53 37 am

@garcia50
Copy link
Author

screen shot 2017-07-18 at 11 49 26 am

@garcia50
Copy link
Author

garcia50 commented Jul 25, 2017

Dinner Date

screen shot 2017-07-25 at 11 26 15 am

@garcia50
Copy link
Author

screen shot 2017-07-25 at 12 02 09 pm

@garcia50
Copy link
Author

screen shot 2017-07-26 at 10 19 35 pm

@garcia50
Copy link
Author

screen shot 2017-07-27 at 2 00 20 pm

@garcia50
Copy link
Author

screen shot 2017-07-28 at 2 10 26 pm

@garcia50
Copy link
Author

garcia50 commented Aug 6, 2017

screen shot 2017-08-06 at 5 52 56 pm

@garcia50
Copy link
Author

garcia50 commented Aug 7, 2017

screen shot 2017-08-06 at 8 14 21 pm

@garcia50
Copy link
Author

garcia50 commented Aug 8, 2017

screen shot 2017-08-07 at 7 41 45 pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment