Profile

Cover photo
Brandon Manson
Works at The Michigan Beer Show
Attends coLearning
Lives in East Lansing, Michigan
97 followers|8,037 views
AboutPostsPhotosYouTube

Stream

 
My technical post this week delineates between Ruby class methods and instance methods. And I'm still using college basketball as an example. Oops.
1
Add a comment...

Brandon Manson

Discussion  - 
 
Worth the read!
From debugging to version control, programming in the real world requires a set of skills they just don’t teach in school
4
Jessica A's profile photoAndrew McClellan's profile photoBrandon Manson's profile photo
3 comments
 
Good read Brandon - thank you.

I'm happy to see that we're already learning at least the basics of most of the items on the list!
Add a comment...
 
And here's my technical for the week. I hope we've got some college basketball fans out there!
1
Sarah Taurchini's profile photoBrandon Manson's profile photo
2 comments
 
Sorry, Sarah. I couldn't bring myself to use Michigan or Ohio State. And we lost to UConn in the Elite 8, so I feel your pain.
Add a comment...

Brandon Manson

Discussion  - 
 
Technical question: for that second die challenge, is there any special syntax needed to get the number of sides? Here's what I have:

def sides
  num_sides =@labels.length
end

What has anyone else done? Am I missing something? Thanks!
1
Zach Taylor's profile photoMelissa Porto's profile photo
2 comments
 
Thanks for both this question and the answer!! :)
Add a comment...

Brandon Manson

Discussion  - 
 
For once I've managed to get in a short and sweet post. I, too, am giving my take on women in tech, from a white dude's perspective. Let me know your thoughts. This is not meant to be a finished piece; more of a jumping-off point for future conversation! If there is a group of people in the tech world to start making a difference in this issue, it's us here at DBC!
1
Sarah Taurchini's profile photoBrandon Manson's profile photo
2 comments
 
Thanks, Sarah! I couldn't agree more. I hope more people start realizing this and start doing something about it!
Add a comment...

Brandon Manson

Discussion  - 
 
Any chance that Ruby 2.0.0 doesn't play well with the test code? Anyone else getting this error? array_total_spec.rb:3:in `<main>': undefined method `describe' for main:Object (NoMethodError)
1
Jessica A's profile photoBrandon Manson's profile photo
3 comments
 
+1 for coffee ;)
Add a comment...
Have him in circles
97 people
James Williams's profile photo
Jennifer Miller's profile photo
Sandi Quaderer's profile photo
Rob Kates's profile photo
Michael Fragale's profile photo
Paul Jaques's profile photo
Sarah Reid's profile photo
 
Here's my cultural blog for the week. Starts a little slow but picks up steam as it goes. My suggestion: focus on the individual. Let's stop lumping people together, shall we?
1
Jessica A's profile photoBrandon Manson's profile photo
2 comments
 
I'm gonna do my best!
Add a comment...
 
Hoping someone can help me with this... I am trying to refactor my code from the Credit Card challenge and this piece of code is returning an error:

double = num_array.collect do |num, index|
       if index.odd? == true
              num *= 2
       else
              num
       end

The error message is telling me that index is nil. Any idea why? Thanks! 
1
Kyle Daugherty's profile photoBrandon Manson's profile photo
2 comments
 
Thanks, Kyle! That worked great!
Add a comment...
 
Hey all! Sorry for posting late. Here is my week 5 cultural blog. Lots of parallels to my time in music school, but you folks are infinitely more kind and helpful!
1
Add a comment...

Brandon Manson

Discussion  - 
 
Any help us appreciated with this. I can't figure out why the bad card test keeps failing! 

def initialize(card_number)
@card_number= card_number
raise ArgumentError.new("Card number must be 16 digits") if @card_number.to_s.length!= 16
end

def check_card
sum = 0
card_array =@card_number.to_s.split('')
card_array.map!.with_index {|num, index|
if index.even? == true
num *= 2
else
num = num
end
}
card_array.join.split("")
card_array.map!.inject {|n| sum + n.to_i}
if sum % 10 == 0
return true
else
return false
end

end

end
1
Brandon Manson's profile photoHelin Shiah's profile photo
2 comments
 
Thanks, Helin!
Add a comment...
 
Also adding my technical blog post about #map  and #collect   
1
Add a comment...

Brandon Manson

Discussion  - 
 
Ugh. This week is not going well. Can anyone tell me why I'm getting an undefined method error for this? 

def my_array_finding_method(array, letter)
array.select { |i| i.include?(letter)}
end

Thanks!
1
Michael Yeung's profile photoBrandon Manson's profile photo
2 comments
 
Thanks, Michael! That totally worked!
Add a comment...
People
Have him in circles
97 people
James Williams's profile photo
Jennifer Miller's profile photo
Sandi Quaderer's profile photo
Rob Kates's profile photo
Michael Fragale's profile photo
Paul Jaques's profile photo
Sarah Reid's profile photo
Work
Occupation
Technologist
Employment
  • The Michigan Beer Show
    Creator, Producer and Host, 2013 - present
  • Michigan State University
    Video Producer, 2013 - present
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Currently
East Lansing, Michigan
Previously
East Lansing
Links
Other profiles
Story
Tagline
Technologist, Musician and Beer Lover
Introduction
Aspiring software engineer finally starting to figure things out. I used to sing opera and have a podcast about beer!
Education
  • coLearning
    iOS Development, 2014 - present
  • Michigan State University
    Vocal Performance, 2008 - 2012
Basic Information
Gender
Male