This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.
  • Index
  •  » Advanced Topics
  •  » BBP.HTM (Block-based-programming web app in HTML, inspired by Scratch)

#26 2012-09-23 10:43:26

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

Re: BBP.HTM (Block-based-programming web app in HTML, inspired by Scratch)

Hardmath123 wrote:

blob8108 wrote:

Hardmath123 wrote:


lol

Email addresses are so complicated that most (sensible) people now recommend validating emails by simply checking they contain "@".  tongue

Or actually writing a script to send a dummy email and recording any error messages.  tongue

Yeah, that's the other one: just send them an email.  tongue  That's what most sign-up forms do, of course.


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

#27 2012-09-23 11:36:51

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: BBP.HTM (Block-based-programming web app in HTML, inspired by Scratch)

blob8108 wrote:

Hardmath123 wrote:

I think regexes are really overkill for block-based programming
(\b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b kind of overkill).

tongue

Have you seen the regex for validating email addresses according to the spec?

Yeah, i have.  lol

Well, you've actually pretty much convinced me about Quartz. It does seem like a good idea to create a block-based graphical programming tool. So, i guess i'll have to do some more research into it. Do you know of any alternatives for Linux?

Offline

 

#28 2012-09-23 21:06:38

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: BBP.HTM (Block-based-programming web app in HTML, inspired by Scratch)

scimonster wrote:

blob8108 wrote:

Hardmath123 wrote:

I think regexes are really overkill for block-based programming
(\b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b kind of overkill).

tongue

Have you seen the regex for validating email addresses according to the spec?

Yeah, i have.  lol

Well, you've actually pretty much convinced me about Quartz.

big_smile

It does seem like a good idea to create a block-based graphical programming tool. So, i guess i'll have to do some more research into it. Do you know of any alternatives for Linux?

No, I'll have to look into it.

EDIT: No, sorry. If you want, I can make you a couple of screenshots for features you want to see (Quartz is on my mom's Mac, though, apparently it's not compatible with Lion...).

Last edited by Hardmath123 (2012-09-24 06:38:57)


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#29 2012-09-24 07:48:49

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: BBP.HTM (Block-based-programming web app in HTML, inspired by Scratch)

If we're using functional programming, I can dig out my Scheme interpreter which parses and evaluates Scheme code in prefix notation. I have all the logic kinks and special forms worked out already, all we need to do is adapt it. It even has some rudimentary image processing:

Code:

(@import draw)
(initcanvas)

(define (graph title a b c)
    (list
        (clearcanvas)
        (setfc (color "black"))
        (drawtext title 70 5)
        (rect 10 150 10 (* a -100))
        (rect 30 150 10 (* b -100))
        (rect 50 150 10 (* c -100))
    )
)

(graph "title" 1 0.5 0.2 0.1)
(showcanvas)

produces

Code:

data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAACWCAYAAABkW7XSAAAEd0lEQVR4nO3dIXBUVxiG4f/vRKQucSCpqyyyEhx1SCpbV4mtxVFHXSupo651RSLBFUcldcQl7lTszXBJk80NISTf8jwzmd3s7klOzDtnz71302OMAkjw2WVPAGApwQJiCBYQQ7CAGIIFxBAsIIZgATG2LnsCn6Lu/qqqblTVizHGP5c9H0hhhXVO3f2qu0d3f3eGYc+q6klVPbqgacFGEqw1unu7ux9295vu3jnm+Wu1WilVVd1bOq6q9qbbgw8/a9hcgrXe3aq6X1U7VbV99Mkxxr9V9bRW4flp6Tjg/djDWu/z2f3d7t6rqhpjHFStVlJjjNtnHbdEd39Zb2P38ixjYVNZYZ2gu+9W1S+zh/6uqv2qej17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LiCFYQAzBAmIIFhBDsIAYggXEECwghmABMQQLiCFYQIz/AHZS1XcONGQLAAAAAElFTkSuQmCC

(copy all of it and paste it in your URL bar)

Last edited by Hardmath123 (2012-09-24 07:52:30)


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#30 2012-09-24 08:19:08

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: BBP.HTM (Block-based-programming web app in HTML, inspired by Scratch)

That's very good.  big_smile

Offline

 

#31 2012-09-24 08:21:32

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: BBP.HTM (Block-based-programming web app in HTML, inspired by Scratch)

Yeah, I'm really proud of my Scheme interpreter. It handles Lambda and recursion, too!


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#32 2012-09-24 09:20:31

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: BBP.HTM (Block-based-programming web app in HTML, inspired by Scratch)

That looks pretty cool. I feel like i'd have to use Quartz, or something like it, to learn about its features.

Offline

 

#33 2012-09-24 10:10:39

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: BBP.HTM (Block-based-programming web app in HTML, inspired by Scratch)

Try watching some YouTube video tutorials.


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#34 2012-09-26 06:51:42

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: BBP.HTM (Block-based-programming web app in HTML, inspired by Scratch)

Bump. Sci?


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#35 2012-09-29 15:29:30

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: BBP.HTM (Block-based-programming web app in HTML, inspired by Scratch)

Sorry. life got in the way: I can't be too active over the next week. but i'll try to watch some videos about the usage. and use some similar programs: I found VVVV. which even has an online version::

Offline

 

#36 2012-09-29 20:54:55

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: BBP.HTM (Block-based-programming web app in HTML, inspired by Scratch)

scimonster wrote:

Sorry. life got in the way: I can't be too active over the next week. but i'll try to watch some videos about the usage. and use some similar programs: I found VVVV. which even has an online version::

Me too, I've got exams. Why don't we let this topic hibernate for two weeks?  smile


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#37 2012-09-30 05:07:49

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

Re: BBP.HTM (Block-based-programming web app in HTML, inspired by Scratch)

Hardmath123 wrote:

scimonster wrote:

Sorry. life got in the way: I can't be too active over the next week. but i'll try to watch some videos about the usage. and use some similar programs: I found VVVV. which even has an online version::

Me too, I've got exams. Why don't we let this topic hibernate for two weeks?  smile

You need to feed it lots of posts first to keep it warm...


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

#38 2012-10-03 02:39:00

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: BBP.HTM (Block-based-programming web app in HTML, inspired by Scratch)


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#39 2012-10-04 16:20:16

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: BBP.HTM (Block-based-programming web app in HTML, inspired by Scratch)

Nice find. I was thinking of something similar.  smile

Do you know the difference between VVVV and Quartz? Maybe you could use WINE, because VVVV is a Windows-only program.

Offline

 

#40 2012-10-04 20:59:17

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: BBP.HTM (Block-based-programming web app in HTML, inspired by Scratch)

VVVV looks gross to me. It's like Quartz, but it's nearly as cool to look at, and it's not nearly as intuitive. With quartz, you can drag and drop patches really quick, and it's much easier-looking to use. Besides that, since it's an Apple product, all the node connecters are beautiful bezier curved lines which are color-coded for error types. There are lots of 3D functions/transformations/built-in simulations, too. Here's some stuff about Quartz vs. VVVV, it's pretty definitive.


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 
  • Index
  •  » Advanced Topics
  •  » BBP.HTM (Block-based-programming web app in HTML, inspired by Scratch)

Board footer