Well. It seems like it's been an eternity since I started this blog, let alone the countless attempts at continuing it. While my mom is long gone (4 years in July), my journey through college hasn't ended. Not the slightest.
Last post was done in 2009. Lets get back up to speed. I'm no longer a Chemical Engineering Major. Nay. I was enjoying the labs much more, however, to do anything NEW I would have to redesign the experiments. That takes too much time. I got bored of memorizing these interesting bits and pieces of chemistry, even Organic Chemistry was fun to an extent. I got tired of it though. I didn't see myself doing what I was doing in the lab every day.
What did I do? I did the worst thing you could do in college, switch majors in an entirely different field: Computer Science. Why Computer Science? My dad is a computer scientist at JPL (Jet Propulsion Laboratory for those who don't know the acronym), he's been working there as long as I've been living on Earth. He told me to take the intro CS class at SMC. I did last Fall. It was pretty boring as I knew pretty much 80% of the material covered in the course before stepping in the door. I continued with it because the introductory course is always boring or severely limited in what depth the materials are taught.
Winter 2012, CS 50 C Programming. All I can say is this: Where were you in high school?! I didn't imagine that something so difficult for others to understand to be blatantly easy for me to understand. I mean who wouldn't want to make things easier in terms of repeating the same thing over and over but with different inputs by writing a simple method to do everything being done? Make a new header file with methods to be called upon and you're pretty much set! This class was very short. 6 weeks short and I had difficulties in getting my mind to class. I endured it though.
Today, June 21, 2012 - I'm retaking my Java CS 55 course because I don't accept B's anymore. Although I did receive a B in my 3rd semester of Japanese (Reviewing for the Fall semester as I'm continuing on to Japanese 4), I can't say that I worked my butt off to learn everything well and do the best I could. Although this is technically not a class I'm registered in, I'm sitting in the Java class to keep my mind on things and not melt away as almost everyone does during the summer.
So Java, a language released in 1996 by Sun Microsystems (acquired by Oracle in 2009), is the first Object Oriented Programming language that I'm learning. What was the first language you ask? Technically it was AppleScript. I used to get away with playing games on my PowerMac G5 by writing scripts to disable various processes or programs that my dad installed to prevent me playing said games. Of course though, whichever script (the applications my dad used were most likely scripts) he used ended up being terminated faster than the script could start up and read the list of applications to be prevented from opening. Reasoning behind this was that my script was about 9 lines long, it's really fast to execute, no end, and the processor never had to do anything but check that the process called "whateverapplicationpreventornamedhere" was forced to quit.
My dad was annoyed but impressed at the same time, the applications couldn't keep up with my scripts and there was no way to just prevent the script from activating faster than the application could catch it.
I digress. So today I'm writing yet another attempt to reboot a blog. I find it relieving to write these thoughts out. And possibly to keep a log of my journey through the forever evolving environment of Computer Science.
Program of the day:
public class Exercise6 {
public static void main(String[] args)
{
System.out.println("Plesae enter a number between 0 and 1000");
Scanner input = new Scanner(System.in);
int number = input.nextInt();
int lastDigit = number % 10;
int remainingNumber = number / 10;
int secondLastDigit = remainingNumber % 10;
remainingNumber = remainingNumber / 10;
int thirdLastDigit = remainingNumber % 10;
int sum = lastDigit + secondLastDigit + thirdLastDigit;
System.out.println("The sum of all digits in "+number+" is "+sum);
}
}