100 Days of Code Challenge Day 18

Today’s coding was in the form of short programs in the 1st chapter of my textbook from my Java 1 class and Codeacademy. I didn’t push them to Github and I’m trying to decide if that’s even a good idea. I don’t plan on paying for the option to keep some of my repos private, so I’ll keep weighing the options. As for my Java class, I spent a bit of time reading over the history of computer programming from Assembly Language, Fortran and Algol to JavaScript, Swift and Ruby. It was really eye opening to see where programming came from the various problems it tries to solve. I’m sure there will be a quiz on this somewhere down the line.

In Codeacademy, it wants me to upgrade to Pro, so in the Learn Java dashboard, most of the activities are inaccessible. However, there are several links to external resources, most are from the Java Documentation. It’s very well written and understandable. I guess if I’d never seen any of this in action, I’d have no idea what they were talking about. However, it really nailed a lot of points home for me like data types and flow control statements.  There are some topics that I’ll need to revisit, like access to classes, but the information that was suggested by Codeacademy was most helpful.

Here’s to another day of coding. I really think I’m going to nail this challenge and keep on going and going! There is so much to learn and I’m enjoying it, even the mistakes.

Image of a ping



100 Days of Code Challenge Day 17

Today I was able to gain access to my course materials for the Java class I’m taking at a local college and they were plentiful. I started reading over them to get an idea of what’s expected this semester. It looks like a lot will be required, but there is a lot of material to cover and hopefully exercises to reinforce it. I’m hopeful and excited all at the same time.  Since there was no coding that I could do without having read the first chapter, I’ve taken to Codeacademy (as was suggested in the course CMS) to get some experience on Java.
Java on Codeacademy

I emailed the materials to my Kindle so I can read them during my commute. I’m going to keep at Codeacademy and my Java in 21 days book until I reach a real assignment. There is plenty of reading that’s required. I hope the amount of doing matches up.



100 Days of Code Challenge Day 16

I spent today reading up on Java and creating a few applications from the Java 8 in 21 days book. Once was on converting Fahrenheit to Celsius and vice versa. The other was investments losses and gains. That was the end of chapter challenge and I have to figure that one out on my own. After reviewing the solution, it just proved there are many ways to solve a problem programmatically.

In the text, today was an overview of operators, precedence, primitive types, comparison operators and variables. Most was very similar to JavaScript, but there was a section on number literals and I’d never seen a letter appended to the end of a number before. This was done to specify a literal of float. You had to add the letter F to it.

Image of Java Code

Mistakes, obviously, show us what needs improving. Without mistakes, how would we know what we had to work on? – Peter McWilliams

I’m still working on making sense of classes and objects. I think, with practice and a lot more mistakes, it will start to come together. I’m very hopeful.

100 Days of Code Challenge Day 15

A cup of cappuccino

I’m taking a Java class this semester at a local college. Class starts next week and I’ve never programmed in Java before, so I’m switching gears this weekend to learn the basics before class starts on the 17th.  I’m using a book called “Sams Teach Yourself Java™ in 21 Days (Covering Java 8), Seventh Edition”  by Rogers Cadenhead.  I’ve installed NetBeans  and created my first project. I’m muddy on classes and objects and methods, but I’m getting the inheritance and superclass and subclass stuff. I know that methods in Java are basically functions in JavaScript, so that makes a bit more sense.

With the long holiday weekend, I hope get get thorough at least day 5.  We shall see. I’ll definitely  have to get a workout in somewhere in here and not stay seated for the next 72 hours.  When I need a brain break, I’ll revisit my tipcalc and get the drop down’s option to be assigned to the variable correctly I’m so close, but I haven’t a solid block of time to work on it this week. Birthday’s, work and teaching will do that to you.



100 Days of Code Challenge Day 14

Today I took my troubleshooting to CodePen. I found the change event on the Mozilla Developer Network. I added the onchange on each option, but the variable for the bill isn’t being assigned. It’s the getElementById wasn’t working. I added an alert to see where the function was failing. I left the quotes off the Id.  That’s fix and the alert finally fired and the bill is now making it down to the alert. Next up. figure out why the value from the onclick isn’t making it to the alert.

Time for bed.

100 Days of Code Challenge Day 13

I worked on the split check app on the 10th, but didn’t have time to blog just posted on twitter.


Some Resources that I found.
Drop-Down select boxes

How to Create a drop down list



100 days of Code Challenge Day 12

Finding out that updating my log.md on the forked repo doesn’t count towards contributions.

A gif of Wednesday Addams

So Annoyed

I added a project I worked on this fall to a repo and added bootstrap. With the absolute positioning, things didn’t go like I’d liked. I removed it and put the css and JavaScript in their own files.

Too late to write more, but here’s to a great day of coding tomorrow.