Posts

Apparently lists and dictionaries are like pizza when it comes to coding...

Image
....because you can slice them!...... Ok bad joke, but seriously, you can. This lesson was incredibly useful, yet infuriating. I spent about two hours on the lesson that should've taken about an hour. I did take a quick break to eat already prepared dinner here at Dropbox which was delicious. In the lesson I learned about lists, dictionaries, and keys. Manipulating these sets of data is essentially the basis for the complicated project I had at the end of the lesson. This weeks lesson was a day in the supermarket. The most confusing part about this less were those little operators in the for loop. Code Academy does this thing where this give you less and less help the more you go through it, but still introduce new stuff that they don't go into much detail on. So in line 23, for the longest time I had stock[item] - 1. Well this is incorrect, because it is just an equation without returning a value. That would be like saying A - 1 instead of A = A - 1. It took one of ou...

We need the func(tion), we gotta have that func(tion)

Image
So I'm visiting my good friend Neil here in Woodland Park, Colorado. He has two seven-month old kittens and they are affectionate. Let me tell you, coding with a cat attacking your face makes for a more difficult time.The cat obviously doesn't want me to become the next supreme overload of the planet. After I got used to the cat, this chapter was very logical and easy to follow. This chapter focused on functions, parameters, arguments, imports, and max/min/abs/type. Overall I felt good at the level and speed in which I comprehended these things. For this week's project I made a trip cost calculator which didn't give me too much trouble at all. In fact the only time my code didn't compile the first time, was because I was doing toooo much. This is a pretty simple program, and even though I'm pretty limited in code academy, I'm going to attempt to all for user input instead of just printing out defined values. We'll see how that goes. T...

How do I words?

Image
Setting the mood: Spotify playlist I'm currently listening to while attempting to learn python On this weeks episode of "Patrick attempts to add value to his life", he attempts to words. Yes, you read that right, I attempt to words. Words are hard, and when you say the same two or three almost a billion times out loud, they begin to lose meaning and you as a person begin to lose sanity.  This week conditionals and control flow, which really means I learned about "comparators", "boolean operators", and "If, Else, and Elif" loops. Which translates into human speak as, I learned to say some of the same words so many times they eventually lost meaning and I then added swear words in front of them to hopefully give them meaning. After saying things out loud to myself more times than I'd like to admit I eventually finished my program of a Pig Latin Generator. Yes, I typed in a word "Patrick" and it output "atrickpay...

So the journey begins

Today I start my training on learning to code. I'm going to give up the majority of my social drinking to learn how to write code, solve problems, create things, etc., etc., then take over the world. It's a really easy step by step plan that starts with "hello world" and ends with me as the supreme overlord of this planet. Don't worry, I promise to be a good overlord. The only real experience I have with any sort of code is UNIX and some line commands I learned while studying networking in high school and college. Needless to say I'm pretty green when it comes to this stuff. However, I do have a few hours a night before I go to bed where I usually spend money at a bar socializing with people about random crap that doesn't really fulfill much other than killing time and lightening my bank account. So, I'm going to change that for the foreseeable future and you all read along with my somewhat entertaining blog posts. Feel free to leave me words of enco...