Open Side Menu Go to the Top
Register
Programming homework and newbie help thread Programming homework and newbie help thread

06-09-2015 , 01:39 PM
You will learn how to do actual stuff in an internship if you get one.
Programming homework and newbie help thread Quote
06-09-2015 , 11:34 PM
still undecided if I should go for one. I'd need a paid one so I could quit my job, but I hear that's kinda the norm around here. Co-chair of the dept told me they really try to help out students with internships when they have as high of grades as i do.

related:
summer course is 18% done, I'm 87% done with all the course work, probably 100% tomorrow
Programming homework and newbie help thread Quote
06-09-2015 , 11:46 PM
Apply for internships at big companies, on average they pay $30 an hour to interns.
Programming homework and newbie help thread Quote
06-09-2015 , 11:48 PM
****, maybe in silicon valley or at microsoft, not around these parts. They don't even pay that to entry-level programmers in the midwest
Programming homework and newbie help thread Quote
06-09-2015 , 11:52 PM
Wouldn't hurt to try applying anyway because they pay for relocation too.
Got 4k in relocation to work in Austin TX, so you don't necessarily have to be in silicon valley.
Programming homework and newbie help thread Quote
06-10-2015 , 01:00 PM
Quote:
Originally Posted by Low Key
****, maybe in silicon valley or at microsoft, not around these parts. They don't even pay that to entry-level programmers in the midwest
I am in the Midwest. We pay our coops between 20-25/hr.
Programming homework and newbie help thread Quote
06-10-2015 , 02:13 PM
right? I see loads of postings for interns $15-20/hr, entry level $20-25/hr. Damn broke ass cattle farmers.

70% thru ruby on codecademy, getting really fun. Also hilarious how I'm to the point where they have to, as every language that you learn does, go back over some past thing they've taught you and then teach you how it was wrong and NO REALLY this is the way it is.

This stuff would be very hard to learn for someone with trust issues.
Programming homework and newbie help thread Quote
06-10-2015 , 02:23 PM
Quote:
Originally Posted by Low Key
right? I see loads of postings for interns $15-20/hr, entry level $20-25/hr. Damn broke ass cattle farmers.

70% thru ruby on codecademy, getting really fun. Also hilarious how I'm to the point where they have to, as every language that you learn does, go back over some past thing they've taught you and then teach you how it was wrong and NO REALLY this is the way it is.

This stuff would be very hard to learn for someone with trust issues.
I find that the most annoying thing about self learning and the beginning resources available.
Programming homework and newbie help thread Quote
06-10-2015 , 02:40 PM
college has been exactly the same way, and i've learned two languages there so far =-/
Programming homework and newbie help thread Quote
06-10-2015 , 10:12 PM
Even though this is illegal, at least this employer is totally upfront:



I live 20 minutes away, if that.
Programming homework and newbie help thread Quote
06-10-2015 , 10:47 PM
a+ for honesty at least

so I finished the codecademy ruby track today, quite proud. I go to do the ruby project which involves test-driven development and realize I've forgotten all the early basic stuff, but man do I know the **** out of classes, inheritance, hashes and procs!

Was excited because it said I was 51% done. And then I realized that I'm 51% done with section 2 out of the 7 main sections. Started part 2 so long ago I completely forgot how the odin project was even laid out.

fml
Programming homework and newbie help thread Quote
06-10-2015 , 11:11 PM
Low Key how is the content on codeacademy??
Programming homework and newbie help thread Quote
06-11-2015 , 05:49 AM
codeacademy when I've looked at it has been pretty beginnerish, which is fine if that's what you're looking for.

I did "Shaping up with AngularJS" on CodeSchool and was impressed. Good intro for people already familiar with programming. Wouldn't recommend it now with Angular 2.0 set to change things drastically though :P
Programming homework and newbie help thread Quote
06-11-2015 , 06:39 AM
Quote:
Originally Posted by ChrisV
codeacademy when I've looked at it has been pretty beginnerish, which is fine if that's what you're looking for.

I did "Shaping up with AngularJS" on CodeSchool and was impressed. Good intro for people already familiar with programming. Wouldn't recommend it now with Angular 2.0 set to change things drastically though :P
Thanks!
Programming homework and newbie help thread Quote
06-11-2015 , 07:17 AM
Aw boo. Was really excited when I heard they released an Angular section. (Edit: oh, you said code school! Looks like Codecademy uses 1.x as well though)

Grindin, it's good for getting your feet wet, if not a little difficult to absorb due to moving so rapidly between concepts with minimal application and review.

Codecademy is definitely better than some of the assignments Odin Project has you do, like the Rspec code school stuff which has no instructions or way of learning at all.
Programming homework and newbie help thread Quote
06-11-2015 , 06:53 PM
Its possible angular 1.x will continue to be a thing but Id wait and see what happens at this point.
Programming homework and newbie help thread Quote
06-11-2015 , 10:29 PM
Just discovered https://www.hackerrank.com/
Embarrassed how little progress I made. Excuse is its a new language.
Programming homework and newbie help thread Quote
06-12-2015 , 11:29 AM
doing much better today. figured out the errors I was making yesterday quickly and got that one solved. Done a few others too. Wish they gave more sample data tests on some of these.
Programming homework and newbie help thread Quote
06-12-2015 , 01:18 PM
Quote:
Originally Posted by Low Key
doing much better today. figured out the errors I was making yesterday quickly and got that one solved. Done a few others too. Wish they gave more sample data tests on some of these.
Fwiw, there's a 'Test against custom input' checkbox at the bottom of the form that will let you add your own test sets.
Programming homework and newbie help thread Quote
06-12-2015 , 01:37 PM
yeah, i tried that, but it doesn't run it against anything to let you know if it produced the proper (expected) results or not
Programming homework and newbie help thread Quote
06-12-2015 , 03:12 PM
Quote:
Originally Posted by Low Key
yeah, i tried that, but it doesn't run it against anything to let you know if it produced the proper (expected) results or not
Ah... gotcha.
Programming homework and newbie help thread Quote
06-12-2015 , 07:41 PM
so i have this piss ugly mess of ruby code for testFirst's pig latin tests (testing the translate function)

Code:
def translate(word)
 (vowel_start(word)) ? word << "ay" : concat(word) << "ay"
end

def vowel_start(word)
  if (word[0] == 'a' || word[0] == 'e' || word[0] == 'i' || word[0] == 'o' || word[0] == 'u')
    return true
  else
    return false
  end
end

def concat(word)
  word_end = word[0]
  new_word = word[1..word.length-1]
  until (vowel_start(new_word)) do
    word_end << new_word[0]
    new_word = new_word[1..new_word.length-1]
  end
  new_word << word_end
end
just got thru refactoring so it'd handle words like "school" or even longer sets of consonants, because some of the later tests do tons of consonants in a row. Felt good about that.

But then they start adding multiple words! Bastards!

I think i've been going about this all wrong, just looking at the first failure and writing for that, then rewriting / trying to work around what I have. In this case, where we get into longer phrases and ones that have "qu" to deal with, it seems like it'd be easier to start from scratch.

That seem like the case or no? Is that usually the case, or are those more experienced with tdd likely to read all the tests first?
Programming homework and newbie help thread Quote
06-12-2015 , 08:39 PM
Quote:
Originally Posted by Low Key
Just discovered https://www.hackerrank.com/
Embarrassed how little progress I made. Excuse is its a new language.
I've used that a few times. Pretty sure doing the 10 or whatever I did put me in the top 10%.

I kind of recall an employer using this site or something similar as a code testing area. They had their own custom questions.
Programming homework and newbie help thread Quote
06-12-2015 , 08:53 PM
low key, I don't know Ruby well:

Code:
if (word[0] == 'a' || word[0] == 'e' || word[0] == 'i' || word[0] == 'o' || word[0] == 'u')
would be better as (if you can do this):

Code:
if (word[0] in 'aeiou')
I'm not sure about this, but I'd think:

Code:
new_word = word[1..word.length-1]
could be rewritten something like this?

Code:
new_word = word[:-1]
I also don't think you need to return true or false for the vowel_start function. I'd probably write a function for words that start with vowel and a function for words that start with consonants, returning whatever it should be directly from the functions.

At this point, you can just use a dispatch function that test the vowel or consonant of the individual word and then a function that loops over the sentence (where a "sentence" can be length 1).
Programming homework and newbie help thread Quote
06-12-2015 , 09:10 PM
I definitely appreciate the feedback as I'm about as ruby-n00b as it gets, but I just started learning about test driven development and that's why I posed the question. Sorry if that wasn't more clear.
Programming homework and newbie help thread Quote

      
m