New blockly maze - minified is not awesome

224 views
Skip to first unread message

Eric Eslinger

unread,
Mar 24, 2015, 11:15:50 AM3/24/15
to blockl...@googlegroups.com
Hey block-folks,

I just wanted to weigh in with some feedback. I understand that there's lots of reasons to minify your JS code for production, but previous iterations of the blockly games have been unminified, and that's no longer the case. 

I actually used that as a next-level lesson to my students who got through maze level 10 quickly: find other ways to get to the end or find a way to make more games. It's *hugely* empowering to discover that each web browser has a console and you can take apart running applications to see how they work, or at least you can poke them a little, but when they're minified it's a lot harder to do that. You used to be able to pull up interestingly-named variables attached to window like window.game.moveTo(x,y) and such.

I'll probably just end up forking the repo and running my own copy of the games on an appengine instance, but I wanted to put this piece of feedback in the stream.

e

Neil Fraser

unread,
Mar 24, 2015, 2:42:37 PM3/24/15
to Eric Eslinger, blockl...@googlegroups.com
As you've probably seen, Blockly Games can be run unminified by changing 'compressed' to 'uncompressed' in boot.js as described here:
https://github.com/google/blockly-games/wiki/Build#debug-mode
This would either involve running a local copy, or you could write a Greasemonkey (Firefox) or Tampermonkey (Chrome/Safari/Opera) script that makes this modification on the fly.

That you encourage your students to do this is awesome.  I wish there were more teachers like you.  That said, there are even more people using connections where the difference between minified and non-minified Blockly Games is the difference between playable and unplayable.  I just came back from Cuba where university CS students have a 10MB Internet quota per month.  After seeing that, I cranked up compression even further.

--
You received this message because you are subscribed to the Google Groups "Blockly Games" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly-game...@googlegroups.com.
To post to this group, send email to blockl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/blockly-games/de801dc5-21b3-4681-99ad-cefd9771cb9f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Neil Fraser

unread,
Mar 28, 2015, 10:09:43 PM3/28/15
to Eric Eslinger, blockl...@googlegroups.com
Minification may now be toggled by visiting /debug (online) or /debug.html (offline).  The setting lasts for the duration of your session (until the browser closes).

On 24 March 2015 at 08:15, Eric Eslinger <eric.e...@gmail.com> wrote:

--
You received this message because you are subscribed to the Google Groups "Blockly Games" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly-game...@googlegroups.com.
To post to this group, send email to blockl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/blockly-games/de801dc5-21b3-4681-99ad-cefd9771cb9f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages