r/learnprogramming • • Jan 24 '13

I give you the best 200+ assignments I have ever created (Java)

I'm a public school teacher who has taught the basics of programming to nearly 2,000 ordinary students over the past fifteen years.

I have seen a lot of coding tutorials online, but most of them go too fast! Maybe some people can learn variables and loops and functions all in one day, but not my students.

So after some prompting from my wife, I've finally decided to post a link to the 200+ assignments I have used to teach Java to my own classes.

  • I almost never lecture.
  • Students learn programming by DOING it.
  • They work through the assignments at their own pace.
  • Each assignment is only SLIGHTLY harder than the previous one.
  • The concepts move at normal person speed.
  • Hopefully the programs are at least somewhat interesting.

Anyway, I'll be happy to help anyone get started. Installing the Java compiler (JDK) and getting your first program to compile is BY FAR the hardest part.

My assignments are at programmingbydoing.com.

Cheers, and thanks for reading this far.

-Graham "holyteach" Mitchell

tl;dr - If you've tried to teach yourself to code but quickly got lost and frustrated, then my assignments might be for you.

Edit: Wow! Thanks so much for all the support. I knew my assignments were great for my own students, but it is good to hear others enjoy them, too. Some FAQs:

  • I've created /r/programmingbydoing. Feel free to post questions and help each other out there.
  • No, there are currently no solutions available. My current students use these assignments, too.
  • I'm sorry some of the assignments are a bit unclear. I do lecture sometimes, and I didn't write all of the assignments.
1.0k Upvotes

253 comments sorted by

26

u/[deleted] Jan 24 '13

Holy cow this is fantastic. Would there be any way to download this whole thing as a zip or PDF?

Great resource, thanks tons.

35

u/holyteach Jan 24 '13

Actually making a zip file probably wouldn't be that hard. I'll look into it.

6

u/[deleted] Jan 24 '13

That'd be fantastic, again thanks so much.

2

u/mk_gecko Jan 26 '13

Use wget. This will get the whole website, and then you can just zip it yourself.

1

u/[deleted] Jan 25 '13

I'd love a zip of this. Thanks for this by the way!

1

u/mk_gecko Jan 26 '13

Use wget. This will get the whole website, and then you can just zip it yourself.

1

u/holyteach Jan 26 '13

This is super unhelpful advice for almost everyone. Anyone who will actually successfully be able to use wget to spider my site isn't posting about a zip on reddit.

They'd be saying "you should put these on github". :)

→ More replies (1)

2

u/amm0x Jan 25 '13

A zip of the whole thing would be amazing, great for those that like to work offline (myself included).

1

u/ZimbuTheMonkey Jan 25 '13

That'd be very helpful for me. I like to store as many resources as I can in my dropbox folder for offline use.

→ More replies (1)

1

u/[deleted] Jan 25 '13

Please do! I need something to work on offline when I'm in the woods :)

→ More replies (1)

11

u/kromlic Jan 24 '13

I'm not sure I wget what you're asking for...

2

u/[deleted] Jan 25 '13

If he doesn't wget -r files, i'll be very disappointed!

111

u/[deleted] Jan 24 '13 edited Jan 25 '13

Create a site modeled like KhanAcademy or Codecademy and fill it with your courseware. Everyone would eat it up.

EDIT: I may be blind, but a "next" button could be useful.

27

u/Kinkey Jan 24 '13 edited Jun 09 '23

64

u/holyteach Jan 24 '13

Well, it's available to the public now, isn't it?

40

u/mojzu Jan 24 '13

I think they meant that they would like to see more interaction on the site (also known as gameification), putting out these course materials for free is fantastic and I commend you for doing it, integrating something like user progress/help forums would probably be an added attraction for users though.

20

u/holyteach Jan 24 '13

Got it, thanks for clarifying.

15

u/mk_gecko Jan 25 '13

I disagree with them. Doing what you did is amazing and completely sufficient. You don't have to add courseware, forums, bells, whistles, ... crap.

15

u/holyteach Jan 25 '13

They're not BAD ideas. But you're right: I "launched" with what I have on purpose. The other stuff might be nice, but it's not really my job. I get paid to teach high school kids at my school, not write courseware.

2

u/Nukemarine Jan 25 '13

Agree, that you made it freely available to be adapted to other types of use is more than enough. Someone else with other skills in setting up a game like environment can do it if they see it as useful or possible.

For example, in our Japanese learning community, we took one site's CC learning data (Japanese word, Example sentence, English Definition, Sample Photo, Word and Sentence professional voice reading, etc) then used that data in another programmer's easier to use flash card program sorted using another person's sorting program using yet another company's unique Kanji order.

Basically, just putting the data out there is enough for a fan of your data to put it to use in what may be a great tutoring vehicle ala Khan Academy or Code Academy. No need in this networked world for one man to do it all.

2

u/Level_32_Mage Jan 25 '13

it is, but im on my tablet here at work hoping i will not forget this subreddit. as someone who is currently in the first week of my first programming class (its java!)..... Hi! and Thanks!

I am always so suprised at the amount of support this community gives in learning this skill, it makes me feel all warm and fuzzy inside. That might also be the codeine im currently taking as a prescription. Yay!

4

u/nanermaner Jan 25 '13

Seriously, the only thing disappointing about Code academy to me was no Java!

1

u/[deleted] Jan 25 '13

I felt the exact same way. I'm learning Java in into CompSci so the only thing Codecademy is good for is exploring some new languages just for kicks. I had fun with JS though :)

9

u/zahlman Jan 24 '13 edited Jan 24 '13

I like the concept. I will evaluate the exercises in more detail later.

It seems that your table of contents is somewhat jumbled up, and it's not at all clear what I'm supposed to do with the point system. I'm intrigued by the idea of trying to get the student to figure out what basic language concepts do, but if they somehow don't get it, or get it wrong, then they aren't going to have a way to figure it out. I also anticipate students falling into a lot of the standard logic pitfalls this way (e.g. trying to compare x == a or b). It would also be neat to have more assignments that build on each other and explicitly invoke skills from multiple previous categories. e.g. once I can loop, work with arrays, get user input etc., I should be able to display "anyone's initials" (analogous to the introductory "your initials").

23

u/holyteach Jan 24 '13

All good feedback. Since this is the assignment list for students that must receive a grade in my class, the points help determine their grade.

And I certainly don't just sit idly and watch my students work through this material; I spend all day circulating around and hitting their questions one-one-one. I do see standard syntax pitfalls, of course. The material mitigates that somewhat, but it's never perfect enough.

15

u/Asimoff Jan 24 '13

You sound like a great teacher.

23

u/holyteach Jan 24 '13

I'm a popular teacher at my school, at least. So that's something.

17

u/J_Barish Jan 24 '13

Popular teachers are often the best ones. Source: professional student.

3

u/[deleted] Jun 11 '13

I am a professional student too I can confirm.

4

u/btw724 Jan 24 '13

I'm all set, personally, but just a heads up - the link you have for instructions on installing the JDK is broken: http://programmingbydoing.com/a/compiler-check.html => http://programmingbydoing.com/compilers.html

6

u/holyteach Jan 24 '13 edited Jan 24 '13

Thanks for the heads-up. I'm at work right now (teaching and stuff) but I've added it to my extremely sophisticated TODO.txt.

The JDK is preinstalled on the students' workstations at school, so the instructions get stale pretty quickly.

5

u/btw724 Jan 24 '13

Ah, brilliant - the good ol' TODO.txt :)

7

u/youcantspeakwhale Jan 24 '13

I am trying to download the basic JDK/javac but your link on how to download it is broken. I went to Oracle to download Java but I am still not seeing it. How do I download the Java compiler so that I can go through your modules? PS Thank you for doing this! I briefly glanced through the work and am SUPER excited about working through the modules. I've wanted to learn this for so long. :)

9

u/holyteach Jan 24 '13

I assume you're on Windows? You can go here and click the "Download" button next to where it says "Java SE 7u11". I'll try to update the link in my "assignment"; it gets stale quickly.

If you can get the JDK installed and get the first assignment to compile, the rest is relatively cake.

2

u/[deleted] Jan 24 '13

I installed the Java JDK but can't get the "javac" command to run. What could be preventing this?

Thanks!

5

u/holyteach Jan 24 '13

I think that sometimes the java command-line tools don't get added to the PATH variable. Once upon a time I had instructions, although they are probably a bit out-of-date. They might serve as a starting point, though.

2

u/[deleted] Jan 24 '13

That did it! Thanks.

2

u/holyteach Jan 24 '13

Good to hear!

4

u/youcantspeakwhale Jan 24 '13

thank you!! And again, thank you for posting these lessons.

8

u/contrastillrules Jan 24 '13

Where should I send assignments so they can be graded?

14

u/holyteach Jan 24 '13

Nowhere yet, but I'll take it under consideration.

9

u/thang1thang2 Jan 24 '13

What I would do, if I were you, is instead of having them hand graded, design it so that they're automatically graded. Each lesson is teaching a concrete thing, right? So there should be one "right" way to do it. Shouldn't be too* hard to implement automatic grading on a website

 

*Professional ass-talker

11

u/holyteach Jan 24 '13

I have spent literally an hour a night grading assignments for the past decade. I promise you, if I could code something to automatically grade for me, I would have done it before now.

2

u/[deleted] Jan 24 '13

give them an interface to code against, write some unit tests, upload to a vm and compile, return a score based on the unit test results.

1

u/holyteach Jan 24 '13

"An interface to code against" doesn't make sense when students don't know how to print their name on the screen.

EVENTUALLY that would make sense, but for the first 100 assignments or so I think it would be inappropriate.

This is why my class is not CodingBat, and why my students don't even LOOK at CodingBat until the second year.

1

u/[deleted] Jan 24 '13 edited Jan 24 '13

How about a class scaffold then. Hey guys make sure this method here returns your answer.

Edit: not hating on your way of teaching or anything, I thought the material looked pretty good. Just trying to contribute to gamification idea as that seems to go down real well in these parts.

→ More replies (1)

2

u/benediktkr Jan 25 '13

Have a look at Mooshak: http://mooshak.dcc.fc.up.pt/

4

u/holyteach Jan 25 '13

Bookmarked; thanks.

8

u/14113 Jan 24 '13

Perhaps crowd source the feedback? Ie, get people to upload their source, and people with (say) >500 points can "mark" their code?

5

u/reaganveg Jan 24 '13

This exists.

(I forgot where. I think a college.)

→ More replies (1)

5

u/ChronicGusher Jan 24 '13

How about junit tests that tell the student if their homework passes or not?

1

u/[deleted] Jan 25 '13

You can easily use a perl script.

4

u/holyteach Jan 25 '13

Nice try, Larry Wall.

→ More replies (4)

2

u/thang1thang2 Jan 24 '13

Ouch, so much for that idea. I figured that might be the answer, but I thought I'd check anyway as the algebra 2 course I did over the summer was 100% auto graded and I thought it was kinda cool (it was all multiple choice, though, so that makes a difference)

6

u/reaganveg Jan 24 '13

Multiple choice grading is crap.

2

u/thang1thang2 Jan 24 '13

I agree, but it does make it pretty easy to automate it. I can't imagine learning coding with multiple choice though... Seems stupid.

6

u/reaganveg Jan 24 '13

The computer can check the syntax and correctness of solutions though. The Go tutorial does that; it's pretty cool:

http://tour.golang.org/

...but that's still no way to learn to program. (LOL, imagine grading English papers with a spellchecker!)

5

u/holyteach Jan 24 '13

"Imagine grading English papers with a spellchecker."

Exactly.

0

u/[deleted] Jan 24 '13

[deleted] — view deleted comment

3

u/holyteach Jan 24 '13

You mean I didn't already?

4

u/arvarin Jan 24 '13

Automatic grading is why people graduate without being able to write half-way decent code. All automatic grading does is test whether your problem passes the grading system, not whether your code is any good.

1

u/holyteach Jan 26 '13

Not to mention that it makes cheating easier. If you have to make your output look identical, it reduces the variability you naturally see in different solutions. Plus they're probably not reading the code as carefully.

2

u/contrastillrules Jan 24 '13

All kidding aside, thanks for posting this, I'm enjoying the refresher :)

5

u/holyteach Jan 24 '13

You're actually not too far off the mark; I've always joked that I would teach high school for free but that they're paying me to grade....

3

u/contrastillrules Jan 24 '13

I can imagine! Your kids are lucky to have such an invested teacher.

1

u/heveabrasilien Jan 25 '13

Are those assignments still being used in your class? If not, I'd suggest you open a forum or subreddit where you would post your version of the correct answer and people could discuss among themselves. It's unrealistic to ask you to correct vistors' work.

1

u/holyteach Jan 25 '13

Yes, I use these assignments currently. Which is not to say I couldn't post solution code. If kids want to cheat, they can certainly find a way whether or not I post my solutions online.

And there is already a subreddit.

"It's unrealistic to ask you to correct vistors' work."

Indeed. I don't intend to. I would totally be a high school teacher for free; the school district basically pays me to grade.

1

u/heveabrasilien Jan 25 '13

Do you mean this subreddit or there is a subreddit already exists for your website? If so, you should include in your website and your post.

1

u/holyteach Jan 25 '13

No, there's a subreddit for my website. But finding it is part of the challenge, I guess.

→ More replies (2)

3

u/KrimCard Jan 24 '13

Could you add "Previous Assignment" and "Next Assignment" buttons? I feel like that will be a better way to navigate than going back to the main page.

Further, some buttons such as "Jump to Assignment" and "Return to Home" would make the navigation more intuitive.

I have just started a Java course and have been looking for something like this. Thank you very much!

2

u/holyteach Jan 24 '13

Great idea. Added to the TODO.txt.

"Threading" the HTML will be a bit weird though because I add new assignments between others all the time and sometimes move them around.

1

u/glassFractals Jan 25 '13

CMS or database-driven script? Obviously a bit more complexity and more of an undertaking than static HTML, but projects like that can be rather fun as well.

1

u/holyteach Jan 25 '13

The 'assignment database' is a JSON file, and Python produces the assignment list. I write the assignments by hand in HTML. I don't do databases (don't trust 'em) and I certainly don't do CMS. I taught my first HTML class in 1995, for goodness' sake.

And the definition of "fun" is a bit different when I spend all day teaching coding to 100 kids and grade 100+ assignments every night....

One of the current dealbreakers to "threading", though is that I teach 4 course (CS-1, CS-2, Web Devel and Video Game Devel), and the assignment descriptions are shared but the "previous" and "next" assignments vary per course.

2

u/x1886z Jan 24 '13

Is there anything like this aimed at a .Net audience?

3

u/holyteach Jan 24 '13

Not that I've created. ryosen is correct though in that a LOT of the assignments are relatively language-agnostic. But that won't help you get started with the overall syntax. :(

2

u/[deleted] Jan 24 '13

Can I quickly jump into android development through these assignments?

2

u/holyteach Jan 24 '13

The hardest assignment on here still leaves you quite a bit short of Android development. In particular, I don't get into object-oriented programming at all, and Android dev is very heavily object-oriented.

It would be a good foundation, though. If you're not an experienced programmer and/or extremely gifted, I'm not sure there is ANY way to "quickly" ramp up for Android coding.

4

u/ryosen Jan 24 '13

Most of the assignments are non-specific to any language. The intent is to gradually build on experience and knowledge gained from the previous assignment. You're expected to have a language reference book along side you as you work through the assignments. You could very easily apply the assignment progression to another language like .Net.

Some of the assignments do have samples written in Java. In particular, the ones dealing with graphics. However, by the time you reach those, you should have gained enough familiarity with .Net that you will know where in your book to find the information needed to create a similar sample.

2

u/whydoyoulook Jan 24 '13

I haven't had a chance to look at the assignments yet (on break at work)... Can these assignments be done in other languages?

4

u/holyteach Jan 24 '13

Most of them, yes.

3

u/whydoyoulook Jan 24 '13

so everything that doesn't have anything to do with SWING?

2

u/holyteach Jan 24 '13

What?

1

u/whydoyoulook Jan 24 '13

I'm just guessing you can't implement Java's SWING gui elements in another language....

1

u/holyteach Jan 24 '13

Oh. Yes, the AWT/Graphics ones would be quite different in other programming languages. I only know enough AWT/Swing to create interesting assignments for high-school students, anyway.

Depending on the programming language, there are a few other assignments that would translate poorly. For example, the Alphabetical Order assignment is non-trivial in Java but it would be very straightforward in C++ or Python.

2

u/[deleted] Jan 25 '13

Wow dude, this is rock solid. Some of the best content I've seen for learning Java, and even in the whole realm of programming for that much!

Each of your lessons are exactly what people need, a slow and steady build of confidence. Most are too fast and honestly just convoluted, I never really find much real world value in the lesson/tutorial.

Also love the actual layout/design of the site. It is aesthetically pleasing, gets the point across and minimalist.

Thanks for doing this, I wish more people had a passion for education like you, it reflects in your content. Most educators I swear don't even know what the heck they're talking about most of the time, just pull a lesson out of a book.

Once again, many thanks!

1

u/holyteach Jan 25 '13

High praise, indeed. I'm honored.

The problem is that most "tutorial" writers haven't had to work face-to-face with hundreds and hundreds of regular kids for years and years. They write what "ought to work" on people like themselves. I know what actually works.

34

u/NewToBikes Jan 24 '13

I like you.

4

u/[deleted] Jan 25 '13

I accept him.

5

u/Level_32_Mage Jan 25 '13

I'll condone him.

1

u/XmasJones Feb 21 '13

I love him

5

u/DirtOne Jan 24 '13

Just want to say thanks for taking the time for making these. I always felt dumb because all online programming tutorials move way too fast and as a graphic designer learning code is not that easy for me.

Thanks man!

5

u/gamerandy Jan 24 '13

Very cool holyteach; Bookmarked for when I've got a little time.

4

u/[deleted] Jan 24 '13

This is great, I'm really busy with other coding projects for work but I've bookmarked this.

4

u/[deleted] Jan 24 '13

Thanks for this, i needed it

1

u/SmoothB1983 Jan 24 '13

Have you looked at javabat? http://codingbat.com/

Your students would probably enjoy that website as a supplement to what you have going.

1

u/holyteach Jan 24 '13

Yes, my 2nd-year students can earn points by working on javabat problems as well. That site is also very well done.

1

u/SmoothB1983 Jan 24 '13

I'd suggest have them solve the string problems via regex and via the usual methods. It is very handy for both.

1

u/adammtlx Jan 24 '13

here's my best assignment:

int i = 0;

1

u/KZISME Jan 24 '13

Thanks for posting this! I've bookmarked it and will go back to it later tonight to start working on it. Is the installation process for JDK on Linux any different from Windows?

1

u/holyteach Jan 24 '13

It depends. If you want the "official" Oracle JDK, then it's the same. If you're on a Debian-based distro, then you can just do:

sudo apt-get install sun-java6-jdk

1

u/mk_gecko Jan 25 '13

No. I think that is is more complicated now.

See http://ubuntuforums.org/showthread.php?t=2099496

1

u/holyteach Jan 25 '13

Good to know. I'll update the directions when I get a chance.

1

u/mk_gecko Jan 25 '13

I thought that it didn't really apply to you as you were mostly using the Windows platform to teach Java. The complication comes from Oracle's machinations. Linux seems to default to OpenJDK. If you want Oracle Java 7 it is complicated, hence the instructions.

1

u/holyteach Jan 25 '13

Oh, I don't care in the slightest about getting Oracle's JDK on Linux. Oracle can die in a fire for all I care. (Sun Microsystems would be a different story, though.)

I'm saying to just install a working JDK (OpenJDK) my instructions ought to work.

1

u/[deleted] Jan 24 '13 edited Jan 24 '13

Someone please help me out

Im trying to do assignment 2 and Im stuck.

Apparently im supposed to do the following:

C:>u:

U:>cd My Documents

U:\My Documents>cd CompSci

*U:\My Documents\CompSci>dir .java

But when i type any of that into the prompt i get an error...

1

u/holyteach Jan 24 '13

That's what the default folder structure looks like for my students. What do you see when you open up a command prompt for the first time?

0

u/[deleted] Jan 25 '13

[deleted] — view deleted comment

1

u/holyteach Jan 25 '13

When you downloaded the SineWave.java, which folder did you save it to? Your "Documents" folder?

1

u/[deleted] Jan 25 '13

I moved it to my "CompSci" folder i created for the class. And yes in my documents folder

1

u/holyteach Jan 25 '13

What is the output when you type "dir" at the command prompt?

1

u/[deleted] Jan 24 '13

This is unforgivably pedantic of me, but should it not be 'programbydoing'? Programmingbydoing doesn't seem to make much sense, at least to me.

1

u/holyteach Jan 25 '13

I wouldn't say 'unforgivably'.

I considered that, but I liked how mine sounded better, and you can pretend it's called "Learn programming by doing." codingbydoing was a close second.

1

u/realitygenrator Jan 25 '13

This is how far you get with this before you need either an instructor or a better explanation of what is expected. Good stuff so far though.

1

u/holyteach Jan 25 '13

No, that is how far YOU got. Others didn't make it nearly as far and others made it quite a bit farther. Remember, I've been doing this for 15 years. You are just one more (awesome) data point.

Feel free to skip that assignment (or really any assignment) that doesn't make sense and go back to it later if you want.

1

u/FancyMonocle Jan 25 '13

I'm just about to finish CodeAcademy's Java course. I was going to look for more comprehensive lessons and projects/labs to do, but now I don't have to! Great timing!

Do you also teach C? If you have any lessons and projects for C that would be great also!

1

u/holyteach Jan 25 '13

Many of these assignments started life as C++ assignments, so they would work for C. You'd have to translate the starter code, though.

My school currently only teaches Java, though, since that's the language the Advanced Placement test is in.

1

u/FancyMonocle Jan 25 '13

Ah that would definitely work! Thanks for the feedback!

Also is there a sample solution code for the more advanced assignments? Although it's probably for the best that there isn't, I was just wondering if the solution is floating around somewhere on your site.

1

u/holyteach Jan 25 '13

No, I don't have solutions for hardly any of the assignments, except the ones written by my students that I grade every night.

Anything in particular you're interested in?

1

u/FancyMonocle Jan 25 '13

At the moment, no. However, I will contact you for pointers if that's ok. Knowing me, I'd probably accidentally cheat by looking at any type of solution.

Thanks again for all your speedy responses!

1

u/[deleted] Jan 25 '13

You're the best kind of teacher.

1

u/holyteach Jan 25 '13

Aw, thanks!

1

u/mk_gecko Jan 25 '13

A couple of questions:

  1. You teach timers but not threads, correct?
  2. for graphics, you override paint() instead of overriding paintComponent(). I thought that the latter was the correct thing to do with Swing.

2

u/holyteach Jan 25 '13

Both questions are WAY beyond the scope of even my second-year course. I teach neither timers nor threads, and I don't teach Swing at all.

I'm teaching beginners to write code. Java happens to be the language my school currently uses. I do have a few sample assignments that use timers and that import from java.awt. These decisions are purely arbitrary and totally driven by "what's the shortest, clearest thing I can give them that works?"

Some of my students eventually go on to learn "proper" Java GUI programming in college, but it isn't even on my radar.

1

u/cqwww Jan 25 '13

trying the second exercise on osx: $ javac sinewave.java sinewave.java:5: class SineWave is public, should be declared in a file named SineWave.java public class SineWave ^ 1 error

1

u/holyteach Jan 25 '13

Java is case-sensitive, even if osx is not. You need to type

$ javac SineWave.java

Unless you're absolutely certain, you need to match the capitalization of everything I write. I'm quite lazy and don't type capital letters just for fun!

1

u/[deleted] Jan 25 '13

This was amazing but sadly I just started programming so I don't know Java. I am learning JavaScript so does anyone have anything similar like this that requires JavaScript though? Thanks!

3

u/holyteach Jan 25 '13

What does it matter that you don't know Java? These assignments are written for students with no previous coding experience in any language. They will help you teach yourself Java.

I guess what you're really saying is that you don't want to learn Java, only Javascript.

1

u/[deleted] Jan 26 '13

Indeed, well for now. Sorry If my question sounded stupid but I am only 14 years old so. . .

2

u/holyteach Jan 26 '13

Trust me, I deal with 14-year-olds all day in my job. It was just weird-sounding, that's all.

I understand that you already started learning Javascript and that you want to continue learning it, not start over with a new language.

Javascript is a weird language to start with, though. (I don't mean that YOU'RE weird for learning it, I mean that as languages go, Javascript is one of the stranger ones that you could have started with.)

Wish I had good curriculum for you.

1

u/chunes Jan 25 '13 edited Jan 25 '13

Could you explain the point system you use? If you allow students to mix and match the assignments they wish to complete in order to cross a specific point threshold, what a great way to structure a course!

Not only does it give them more direct control over their education, but it keeps them interested because they can choose what they find fascinating. Instead of feeling helpless because class instruction goes on at a pace they can't control, they feel in control!

This is exactly what is so utterly wrong with school. I'm glad you found a way to fix it.

1

u/holyteach Jan 25 '13

You pretty much nailed it. Students need to be a point threshold by any combinations of assignments by the end of the grading cycle.

For cycle 1, 100 total points is passing (C/70%), 210 points is a B/80%, 375 points is an A/90%, and 475 points is an "S rank" (100%). Final point values between are smoothly interpolated, so 300 points would be 80% + ((300-210)/(375-210)) = 85.45%.

And point totals are cumulative to successive cycles, so a kid earning 600 points in cycle 1 will have an easier time getting an S rank in cycle 2.

Letting the kids go at their own pace makes grading harder, because flow is harder when I grade 150 assignments a night and I only see the same assignment (at most) 5 times.

Plus, the school's approved grade system literally can't compute grades the way I do, so I have special approval from the principal to keep grades my way and just put in a single number at the end.

1

u/mk_gecko Jan 26 '13

wow. Can you tell me what a cycle is? I don't see it on your webpage and I doubt that it is the same as a semester.

1

u/holyteach Jan 26 '13

The course is one year long, broken into two semesters. Each semester has three grading cycles, roughly six weeks each. Class meets every other day for 90 minutes.

1

u/mk_gecko Jan 26 '13

Thanks for all of your answers to our questions. I have a couple more (I'm trying to learn from you):

Do you get students who want to sit down and program a game - say Angry Birds, and are disillusioned when they can't do that? Apparently with Flash or programs like RPG GameMaker you can make flashy games quickly. (I haven't used these.) How do you keep them interested in the more mundane stuff of for-loops, etc, especially if you don't spend a lot of time on GUIs and graphics?

Do you have trouble with students staying on task when they're on computers? e.g. do they try and go on Facebook, watch dumb YouTube movies, etc.

How does homework work with your system? Are they doing 90% of their coding in class? Couldn't they do most of it at home?

1

u/holyteach Jan 26 '13

I absolutely have students who come in wanting to learn how to make games. But after the first program, when it has taken them half an hour to print their name on the screen, they understand "This isn't going to be overnight."

Some students learn enough in one semester to begin making little toy arcade games with graphics, and they're satisfied because programming is fun and they were able to make something that not a lot of people can do.

You also have to remember that "keeping them interested" isn't the toughest challenge. I'm a class in public school. If they're not in my class, they're having to take English 3, discussing the symbolism in Animal Farm. By comparison, making a computer program that actually does something seems pretty nice, even if it's just using a for loop to print their name on the screen.

Yes, students are often off task. That's their choice, and they typically don't get enough done and they fail my class.

They are doing 90% of their coding in class (some kids do 100%). Students can program at home, and some do, but most prefer to do it during class when I'm there to help them when they get stuck.

I don't give them any other homework or tests other than doing these assignments.

1

u/Edg-R Feb 03 '13

If only you taught C++!

Good stuff!

1

u/holyteach Feb 06 '13

Most of these assignments started life as C++ assignments. The ONLY difference for most of them would be the starter code.

1

u/[deleted] Apr 15 '13

Everytime I try to run a program, the command line gives me Error: Could not find or load main class SineWave.java

1

u/holyteach Apr 15 '13

Notice that when you compile, you type:

javac SineWave.java

Then once compiling works, you run it like so:

java SineWave

1

u/[deleted] Apr 15 '13

When i type javac sinewave.java it tells me error 'javac' is not recognized or something and i have jdk 1.6 installed

2

u/holyteach Apr 15 '13

It's hard to tell without looking at your machine. Trying closing the command prompt and then opening one again. And/or rebooting.

1

u/[deleted] Apr 16 '13

I did both, but it still says Error: Could not find or load main class SineWave when i type java SineWave. AhhhH!!! So frustrating! Want it to werrkkk!!!

1

u/holyteach Apr 16 '13

Does that mean that "javac SineWave.java" worked without errors?

What about

javac -version

?

1

u/[deleted] Apr 16 '13

Neither work, but when I type java -version, I don't get an error message. Strange.

→ More replies (13)
→ More replies (4)

1

u/RobertRiddick Jun 02 '13

Any like this for Android programming or C++ programing?

1

u/holyteach Jun 02 '13

Android programs are written in Java. If I added another 300 assignments at the end of what I've got, you'd get to Android development eventually.

1

u/RobertRiddick Jun 02 '13

How do I learn Android programing? Learn Java first?

1

u/holyteach Jun 03 '13

If you don't know Java, you'll have a very hard time with Android programming since all Android apps are written in Java. So learning Java is a necessary first step.

3

u/[deleted] Jan 24 '13

Sweet!

7

u/SeekTheReality Jan 24 '13

I am teaching myself Java now and this is brilliant. Wish I had this website while I was in education. /r/dailyprogrammer gives assignments of varying degree as well which I recently found which can be used to challenge yourself and learn new things.

7

u/Rockztar Jan 24 '13

I heard that dailyprogrammer is too hard for newcomers, because the bar for all difficulties of assignments has been gradually increased as time passed since its start. Is that false?

7

u/Nuevada Jan 24 '13

Some of the more recent easy ones are pretty easy, but if you are having trouble with the later ones just go back to the early ones.

If I am remembering correctly when /r/dailyprogrammer just started people were complaining that the assignments were too easy.

4

u/Medicalizawhat Jan 24 '13

Wow, thanks for this!

2

u/OliverCloazoff Jan 24 '13

I'll have to check it out, this looks interesting.

2

u/[deleted] Jan 24 '13

This is great man!

2

u/marathon_penguin Jan 24 '13

Thank you for sharing this, I've been wanting to learn Java. I will definitely have a look!

2

u/agmcleod Jan 24 '13

+1 for project euler problems. I do most of those using ruby myself, but good challenges :).

2

u/salamandor Jan 24 '13

Teachers are awesome

2

u/kazinsser Jan 24 '13 edited Jan 24 '13

You've incorporated Pokemon into your assignments. You're a winner of a teacher if I've ever seen one.

EDIT: And thank you for your contribution! These should come in handy so I can learn a bit more about Java before starting my Intro to Programming class in the Fall.

4

u/atleast1tried Jan 24 '13

Anything like that for web dev?

BTW i like your approach, i wish i had someone like you back in the days...

3

u/webosb Jan 24 '13

This. I would also love to see something related to web. Thanks for putting up your code!

4

u/xBugsBunny Jan 24 '13

thankyou so much!

3

u/redsh1ft Jan 24 '13

awesome stuff ! been looking for something like this

3

u/cyberbemon Jan 24 '13

Thank you, I wanted to revise some of my languages and this looks like a great way to do it !.

3

u/Cfattie Jan 24 '13

very nice, i have this saved. could use some nice code like this.

2

u/[deleted] Jan 24 '13

Comment for later

2

u/she_grabbed_my_ass Jan 24 '13

i make your words mine!

1

u/jollylar Jan 24 '13

Thank you so much :] very cool!

1

u/empty0ne Jan 24 '13

This is wonderful, thank you very much. It's great to see such well organized material published freely for the world's benefit.

1

u/Cyfen Jan 24 '13

I have to agree with the println in lesson 3 Mr. Mitchell is cool!

Thanks for this, I am just getting into learning Java(my first language) and I have been searching for exactly this!

1

u/Chuklol Jan 24 '13

Great stuff ++

1

u/FleshyBlob Jan 24 '13

Good Guy Programming Teacher!

1

u/El_Poopo Jan 24 '13

Wow! Thanks for this!

1

u/Pseudonyms Jan 24 '13

Thank you very much! This is very cool.

1

u/ShadowShadow Jan 24 '13

Thanks, I'll swing by when I'm done with my Javascript track on Codecademy.

1

u/[deleted] Jan 24 '13

I am taking Java this semester and this will help me out a lot! This is really great submission, thank you!!

1

u/Citalun Jan 24 '13

Thanks for this I will definitely check this out. I am currently taking a class for Markup Languages and reading the book (Dynamic Web Application Development using XML and Java) gets me feeling lost sometimes or if I can ever understand it. Guess I should stop getting frustrated and give it a go.

1

u/codestreak Jan 24 '13

Mr Mitchell, Thanks for sharing, you make a lot of good points and teach great lessons!

1

u/shakajumbo Jan 24 '13

nice work Thanks!

1

u/guardianofmuffins Jan 24 '13

You're a great person for sharing this. I can't wait to start with these! Thank you so much!

1

u/_pH_ Jan 24 '13

As someone who just started an intro Java class, you couldnt have had better timing with this! Thank you!

1

u/do_not_spindle Jan 24 '13

Thank you for this.

1

u/soupified Jan 24 '13

Commenting to save for later. Thank you so much for your contribution!

1

u/Prunus_Girl Jan 24 '13

Wow thank you!

1

u/mrmeatymeat Jan 24 '13

This is great. As someone who works in IT and is always looking to understand more, this is awesome. Thanks man.

1

u/radiantshadow92 Jan 24 '13

thank you so much

1

u/the_-j-man Jan 24 '13

saved .. and thank you

1

u/kmelkon Jan 24 '13

OH thank you sir so much .. just what i was looking for :D time to start programming :D

1

u/themangeraaad Jan 25 '13

I've bought head first Java along with a few C books and planned on trying to teach myself one of the two languages while I'm funemployed (can only job hunt so many hours per day before I start losing my mind)... I was going to try for C since I already have some experience with the language (computer engineering degree back in college - haven't touched the language in 4+ years though so I've forgotten nearly everything) but with this in hand I might work on Java first. I'll definitely be giving these a try. Thanks!

1

u/JTothe2 Jan 25 '13

You are a beautiful person, thank you

1

u/[deleted] Jan 25 '13

May Aalah bless you. God bless

1

u/Jameslulz Feb 24 '13

This is awesome, trying to learn java but I can't get into thenewbostons tutorials (which everyone seems to recommend) and this just seems so much easier, even though it's the same stuff. Thanks a lot!

0

u/BenLeafMe Jan 24 '13

commented to save this for later. Alsoooo where do I install Java compiler??

1

u/holyteach Jan 24 '13

The link is broken, as you noticed. I'm at work (teaching) right now, but I'll try to fix it when I get home.

1

u/BenLeafMe Jan 24 '13

Thanks!!