Friday, December 10, 2010

12/10 Blog Reflection

This week we worked on for and do while loops. For loops set the parameters like this:

for(int x = 1; x<=4; x=x+1)
{
System.out.print("run");
}

The section closest to the "for" (x=1) is setting the initial value of the int x. The next part, "x<=4", sets the value that once reached by the designated variable (x), makes the loop stop. The last piece, "x=x+1" makes it so that every time the loop runs, the variable x increases by 1. The output would be

run
run
run
run

This is because once the value of x hits 4, the code runs once and then stops. The value of the x, displayed in the run is:

(1)
run
(2)
run
(3)
run
(4)
run

Do While loops are different from for loops because for loops check the requirements before running. Do Whiles, on the other hand, check the requirements after running. The approximate code that is similar to the above code is this:

int x = 1
do{
System.out.println("run");
x++;
}while( x<=4);
The output of this would be:

run
run
run
run

with variables shown:

(1)
run
(2)
run
(3)
run
(4)
run
(5)

This code, although the output is unchanged, shows the difference between Do While loops and For loops. The Do While checks the criteria after it runs, while the For Loop checks before.

One of the main problems I have is distinguishing where I should use Do While vs. where I should use For Loops. I think that you should use Do While when you want the code to run at least once. For example, in the "PasswordCheck" lab. It had to ask you to enter your password at least once before it could consider whether your response was correct or not. The code for that was very difficult to write. I think that For Loops are simpler and easier to write than Do While, which is why I employ them more frequently in my code.
For loops are probably one of my favorite parts about programming. I really get it. I like having one line of code to make many instances of things. Using input with certain loops is really easy as well. This was another interesting look at the possibilities of shortening code, and making it easier to code faster and more efficiently. I really like do while loops because the code runs at least once. The one lab that we did called "PasswordCheck", I thought, was really interesting, as a password is something actually useful and until recently we hadn't been doing that many things that were practical. I figured out the lab in no time. For a correct password, the computer would print "ACCEPTED" and for the incorrect password it would print "DENIED". It was a fun program to write.
This really made me think about how our programs could be implemented. We have been doing things that have not seemed as real to me as a password check. One of things I really enjoy is the graphics labs we do. More recently, the "Random Colored Boxes" lab was one of my favorite yet. I really enjoyed making something that actually looked cool. Greg Lyons, one of the smartest people I know, managed to make the four seasons in each corner of his random color box. It was impressive, to say the least. While I did not achieve anything like that, I did mess around with making the colors lighter or darker. I really enjoy using For Loops, so Nested For Loops were an obvious next step in my programming learning.
I wonder what else we have to learn about graphics and input. The rock paper scissors lab that we did really intrigued me. In class, we had actually made a functioning game. Sure, the game was based off of crude booleans and input, but it was still fun (maybe it's just fun to see your code work!). My friend Zoli made a really cool snake game, and Tron game using Java (may have been JavaScript, actually). I was very impressed, and asked Zoli to show me how to do what he did. He just laughed, and told me I had a lot to learn about programming before I could do something like that. I can't wait to learn all that I can about Java and to be able to program at that level


This port is a revamp of a post reflection 11/21 (http://frankblogfrankblog.blogspot.com/2010/11/reflection-1121.html)

Thanks for reading!
Frank

Tuesday, November 30, 2010

SHARE 11/21

This thanksgiving, I am going to have my mom's family over to my house. I cannot wait for thanksgiving, as it is my favorite holiday. Nothing is required except for eating good food, hanging out with cousins, and being lazy (at least at my age!). Turkey is one of my favorite foods, and I also really like pie (I don't think there are many people that don't). The break from school is nice too. A little sleeping in can really help a lot. I kind of miss the thanksgiving parties we would have in elementary school. We would spend a day of school just playing bingo and eating candy the teachers would give us. Being a little kid was fun, but having responsibility is nice. I am tasked with washing all of the dishes after thanksgiving is done, and I also have to look after 5 children under 8. Yeah, thanksgiving is going to be a blast.

Sunday, November 21, 2010

Reflection 11/21

This week we worked on while and do while loops. This was another interesting look at the possibilities of shortening code, and making it easier to code faster and more efficiently. I really like do while loops because the code runs at least once. We did a lab called "PasswordCheck" and I thought it was really interesting, as a password is something actually useful and until recently we hadn't been doing that many things that were practical. I figured out the lab in no time. For a correct password, the computer would print "ACCEPTED" and for the incorrect password it would print "DENIED". It was a fun program to write, and I can't wait for more challenging labs to complete.

Thursday, November 18, 2010

Computer Science AP, Reflection

So far the class has been one of my favorite classes. On A days, I can't wait to get into 5th period and start the latest lab. I really enjoy how you can combine problem solving with your general knowledge of syntax to make a program work. Programming has always been a subject of interest for me. As a kid I would go to the library and pick up huge books on programming. I would try to read and understand them, but I would never really learn anything. It's great to be taught programming, and I am learning very fast and having fun with it.

Recently we have been working on for-loops. Looping makes programming a lot simpler, and lightens the amount of code you have to type to get the machine to do something many times. I usually don't have to study for the quizzes, but for the for-loops quiz, I studied and did well.

I am having trouble remembering what to do in the main of a class. My short-term memory is much better than my long-term memory, and I find myself having to open old labs to use those as templates for my new constructors. I have been having trouble with this for a little while, and it is getting better slowly but surely. I feel like I am becoming a much better programmer every day I practice in class.

Sunday, November 14, 2010

Reflection 11/14

This week we worked on For Loops, which are lines of code that run themselves until a certain requirement is met. The for loop establishes the first value, the stop value, and the change in the value at which the code is terminated. This is useful for repeating things without having to retype code over and over again. This cuts down the time coders spend copying and pasting, and changing little bits of code. Parts of Java like this make the language simpler and more user friendly. I really enjoyed the lab where we used For Loops to draw a certain number of circles and then stop the program. We could change the x and y values of the circle each time it was drawn and the width/length, making it a fun tool to draw with.

Sunday, November 7, 2010

Reflection 11/07

We worked on else/ifs today. I think else ifs are really easy. It goes like this:If the first condition isn't true, do the next thing if the next condition is true. If it's not, then go to the next. It's really very simple. Let's say x is 2.

if(x==3) {
out.print("Hello!"); }
else if(x==1) {
out.print("Goodbye!"); }
else if(x==2) {
out.print("Howdy!"); }

The output would be

Howdy!

Like I said, pretty easy. I am definitely very comfortable with this.

SHARE 11/07

LaCrosse is the sport I play. I really enjoy LaCrosse. I have been playing LaCrosse since I was in third grade. I am a goalie in Lacrosse. I am now playing for LASA, and it's a blast. On the team we have many upperclassman who have been fun to meet. There are also several freshmen on the Jag Lacrosse team, and it is nice to have people I know on the team as well. Our coach (Coach Travis) is a graduate of Texas Tech, and he played college lacrosse when he went there. He is very experienced and is a great teacher. The season starts in spring, and I can't wait to beat other teams with the champions-to-be Jaguar Lacrosse Team.

Friday, October 22, 2010

Reflection 10/22 - A Blog About the Onion

http://www.theonion.com/articles/tony-romo-asks-doctors-to-xray-his-stuffed-animals,18309/

This is one of the blogs I am following, it is The Onion, a notorious comedy newspaper. i love The Onion's humor and enjoy every one of the articles they produce. This specific one is about Tony Romo and a stuffed animal. The mood is very serious but the subject matter is very funny. Just the article titles are usually enough to make me laugh hard enough to make my day.

Friday, October 15, 2010

My thoughts on the Class

This recent week has made me very confused. I feel like I am lost. A lot of time I have no idea what I am doing with a lab. I get the labs done with the assistance of my friends, but I feel like I am falling behind. I am going to go to tutoring during lunch soon to catch up. I definitely do not want to remain like this, because I could fall even further behind! I think I did not pay enough attention to the lectures. I definitely am behind, and I need to change that immediately.

Thursday, October 7, 2010

What I have learned from the blogs I am following

One of the blogs I am following is the Mobility tech blog. I learned that web servers could be hosted from a mobile phone or device. Not on 15, or even 10 years, but now! These are called "Servlets" and they are powered by Java 3.0. I think this is going to change a lot in ways of server hosting. Hosting internet servers in such a small card in a mobile device is a huge difference to how they were un previous years.

See the whole article here: http://java.sun.com/developer/technicalArticles/javacard/javacard-servlets/

My thoughts on CSAP so far October 7, 2010

All of the labs so far have been really fun, but now they are getting very challenging. I am racing to keep up with all of the programming terms. I am learning very quickly, but I feel always behind. The class gets more interesting every day, and I learn a lot, but I think I learn the most when Mr. Stevens uses LAN School to teach. I see the lesson up close.
Also, blog spot pulled a tricky move on me in my last post. There is a button that when checked types your words in Hindi. I don't know what the purpose of this is, but it was very embarrassing and I apologize for any confusion.

Tuesday, October 5, 2010

माय थौघ्ट्स ओं कसप सो फार: अक्टूबर ५, 2010

कंप्यूटर क्लास हस बीन वैरी चल्लेंगिंग फॉर में रेसन्त्ली थिंक ठाट थिस इस बेकाउसे ऑफ़ थे सो ऑफ़ थे हगे अमौंत ऑफ़ लब्स वे हद तो दो लास्ट क्लास। इ हद त्रौब्ले कीपिंग उप विथ थे वोर्क्लोअद, एंड एंडेड उप नोट एवें फिनिशिंग थे लास्ट लैब। इ थिंक वहत वे अरे दोंग विथ जावा इस रेअल्ली कूल, बुत इ थिंक इ ऍम अ लित्तले लेफ्ट इन थे दुस्त बी थे मेथोड्स वे हवे बीन उसिंग रेसन्त्ली। इ थिंक ठाट इ कैन दो बेत्टर इफ वे गो ओवर थे इन्फ़ोर्मतिओन इन थे लब्स इन क्लास। इ क्नोव वे अल्रेअद्य दो, बुत वे गो थ्रौघ आईटी किंद ऑफ़ फास्ट। ओथेर थान ठाट, इ ऍम हविंग अन अवेसोमे टाइम इन थे क्लास। थे ब्लोग्स अरे रेअल्ली फूं, एवें थौघ रेसन्त्ली ब्लॉगर हस बीन बुग्गी सोमेतिमेस। कैन'टी वेट फॉर अनोठेर फेव ६ वीक्स ऑफ़ क्लास!

Sunday, September 26, 2010

Blog Post 3: 9/26/10 - Sharing some of the blogs

One of the blogs I am following, "Stepcase Lifehack", is a blog that shares helpful tips about managing everyday life. The article that caught my eye was "10 Tips to Have Your Most Productive Day". It was a list of small changes you could make to your work environment to make yourself more productive. I tried one of the suggestions, "Have a conducive workdesk". I cleaned up my desk, trashed a lot of clutter and junk I did not need, and generally organized. Now there is much, much less stuff on my desk, and I know exactly where anything is when I need it. I am no longer distracted by the wreckage that used to crowd my desk, and instead work feeling liberated from all of the trash that used to confine my workspace.

Blog Post 2: 9/26/10 - How I am doing in CSAP

Computer science was very hard for me towards the beginning few weeks. I have little programming experience, and the course was designed for people with at least a few lines of code under their belt. I have picked up java pretty fast though. It is a great experience to be working with it and really fun to see the results. I enjoy knowing which lines of code do what and drawing pictures has been really fun for me.

Sunday, September 19, 2010

Blog Post 1: 9/19/10 - My Thoughts on CSAP so Far

I've only been in Computer Science AP for a few weeks now. With these few weeks, my programming knowledge and experience has increased exponentially. My programming knowledge before entering the class was really nonexistent. Now I can identify classes, use methods effectively, and have the code print out whatever i need it to say. I think the online quizzes have been dramatically better than the paper-wasting quizzes of the past, the activities challenging but doable, and the information I am learning interesting. I love that every day in Computer Science, I am learning something even better to do with the code than I did the day before. I am enjoying the class very much because although challenging, I am eager to learn the subject matter. My favorite thing so far is the "Smiley Face" lab. Getting to finally design graphics is very exciting. I can't wait to do even cooler things with Java or other programming languages we use.