Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link

Ryan Bishop

Ranch Hand
+ Follow
since Feb 26, 2014
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ryan Bishop

Thanks Bill. I appreciate your help.
5 years ago
Thank you everyone for the replies. I’m not sure what I’m interested in when it comes to math. Ideally, I’d like to have a solid grasp/base of mathematical ability that will allow me to venture off into other areas, especially understanding algorithms and math related to computer science. It’s more like I’m going on a trip and need help just finding clothes, luggage, and the like, let alone determining where I’m going to go. It’s been over ten years since I took calculus and when I took that a lot of my mistakes were with algebra, especially problems involving multiple complex fractions.

But, I’ve ordered the below books:

How to Solve It by G. Polya

Intermediate Algebra by C. McKeague

Precalculus by R. Blitzer

Trigonometry by C. McKeague

Mastering Algebra by Dan Hamilton

Discrete and Combinatorial Mathematics by R. Grimaldi

I got those really cheap. If anyone has any other recommendations, I’d appreciate it.

Thanks again for the responses. They’re really helpful.
5 years ago

I realize this is probably the wrong forum to ask this question but didn't see one for math. I used to post on here when I was learning Java as a hobby. Recently, I've begun getting more interested in the entire area of computer science and realize what an enormous hole I have when it comes to mathematics. I've taken up to Calculus (a long time ago) but recently signed up for Finite Math (starts in August). I've always found the people on here extremely helpful and was wondering if anyone had any recommendations for mathematics related to computer science.

When I see posts on other boards, such as StackOverflow, the answers are pretty patronizing, such as people quoting "good" when someone asks for a good recommendation. Ideally, I'm looking for any recommendations for College Mathematics, Discrete Math, Algebra related to computer science, and the like for self-study. I like Kahn Academy a lot but would like to use textbooks that are clear and well written for a moron like me. It's also important I can have access to answers so I can see if I'm getting stuff right on the problems at the end of the chapters. (I've noticed some book reviews on Amazon express frustration where people learning on their own have no idea if they're answering problems correctly.)

To put it in perspective, I would look at it like you're recommending a math book to the dumbest person you know over the age of 15.

Thanks for any suggestions. (Sorry to the moderator if I should have this somewhere else.)

5 years ago

I've been putzing around with Python (I previously took Java I and II in college) and am confused about something. This code is to turn a base 10 number into a binary one.
This is not my code. On line number 14 I don't understand what "+ result" is doing. result is defined as '', which I believe is just an empty string, yet if I comment out + result the answer
will be 1. If i keep + result the answer is correct at 111110100. I just don't understand what is taking place to have result be an empty string to just adding it coming up with the correct answer.

Thanks for any help.

6 years ago

Joanne Neal wrote:It means the JTextFieldDemo class should have a method called actionPerformed, not actionPeformed

very interesting...
7 years ago

This code is directly from Swing: A Beginner's Guide by Herbert Schildt (page 31). I'm using Eclipse and keep getting an error on
line 10 saying "The type JTextField must implement the inherited abstract method ActionListener.actionPerformed(ActionEvent)."

I don't know what that means or what I should do.

7 years ago
Yes, thank you very much. The issue was understanding how the inner loop kept going until a condition was met, then going to the first loop.
Before I came on I was doing the below and finally realized the structure. I appreciate you being so helpful all the time.

7 years ago

Campbell Ritchie wrote:I presume that means you worked it out?


You're welcome

Nah, not really but didn't want to be a pain. I don't think I'm understanding the for...while loop. It makes perfect sense to me that the result would be cumulative
when it's explained (like 2*2, 4*2, etc.) but I don't understand why it does that within the loop if when it loops back the result is always
equal to 1. Obviously the answer is the result changes but I don't understand the logic of the loop to know why. Meaning, if the result goes from 1 to 2 I don't
understand why the result=1; in the main loop changes to 2 rather then continuing to be 1. It's more I've never seen that whereas I've seen the structure
(i=0; i < 10; i++) a lot to know what to expect. I completely understand the result changes from 1 to 2 to 4 but I don't understand the underlying form
of the loop or why it does that (if that makes sense).

e-- still makes no sense to me and I don't see why it's even needed. My thinking is wrong but in my mind if I see:

(i=4; i < 10; i++)

and e is then equal to the original i (4) or the i++(5), I don't see how in either condition it would make sense to subtract one from it.

I'm ultimately not understanding the underlying logic. It's not even so much this problem as just being aware for when it comes up
with possibly more complex problems in the future.

Ah well, I'll just keep staring at it.
7 years ago
Thanks everyone.
7 years ago
Because result = 1;

7 years ago
Because if result is always 1 *=2 then I don't see how the output for result can be 2, 4, 8, 16, etc. since it's always 1.

I also understand e-- means minus one but I don't see what it's doing or why it matters.
7 years ago

This is directly from Java: A Beginner's Guide by Herbert Schildt (page 82). Below is the code and output. I've spent a long time looking
at this and I just don't understand what is going on. If result=1 I would think it's always 1 *= 2 and
I have no clue what the e-- does. I don't understand how this does 2 to the various powers.


7 years ago
Thank you Piet:) Super helpful!

I ordered Swing by Herbert Schildt so hopefully that will help me. This is all pretty new.
7 years ago
Sorry to rehash an old thread but I'm confused about something. I tried doing something similar to the above using
a JFrame instead of a Container but I can't get the buttons to appear. Am I able to do this with a JFrame or do
I need to use the Container class? (I don't have a goal in mind other than practicing frames/containers.)

Thanks for any advice.

7 years ago