Code Summer Camp

This summer I’m going to be hosting a code summer camp for my students at York College. I’ve been honest with them in that it’s as much for me as it is for them. It’s been an unusual year in which I’ve started teaching web design and development for the first time. Though I’ve built websites […]

This summer I’m going to be hosting a code summer camp for my students at York College. I’ve been honest with them in that it’s as much for me as it is for them. It’s been an unusual year in which I’ve started teaching web design and development for the first time. Though I’ve built websites over the years and feel generally comfortable trying to figure things out for a particular project, I’d never taught classes in HTML/CSS, JavaScript, and/or PHP.

It was getting ridiculous this spring while teaching the web development course for which I was getting up at 4AM to review tutorials, take notes on them, and then present them while recording the screencast. My Youtube account is now filled with a ridiculous number of screencasts with me often stumbling to find the missing semi-colon, $ on a variable, or improperly closed parenthesis or curly bracket.

But I actually I loved it. I’ve been meaning for the longest time to force myself to learn to code in a more structured way. And what better way to do so than to do some just-in-time-preparation to teach! 😉 I have so much to learn still and a little company get through the summer is what I’m looking for.

I’ve a rough plan for the structure of the summer camp which is heavily inspired by a Freakononmics podcast on which Owain Service was interviewed about the UK “Nudge Unit.” That group had been using what the literature of behavioral psychology tells us about how to help people accomplish larger goals through managing a series of smaller tasks. So instead of focusing on the goal of building an python application to edit photos (more on that later), it’s better to “think small” – determine specific things to do at specific times to help toward the goal.

This kind of covers the first two steps – set a goal and make a plan (small chunks). But the third step is to make it public, which is where our summer code club comes in. Each day we come in we’ll have two blocks of time to work for three hours. But you’ll need to declare on the whiteboard what you plan to do for those three hours. This is third step, making your plan public. By making it public people tend to stick their commitments. We also have time to check in between the one hour blocks.

 

Finally, we’ll tell each other what you’ll reward yourself with if you follow your plan. This is the final step from the nudge group playbook. Putting something meaningful at stake, using “temptation bundling” to help you through the work.

 

It’s just the initial plan and we’re going to start next week. I’m planning to use my final block at least a couple days a week to blog, so hopefully there will be more to read about how it goes.We’re going to start next Tuesday May 30th. On that first day we’ll probably use the first block to discuss goals and plans. At York, we’ll have dozens of video tutorials you can work through if you’re just looking to build some basic skills in lots of different areas.

And if people want to join in from the web, we could create a public Google Doc for posting your commitments and rewards.

Here’s the sign-up form.

 

Last Reflection for Web Development 1

I really like everything we learned this semester. I was familiar with some stuff that we learned but in this class we went into it a bit deeper and I learned a lot of…

I really like everything we learned this semester. I was familiar with some stuff that we learned but in this class we went into it a bit deeper and I learned a lot of new things. I was able to get more familiar with javascript and jQuery which is great when it comes to working on front development of a site. It was also  great learning how to use more of php and it actually makes me want to know more of what I can do with this language. mySql was also great to get familiar with because it got more interested with backend development and it’s definitely something I would like to study further. API was definitely new to me and it was really awesome to see what we could do with and it also got me to start thinking about how you would be able to use them when creating websites. The project I liked the most was when we started to work with both php and mySQL together. I really got interested in and even though I didn’t have a chance to work on the secret diary tutors as a project for this class, it’s definitely something I will like to do once the semester is over and I have more time.

A project that I would like to work on is creating a 2d breakout game. I found an example of one while doing some research mozilla developer. As I read more it into it the more fun it looked like it would be to make. The page says anyone who has basic to intermediate knowledge of javascript, which is great because I already had some basic knowledge and after taking this class I definitely feel like I have intermediate knowledge of javascript. This game also consists of creating a canvas in html which I’m definitely familiar with. I’m definitely interested in how we would make the controls work both on the keyboard and mouse. Also how we can create the collision detection for the game. This is definitely something I would like to look into and create.

https://developer.mozilla.org/en-US/docs/Games/Tutorials/2D_Breakout_game_pure_JavaScript

https://developer.mozilla.org/en-US/docs/Games/Tutorials/2D_Breakout_game_pure_JavaScript

 

Last time using an API and my attempt at creating a Twitterbot

The last time we worked with an API was when we used google’s geolocation to find the postal of a partial address. It came out great I tried it with my location and a…

The last time we worked with an API was when we used google’s geolocation to find the postal of a partial address. It came out great I tried it with my location and a few others to see what would come up. When a user enters the partial address they will see the zip code for the address and then the address.

Postcodefinder

The next thing I worked on was making a twitterbot. I used Abraham/twitteroauth which is a php library that you can use with Twitter OAthu REST API. To make this twitter bot I first had to start by making  an application at appstwitter so you can get your API keys and access tokens which you need to work with. The first thing I learn to do with the twitterbot pull up my account info to make I was connected correctly. After that I made my first post from the twitterbot and made sure that it was working.

 

 

After that I went back to the REST APIs to do some research on how I could search tweets about a certain topic or twitter account. I finally manage to figure out how to do this by using the GET function and making a query on what I wanted to lookup. I searched up a few posts about Bungie.

 

 

The next thing I wanted to do was learn how you could be able to retweet a post. I started my research and found that you could by using the POST function and using the ID of the post that you wanted to retweet. To find the ID of the post that I wanted to retweet I had to first search up the tweet by using the GET function. After I got the ID of the twitter post I had to go back to using the POSt function to retweet it. I tried to get it to print out what I retweeted but I refresh then all I got was that i had already retweeted the post. When I checked my account I saw that I had.

 

This is all I manage to get done with the twitter bot. I did do some research on how I might have been able to retweet certain posts every hour or 2 but I wasn’t able to find anything that was helpful to me. So I do wish I had some more time to figure that out which I might in the future.

Learning to work with APIs

These last few days of our class we started to learn about Application program interface (API) and how we can start to use them. The first API we learned to use was Openweathermap. This…

These last few days of our class we started to learn about Application program interface (API) and how we can start to use them. The first API we learned to use was Openweathermap. This API allows us to show the weather on our own site if we wanted to. We also learned how to use php to make sure the weather always showed as fahrenheit. This is how it came out.

WeatherAPI

The next API we worked with was Google Maps. We used this API to create a basic google map page and then we also used it to work with google’s Geocoding. With Geocoding we were able to have the page find out exact location and this is usually used so a user knows where they’re. These are the examples we made.

Googlemap

Geolocation

 

Final Blog Post ='[

This will be our finally blog post for the class i am very sad to see this class end because this class gave me new meaning and understanding when it comes to websites and really the functionality of it. We meet up one time week but the ability to get all the information online and […]

This will be our finally blog post for the class i am very sad to see this class end because this class gave me new meaning and understanding when it comes to websites and really the functionality of it. We meet up one time week but the ability to get all the information online and do the great was great because if anytime we got stuck with any work or not understanding any information when we meet up on Tuesday professor will help us at anytime.

 sad crying adventure time sadness jake the dog GIF

I am just trying to figure out what am i going to do when the class is over because their will be moments that i might get lost and have to figure out how to fix the problem.

 sad alone spongebob spongebob squarepants lonely GIF

Creating this website was without a doubt a difficult task because everyone wanted to get the right theme. I am glad we had the ability to pick which theme we wanted to have the opportunity to customize it however we wanted to. Using WordPress was a big help to me. So, it took me about 2 weeks to finally select which topic I wanted. I had the first theme ready to go but I felt like something was missing with the theme. The idea for my theme is that I wanted a slide show so when you enter my website you have a chance to see a running slide show not just the same picture every time.

 

The biggest model I wanted for my website was quick links you can use to go to any website. I had googled, York college, CT 101, and YouTube. The new them I picked had everything that I ever wanted for a them but the links did not work. Once I later talked to my professor I learned about anchor tags which was a big help in figuring out what I actually had to do. Something that took me 2 weeks to figure out the professor was able to help me in 10 minutes which was just changing a few codes. On my website, I had a widget to always scan my website for any treats or hacking that could happen to my website. Sometimes I get random emails from random people which I am sure it is fake people sending spam email.

 

So, I got this widget to block that. I plan to keep this this website up and running because. Since my Grandma pasted away my family has been doing a lot more family vacation together. Our first big family vacation was Hawaii together for a week. Which brought the whole family together. I have a GOPRO hero 5 which I would record everything. I made my website red because I love the color red and decided to name my website kingdom because I feel like anyone is welcome to my website which they can express anything they feel and able to share ideas. I would recommend this class to anyone because it is a great learning experience. The guide line for the class was impossible to get confused with because every week has a step by step break down what we have to do. With a video if you are ever confused with the homework. I plan to keep my website