Examples of interactive journalism – Week 3

This post has two purposes: (1) To present an example of interactive journalism that I recommend; and (2) To allow you to reply with a new link to an example of interactive journalism that YOU recommend.

It is optional for you to post a link. If you do, it counts toward extra credit (provided it meets the criteria). You can read the details on the Required Work page, under the subheading “Extra credit.” See previous example posts by clicking the Examples link in the sidebar.

Your link and reply must meet the requirements spelled out on the Required Work page.

My example for you this week — Here’s Where Your iPhone Got Lost Or Stolen — is NOT interactive, but it shows you how a journalist used Python to collect data (from Craigslist) and then write a totally original story, with charts. (Your examples still need to be interactive ones.) The charts here could be more beautiful, in my opinion. But the story’s the thing, and the reporter got this story with Python.

BONUS: The journalist, Nicole Martinelli, wrote a separate account of how she used Python to get these data.

Bar chart: Places where iPhones are most commonly lost

Pie chart: Days of the week when iPhones are most often lost

Your Reply

Leave a comment on this post to submit your example for this week.

Make sure your link is correct and functional.

Include the title or headline of the example you are linking to.

Write one sentence about why we should appreciate it.

Week 3: What you need to do this week

This is the week with the Dr. Martin Luther King, Jr., holiday on Monday. So we don’t get to meet in class on Monday. However, you have the same amount of work to do as in any other week. You will meet with me in person on your usual day and the usual time. I expect you to read AND DO everything on Zed’s pages, including the “Study Drills.”

Your benchmark for our individual meetings Jan. 21–23 is on the Course Schedule under the Week 3 heading.

NOTE: Reviewing my own files for these exercises, I see that I wrote LOTS of comments for myself. Those comments are very helpful, because I have not done much importing or writing files since last February. My comments help me remember what I learned and then forgot.

  • On YouTube: Python Lesson 16 — this lesson might confuse you in several ways, so I made a short demonstration video (2 min. 37 sec.) to help you understand it. Please practice with your own files and Terminal to learn how this really works. The video is not a substitute for actually doing it.
  • Powerpoint: This is what I would show in class if we did not have a holiday. It probably will be VERY helpful to you. You can download it or view it online. Strongly RECOMMENDED.
  • Practice with Python, Part 2 – Self-Quiz. Like the self-quiz you did during class last week, this gives you some problems to work out AFTER you complete Zed’s exercises. If you cannot answer some of these, you need to go back to Zed and practice more. (This is a Google doc, so you can save your own online copy and write on it.) I suggest you work through the PPT first, then do this self-quiz.

Some of you asked me for helpful Python resources. I usually do a Google search first, starting with the word python (e.g., python import modules), then scan the results for links to Stack Overflow,  tutorialspoint, or somebody’s blog. Check and make sure they are NOT talking about Python 3.0 (we are using 2.7), because the syntax is different.

Email me at my JOU.UFL address if you have a question that cannot be posted in E Learning or here, on this blog post.

SPECIAL BONUS: If you want to try the original “Adventure” game, play it here. (Zed mentions this in ex. 14.) To get you started: first, go east. To do so, type just the letter e, then Return/Enter. To pick up the items, type take and the item’s name, such as, take keys. To see what’s nearby, type look.

Screen capture from online version of "Adventure" game

Read this now! The first week’s work

You’ll be getting started on Zed Shaw’s Learn Python the Hard Way (LPTHW) this week.

You may certainly wait until after the first class meeting to begin. However, you would be smart to do the stuff on this page before the first class.

LPTHW Exercise 2

It is important that you do what Zed tells you to do. I chose this book for our class after I looked at dozens of books and online courses and videos about how to learn programming. Zed is awesome.

To get the benefits from Zed’s book, though, you really must do what he says. So:

  1. Start with the intro to the book, The Hard Way Is Easier, and read it top to bottom.
  2. Then read Exercise 0: The Setup, and do everything it says. Install and run Python on your own laptop. This is key. You need to have the programming environment ready at all times. You need to own it. Because if you’re going to learn this, you need to spend time with it.
  3. This might help you if you feel lost (three pages, with pictures): Week 1 Tips.
  4. After you’ve got Python running, work through Zed’s exercises, in order, top to bottom for each one. Type the code, just as he says. RUN THE CODE. Do all the study drills. Read everything — including the “common student questions.” It will all help.

You will be doing some of this in class. There will be hand-holding and advice. If you miss any of the first week of class, you are going to be behind. Very much behind. So don’t miss class. If you add this course at the end of drop/add, you’ll just have to try to catch up. No whining!

The first assignment

Your benchmark for Week 1 can be seen on the Course Schedule page. The benchmark indicates a reasonable or fair achievement for the week.

For the first week, you should do everything in the list above, and make sure to work through all of Zed’s exercises — up to and including 12. You should do this for an hour a day, every day, for seven days from Monday through Sunday, before our first class meeting in Week 2.

Your due date for completing the assigned work is your scheduled meeting time.

Your scheduled meeting time: During Week 1, you will schedule a time for Week 2 when you will sit down with me, your instructor, and show your work. This will be a time we agree on, student and professor, and we will meet at that time EVERY week. You will always bring your laptop to this meeting. Your grade depends on this meeting. Read about it in Required Work.

What if it’s too hard?

One goal in this course is for you to learn how to solve problems ( I do NOT mean math problems). If you get really stuck in an exercise in LPTHW, move on to the next exercise. Or search for help online. DO NOT let someone else do the work for you! Take a rest, take a break, and then — come back to it later.

I know you’re not a computer science major. This class is for you. It’s designed to help you learn how to learn.

In our scheduled meeting, you must show your work. Your code must include comments, written exactly as Zed explains to write them. Your code must be well organized. Your files must be well organized.

Above all, you must be able to explain what you did. If you got stuck, you must be able to explain what you did to try to get unstuck.

Your weekly grade depends on how you worked, what you produced, what you can show, and how you explain it.

Questions?

There is a Q&A discussion for Python questions already set up in our e-Learning space (log in to e-Learning here) — let’s keep code-specific questions in that space, please.

If you have a question about this week’s work, the benchmark, or what you should be doing to get your 1 or 2 points, please post that kind of question here, as a reply to this blog post.

Tips for your Python work

I try to avoid making too many posts on the course blog, because I know some students find it annoying. Usually I will post only once a week, now that we are under way with the course — but this is an exception.

How to Properly Comment Your Code is a handout from an MIT course called A Gentle Introduction to Programming. You should look at it.

Python Comments

Comments in your code are not for me, the instructor. They are for YOU. When we learn a new programming language, we must figure things out as we go along. Writing clear, helpful comments will help you learn.

In professional code, comments are also useful for coders who come later and need to use or revise the code that someone else wrote. That will not be the case with your early code exercises, but you should know that comments are not only for beginners.

Read this now! The first week’s work

You’ll be getting started on Zed Shaw’s Learn Python the Hard Way (LPTHW) this week.

You may certainly wait until after the first class meeting to begin.

LPTHW Exercise 2

It is important that you do what Zed tells you to do. I chose this book for our class after I looked at dozens of books and online courses and videos about how to learn programming. Zed is awesome.

To get the benefits from Zed’s book, though, you really must do what he says. So:

  1. Start with the intro to the book, The Hard Way Is Easier, and read it top to bottom.
  2. Then read Exercise 0: The Setup, and do everything it says. Install and run Python on your own laptop. This is key. You need to have the programming environment ready at all times. You need to own it. Because if you’re going to learn this, you need to spend time with it.
  3. This might help (three pages, with pictures): Week 1 Tips.
  4. After you’ve got Python running, work through Zed’s exercises, in order, top to bottom for each one. Type the code, just as he says. RUN THE CODE. Do all the study drills. Read everything — including the “common student questions.” It will all help.

You will be doing some of this in class. There will be hand-holding and advice. If you miss any of the first week of class, you are going to be behind. Very much behind. So don’t miss class. If you add this course at the end of drop/add, you’ll just have to try to catch up. No whining!

The first assignment

Your benchmark for Week 1 can be seen on the Course Schedule page. The benchmark indicates a reasonable or fair achievement for the week.

For the first week, you should do everything in the list above, and make sure to work through all of Zed’s exercises — up to and including 12. You should do this for an hour a day, every day, for seven days from Monday through Sunday, before our first class meeting in Week 2.

Your due date for completing the assigned work is your scheduled meeting time.

Your scheduled meeting time: During Week 1, you will schedule a time for Week 2 when you will sit down with me, your instructor, and show your work. This will be a time during the scheduled class hours on Monday, Tuesday or Thursday. We will meet in our classroom. You will bring your laptop to this meeting. Your grade depends on this meeting. Read about it in Required Work.

What if it’s too hard?

One goal in this course is for you to learn how to solve problems — and I do NOT mean math problems. If you get really stuck in an exercise in LPTHW, move on to the next exercise. Or search for help online. DO NOT let someone else do the work for you! Take a rest, take a break, and then — come back to it later.

I know you’re not a computer science major. This class is for you. It’s designed to help you learn how to learn.

In our scheduled meeting, you must show me your work. Your code must include comments, written exactly as Zed explains to write them. Your code must be well organized. Your files must be well organized.

Above all, you must be able to explain what you did. If you got stuck, you must be able to explain what you did to try to get unstuck.

Your weekly grade depends on how you worked, what you produced, what you can show, and how you explain it.

Questions?

There is a Q&A discussion already set up in our e-Learning space (log in to e-Learning here) — let’s keep code-specific questions in that space, please.

If you have a question about the week’s work, the benchmark, or what you should be doing to get your 1 or 2 points, please post that kind of question here, as a reply to this blog post.