Methods, Class, String, Object?? This week was honestly one of the more confusing weeks of Computer science. Learning about methods and classes have been relatively easy up to this point but now it is all beginning to get fuzzy and not exactly making sense. This week in CompSci we did a lab called Book in which we would create a program that would give an output of the title and ISBN number of a book. In this program, we needed to create default and initialization constructors to run the program. This got a little confusing to me because I don't exactly understand how these work. I understand that the default constructor is there so that we can assign those variables our own default value so that everything remains consistent with what we are trying to program. But writing code for initialization constructors got a little bit confusing and I didn't exactly understand how this fit into the large scheme of things. I know that since this is a very novel concept to me, it is going to get confusing and frustrating, but I'm very much looking forward to delving deeper into programming because I know we've only scratched the surface of the world of Java.
Sunday, September 30, 2012
Sunday, September 23, 2012
Blog Post #3
Look at the turtles go! This week in AP Computer Science we learned about methods and strings and applied this to a lab in which we wrote codes to control turtles. This lab was incredibly interesting and was so much fun to do. By manipulating two methods, we were able to control the direction of the turtle and even change the images of the turtle and apply them to backgrounds. This was an incredibly enlightening experience because this lab was an application of Java that was outside the realm of numerical code; it was kind of like video games. This gave me a new perspective on Java because it showed me that there are more interesting applications of this coding aside from writing programs that deal with inputs and outputs. The turtle lab was an exciting experience and, with in this in mind, I am greatly looking forward to more Java applications.
Sunday, September 16, 2012
Blog Post #2
Blog Post #2 : Methods and Strings
This week in AP Computer Science, we began to step away from the basics and jump in to the more complex stuff. We began to learn about Methods and Strings and how we can use both of these to refer to another program on our main code. Up til now, the topics that we have been learning have been quite straight forward; a int is an integer and a char is used to signify a character. However, for me at least, learning Methods was both an confusing and enlightening experience. It was really interesting to see how you can write a whole code in one program and then only write a few sentences in your main code that will refer to the other code that was written. It is mind boggling to think that when you are designing software or something, you can use Methods and refer to hundreds of codes in your main without having to type it all out. However, when we were first introduced to this topic, it was quite confusing for me and when we started the Task Lab, I was lost and didn't really understand what I was doing. But after grinding through the labs, I fully understand this concept and it's truly fascinating to think about everything that we can do with Methods.
This week in AP Computer Science, we began to step away from the basics and jump in to the more complex stuff. We began to learn about Methods and Strings and how we can use both of these to refer to another program on our main code. Up til now, the topics that we have been learning have been quite straight forward; a int is an integer and a char is used to signify a character. However, for me at least, learning Methods was both an confusing and enlightening experience. It was really interesting to see how you can write a whole code in one program and then only write a few sentences in your main code that will refer to the other code that was written. It is mind boggling to think that when you are designing software or something, you can use Methods and refer to hundreds of codes in your main without having to type it all out. However, when we were first introduced to this topic, it was quite confusing for me and when we started the Task Lab, I was lost and didn't really understand what I was doing. But after grinding through the labs, I fully understand this concept and it's truly fascinating to think about everything that we can do with Methods.
Sunday, September 9, 2012
Blog Post #1: Introduction to Computer Science
This past week was my first week of computer science. Being the daughter of two computer engineers who deal with Java and Sequel Server for a living, I was constantly surrounded by the talk of technical jargon from a young age. However, it wasn't until now that I was beginning to gain interest for computer science and writing programs. When I was younger, I didn't know what computer science actually entailed. I didn't know what it meant to write a program and what that actually meant in the context of things. But over the summer I visited my parents office where some of their co-workers demonstrated some of their programs to me and that was what really prompted my interest.
My first week of computer science honestly took me by surprise. I didn't know that it would capture the interest in the way that it did. Learning binary and learning about programs that make our computers work the way they do really fascinated me. One thing in particular was the Scanner function and how, by importing the Scanner via import java.util.Scanner, it will allow us to create variables and store values for those variables It was really interesting to see how that all worked and then apply that information to the labs that we did in class. Doing those labs made me realize that the functions on our computers operate in the same way and it was interesting to see the inner mechanics of how it all works. It was really exciting to apply what we had learned in class and write programs, something I have never done before and now something I'm truly looking forward to doing.
My first week of computer science honestly took me by surprise. I didn't know that it would capture the interest in the way that it did. Learning binary and learning about programs that make our computers work the way they do really fascinated me. One thing in particular was the Scanner function and how, by importing the Scanner via import java.util.Scanner, it will allow us to create variables and store values for those variables It was really interesting to see how that all worked and then apply that information to the labs that we did in class. Doing those labs made me realize that the functions on our computers operate in the same way and it was interesting to see the inner mechanics of how it all works. It was really exciting to apply what we had learned in class and write programs, something I have never done before and now something I'm truly looking forward to doing.
Subscribe to:
Posts (Atom)