67th St Code Club

Sesame Challenge - February 2022

We coded the sesame program from Secret Coders Club, following along with Gene Luen Yang's great graphic novel. We saved our Python code in trinket.



      
      
Only click this button if you want to see the solution.

Here is the code in trinket, if you prefer.

Volume 1 - January 2022

We re-started our Secret Coders Club, following along with Gene Luen Yang's great graphic novel. We coded similar activities in Python on trinket.



      
      

December 2021

We wrapped up the series, reviewed our scripts, discussed loops, and functions!


November 2021

We moved onto volume 5, and continued our discussion of loops within loops loops, and reviewed functions!



              

October 2021

We moved onto volume 4, discussed loops, and reviewed functions!


September 2021

We focused on if else statements using a few examples like this and this discussed volume 3!


August 2021

We reviewed code from July, focusing on the portal remix and introduced volume 3!


July 2021

We continued our Secret Coders Club, focusing on volume 2 of Gene Luen Yang's great series. We coded similar activities in Python on trinket.





June 2021

We officially started our Secret Coders Club, following along with Gene Luen Yang's great graphic novel. We coded similar activities in Python on trinket.


import turtle
tina = turtle.Turtle()
tina.shape("turtle")

# clear sidewalk :)

tina.forward(40)
tina.left(90)
tina.forward(10)

#PD
tina.forward(80)
tina.right(90)
tina.forward(60)
tina.right(90)
tina.forward(80)
tina.right(90)
tina.forward(60)
              

May 2021

We focused on on variables and functions using trinket and started working on chatbots.

Club Member's Doggo Chatbot

April 2021

We learned how to use codecademy and how it can help us learn how to make web sites.

March 2021

We learned how to use freecodecamp.org and how it can help us
Note: We changed schedules to just Thursdays.

February 2021

Tuesdays: Beginners (learn HTML/CSS/JS) DOM Manipulation | Thursdays: Movie & Comics Blogging

Club Member's Sites:
World's Greatest
Cyn 2296
123 Games 


Note: We did not meet on the last Thursday of February.

2020 & January 2021 The following section includes some examples and exercises we worked through together in January 2021 (and from 2020) to learn about DOM manipulation:

Remember to be mindful of the classes and ids that may be need to be added to other html elements on your page.

Example 0 - start typing and then click anywhere on the page


Here is the HTML:

                         <input
                         type="text"
                         placeholder="Type something here, then click outside of the field."
                         size="100"/>
                         <p id="log"></p>
                    

If the following JavaScript is in your HTML file, you need to place the code between an opening script tag and a closing script tag. For review & examples of how to use the script tag, please view this MDN page.

                         let input = document.querySelector('input');
                         let log = document.getElementById('log');
                         input.onchange = handleChange;
                         function handleChange(e) {
                            log.textContent = `The text's value is ${e.target.value.length} character(s) long.`;
                         }
              

Example 1 - watch the 2nd item when you click the button

  1. i love javascript
  2. i like codeclub
  3. let's build cool projects

Here is the HTML:

                        <ol>
                          <li class="main2"> i love javascript</li>
                          <li class="main2"> i like codeclub</li>
                          <li class="main2"> let's build cool projects</li>
                        </ol>
                       <button id="btn">click me</button>
                    

If the following JavaScript is in your HTML file, you need to place the code between an opening script tag and a closing script tag. For review & examples of how to use the script tag, please view this MDN page.

                 const btn = document.getElementById('btn')
                        btn.addEventListener('click', function alterItem(){
                            let main = document.getElementsByClassName("main2");
                            main[1].innerHTML = 'enough of these exercises. let\'s build a cool site already';
                        })
                

Example 2 - click the button to change the texts

Let's Make a Site About One Piece

Let's make a site about Attack on Titan

Let's Make a K-Pop fansite


Here is the HTML:

                        <p class="p-elements">Let's Make a Site About One Piece</p>
                        <p class="p-elements">Let's make a site about Attack on Titan</p>
                        <p class="p-elements">Let's Make a K-Pop fansite</p>
                        <button id="btn2">click me</button>
                    

If the following JavaScript is in your HTML file, you need to place the code between an opening script tag and a closing script tag. For review & examples of how to use the script tag, please view this MDN page.

                  const btn2 = document.getElementById('btn2')
                      btn2.addEventListener('click', function main(){
                          let mainItem = document.getElementsByClassName('p-elements');
                          mainItem[0].innerHTML = 'MANGA!!';
                          mainItem[1].innerHTML = 'COMICS!!';
                          mainItem[2].innerHTML = 'MOVIES!!';
                      })
                

Example 3 - click to add a child element

Is something going below this?

Here is the HTML:

                         <div id="parent">Is something going below this? </div>
                         <button id="button3">Click me to add a child element </button>
                    

If the following JavaScript is in your HTML file, you need to place the code between an opening script tag and a closing script tag. For review & examples of how to use the script tag, please view this MDN page.

                  const button3 = document.getElementById("button3")
                  button3.addEventListener('click', function master(){
                    const createDiv = document.createElement('div')
                    createDiv.innerHTML = 'is this child below the parent?'
                    document.getElementById("parent").appendChild(createDiv)
                        })
                

Example 4 - click the button and add some style !

This exercise requires adding an id to the body tag of the entire page - not just the HTML included in the example


Here is the HTML:

                          <button id="mainButton">Click me</button>
                    

This exercise requires extra sytle. Be sure to have unique id names. If you're not using an external style sheet and would like to review the style html tags, please view this MDN page.

                      <style>
                        .newP{
                             background-color: hotpink;
                         }
                         .button{
                             background-color: blueviolet;
                             width: 200px;
                             border: none;
                             font-size: 2rem;
                             padding: 0.5rem;
                             border-radius: 5px;
                             cursor: pointer;
                         }
                      </style>
                    

If the following JavaScript is in your HTML file, you need to place the code between an opening script tag and a closing script tag. For review & examples of how to use the script tag, please view this MDN page.

                    const buttonEl = document.getElementById('mainButton')
                       const bodyEl = document.getElementById('mainBody')
                       buttonEl.addEventListener('click', addFunction)

                       function addFunction(){
                       buttonEl.classList.add('button')
                       bodyEl.classList.remove('blue-ground');
                       bodyEl.classList.add('newP')
                       }
                

Code Club Book Club

Great titles from the NYPL collection:

Secret Coders by Gene Luen Yang & Mike Holmes

Debian Perl by Mel Hilario and Lauren Davis

And let's not forget NeoCities great tutorials! To learn more HTML/CSS, check out these tutorials!

About

This site is the homepage of 67th St's code club. Our club meets so Teens and
Tweens can learn more about computer science and coding.
If you have any questions please send us a note:



67th St Code Club All Stars

| Code written and implemented by club participants

Henry's Movie Review

Mad Max: Fury Road, a boisterous love letter to action movies, provides surprising emotional depth for its viewers. Leading the production was George Miller, the director or the original series. The action and tension in each scene is almost palpable, due in no small part to the fact that almost all of the action was done using practical effects - meaning little to no CGI was used. Tom Hardy does a good job in a role that, admittedly, requires few lines, meaning facial expressions are all the more important in telling his story. Standing apart from the rest of the crowd, however, is Charlize Theron, whose character, Furiosa, seems to jump out of the screen in her intensity. You don’t have to be in the windswept sand dunes of Australia to enjoy this movie - even while sitting on the couch, the believably unbelievable action sequences will suck you into the film.

Henry's Comic Review

I think I knew that Saga would be unlike most things I had ever read when I read the blurb on the back of the first volume:

When two soldiers from opposite sides of a never-ending galactic war fall in love, they risk everything to bring a fragile new life into a dangerous old universe. From bestselling writer Brian K. Vaughan, Saga is the sweeping tale of one young family fighting to find their place in the world. (Saga, vol. 1)

It grabbed me, and I had more than a few questions. What would the scope of this story be? How would the hype (12 Eisner awards for story, artwork and writing over the course of its 8 year run) compare to the real thing? (Amin) What even is a space opera, anyway? All of these and more were answered as I devoured the first volume (and yes, it did live up to the hype).

Saga doesn’t have many boundaries - both in terms of subject matter and setting - and more than anything else, that serves as a tool for writer Brian K. Vaugn (writer) and artist Fiona Staples (artist) as they flex their creative talent. Vaughan has even said that he doesn’t “think the technology or financial model exists yet to realistically make ‘Saga’ work as either a television series or a feature,” though he’s “open to being proved wrong.” (Renaud) As such, it’s not uncommon to see anthropomorphized animals, humanoid robots and even planet-sized demons explode onto the page, laid out in sometimes surprisingly violent fashion and with incredible artistry. Standing in contrast to this, however, are scenes of great intimacy, focused on spending time with characters as they navigate the more mundane aspects of their lives (comprising one set of issues, for example, is a character’s time in preschool). Known for its stark depictions of war and grief, Saga’s characters struggle with problems of identity and trauma, all the while navigating the (seemingly) impossible task of learning what it means to be part of a family.

Saga Comic Marko & Prince Robot