Where communities thrive

• Join over 1.5M+ people
• Join over 100K+ communities
• Free without limits
• Create your own community
Activity
Brian Caldwell
@Caldwerl
That sure is a thing
Matthew Conquergood
@kristjin
oi vey
I mean it was just... it was hilarious really. Just start to finish. So it was just one of the things I had going on with this project which has been particularly rude. :)
so glad when it's over.
jongmink
@jongmink
Hi Brian. I have a question about merge sort. Many websites demonstrate how to merge two "sorted" arrays into one array, but they don't explain how to sort the two arrays....
Matthew Conquergood
@kristjin
I might use comic sans for my font on the notifications, because I can think of nothing more appropriate really.
Brian Caldwell
@Caldwerl
When merging
You break up the arrays until they are a single piece of data
You sort them when putting them back together
If you havent seen many algorithms like this before there are simpler less efficient ones I would suggest doing first to get the general idea of it understood
jongmink
@jongmink
Yeah, I should use a different sorting algorithm. The example is helpful though. Thanks!
Brian Caldwell
@Caldwerl
check out http://bigocheatsheet.com/ if you havent already
Matthew Conquergood
@kristjin
Hey Brian, apparently I missed responded to the class 5 and 6 attendance quizzes. Can you update both of those to show I attended? I did.
Looks like I missed week 3 feedback too but that's ok. I'll have feedback for the last week when that survey is available.
ahem Make that the attendance quiz for class 5, 6, and 7. >.<
Brian Caldwell
@Caldwerl
Will do
Matthew Conquergood
@kristjin
tx
jongmink
@jongmink
Hi, Brian. I have a question about "setTimeout." I created a while loop to sort a deck of cards. When I included "setTimeout," it creates infinite loop. Do you have any suggestions? Here is my code below.
var sort = function() {
has_moved = true
while(has_moved) {
has_moved = false
for (i = 0; i < $('li').length; i++) { var first_item =$('li').eq(i)
first_item.addClass('highlight');
$('li').eq(i+1).addClass('highlight'); if (parseInt(first_item.attr('id')) > parseInt($('li').eq(i+1).attr('id'))) {
\$('li').eq(i+1).after(first_item);
has_moved = true
}
}
}
}
Brian Caldwell
@Caldwerl
if you want it to repeat, you should use setInterval
if you want it to perform a function once after a set amount of time, you should use setTimeout
Here is a bit of detail on how to go about that
My suggestion if you want the while loop to move at a slowed down pace, replace the while loop with a setInterval
and remember to use clearInterval() when you reach a stopping point
jongmink
@jongmink
Thank you. It looks like it's working......
Matthew Conquergood
@kristjin
FYI Lindy is saying we either have to test out of the GitHub class or attend. Any idea how I test out?
Brian Caldwell
@Caldwerl
I guess link to your github? Ask her for details
Brian Caldwell
@Caldwerl
Id recommend the class honestly, there are a lot of concepts in there that we didnt really touch on like branching, merging, pull requests etc
Matthew Conquergood
@kristjin
you mean for JS?
oh, you mean for github
ugh, it's 8 hours!
I don't wannaaaa.... :)
Brian Caldwell
@Caldwerl
Thats what the DA is gonna be
Buckle up
Matthew Conquergood
@kristjin
Yeah, I don't mind 8 hours a day for the DA
but these are always on a Saturday. boo
If I can just test out, I'll do t hat before the Python F2
Brian Caldwell
@Caldwerl
Opportunity costs
Matthew Conquergood
@kristjin
I did finally get a reply back from Linday who is going to take care of moving me over to the Python class.
If you know anyone who was interested in JS but missed it, I'm leaving it, so they could possibly get my spot.
Brian Caldwell
@Caldwerl
maybe let the general class chat know
Matthew Conquergood
@kristjin
nod
Matthew Conquergood
@kristjin
So I just turned in my last project. IT's not very pretty but it works. I noticed i missed the last attendance quiz, of course. Maybe you could update that last one for me. :) It's been a real pleasure to work with you!
Brian Caldwell
@Caldwerl
Got it.
It was a pleasure working with all of you as well.
Matthew Conquergood
@kristjin
Hey Brian, I didn't see my actual growth plan there... can you help with that? Thanks!
Brian Caldwell
@Caldwerl
You should be able to see them when you log in to the app thing now.