Scratch?

In this forum members can discuss topics about specific programming languages.
Post Reply
User avatar
Xyzzy
Posts: 1
Joined: Sat May 26, 2012 4:10 am
Contact:

Scratch?

Post by Xyzzy »

I'm teaching my son to program. I am using the Scratch language.

http://scratch.mit.edu/

I have posted solutions for problems 1 and 2 thus far.

Scratch, at first glance, appears to be a toy, but so far my son and I are having a blast with it. He is not yet ready for Project Euler problems but I hope that he will be soon.

It would be cool if Scratch was officially recognized here.

I admit posting source code is a bit of a pain. I have resorted to images in my public Dropbox folder.

Thanks for your consideration!

--
Xyzzy
User avatar
timday
Posts: 37
Joined: Tue Oct 12, 2010 11:25 pm

Re: Scratch?

Post by timday »

Nice one; wondered when we'd see some Scratch-ing on PE. Can see the difficulty in posting solutions in the forum though!

Having watched some friend's bright kid get into programming through Scratch, I think it's an absolutely fantastic tool for learning; the snap-together blocks sidestep many of the "syntax error" issues which I remember frustrating me as a beginner and let you get on with the real business. Plenty of schools seem to be discovering it, and it seems to me to have more chance of engaging kids than, say, a Python command line (hello Rasberry Pi yes I'm looking at you; that project seems to be more about nostalgia for the "good old days"). Some other comments at http://stackoverflow.com/a/4002169/24283 and http://stackoverflow.com/a/774748/24283.

BYOB is well worth a look http://byob.berkeley.edu/if Scratch starts to seem a bit limiting but you're not ready for texteditors and IDEs. See also their paper at http://byob.berkeley.edu/BYOB.pdf on breaking out of Scratch's limitations. The kid mentioned above moved onto it; I almost fell off my chair when he showed me what was basically a functional programming solution to something. BYOB's ideas seems to be getting a rebrand (as "Snap!" ?) and some more momentum as part of http://bjc.berkeley.edu/ (see also the bit on the flyer at http://bjc.berkeley.edu/fourpage.png saying "Why not Java/Javascript/Python...").
Image
Ahaanomegas
Posts: 10
Joined: Mon Jun 18, 2012 1:14 am

Re: Scratch?

Post by Ahaanomegas »

It's wonderful that there are people here to recognize Scratch. I was a very active user on Scratch when I was younger. I'm not that active now - lot of work in high school. But Scratch gave me the first experience as a programmer. Many people say "Oh. Scratch is for newbies." - my response to that is just "No."

ProjectEuler and Scratch one of the most awesome websites around, for any age available and when there's a partnership, it's just even more amazing!

I have one suggestion, though. Please do not post PE solutions anywhere on the Internet - whether it be Scratch, Google Docs, etc.

Thanks! :)
Image
james_b
Posts: 1
Joined: Thu Mar 27, 2014 3:12 pm

Re: Scratch?

Post by james_b »

Hello,

Glad to have found this topic. I was first introduced to PE by a friend at my Makerspace some time ago. Now, a few new friends and I taking the MIT Learning Creative Learning MOOC are playing around with tackling PE problems in Scratch as Scratch is one of the mediums we were introduced to in the course.

I think there is a modification that works with at least the old version of Scratch where you can somehow extract text versions of your code. I know you can extract images but that doesn't help so much.

I have a question about Scratch and PE:
Ahaanomegas wrote: Please do not post PE solutions anywhere on the Internet - whether it be Scratch, Google Docs, etc.

Thanks! :)
I have read the FAQ and understand the spirit behind why solutions are discouraged from being shared in public anywhere except the problem threads here at PE.

Is there a way we can somehow share projects related to the problems without potentially ruining the problems for others?

We could mung the title and description somehow so our Scratch projects wouldn't be so searchable, but they might still pop up for users searching about Euler on Scratch. We thought about making it so our projects don't visually show the user running the project which answer the project has calculated, but then people could still easily click to "See Inside" the Scratch project and see how we did it.

We also talked about creating variations of the PE problems dissimilar enough that someone would still have to come up with a unique twist on our code to solve a given PE problem.

Another idea that I am starting to lean towards would be projects that do not solve the problems but instead are designed as info projects that try to explain the concepts of the problem and tips, examples of hints. I like this idea if we can figure out fun, informative ways to get new people on Scratch excited about and involved with PE.

I don't think my cohorts and I are deadset on sharing PE projects on the Scratch website, but it would be nice if we found some ways to share types of projects that enhance and do not compromise the PE experience for Scratch users.

Also, if anyone would like to join our merry band and help us collaborate some of the ideas above on Scratch, the more the merrier.

Thanks for any help!

Fair warning, we started out before doing due diligence research about best sharing methods and have already shared two problems. We are changing them so they don't work against what PE is all about and they will be removed or changed into supplemental projects instead.

PS, if you want to help us out, here's our PE studio on Scratch: http://scratch.mit.edu/studios/385599/projects/ We could use and would welcome any help from anyone interested in helping to design a unique Scratch experience to help new Scratch users get into PE.
Circling
Posts: 10
Joined: Wed Sep 16, 2020 7:33 am
Location: Earth
Contact:

Re: Scratch?

Post by Circling »

Depends on how big the numbers in the problem are.


For example, if you try to calculat 3 ** 34 by repeatedly multiplying a variable 34 times you get an even number (which is obviously wrong, powers of 3 cannot be even)


I think that if you are careful and all numbers are below 3 ** 33 it should be mostly fine.
Problem 54 is terrible
Post Reply