This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-11-04 18:50:00

ohaiderstudios
Scratcher
Registered: 2010-10-31
Posts: 100+

Decaf JavaScript Editor

JavaScript can be tedious to both learn and write. With Decaf, my aim is to make it a lot simpler. Although Decaf will be simple, I am trying to make it as functional as possible. Unlike other code generators, which only let you do so much, Decaf will give you nearly limitless options!

http://imageflock.com/img/1320446739.png

You can see the basic layout of Decaf in the image above, but I am open to criticism and suggestions on how to make it better.

It's not finished yet, but hopefully I can have it ready within the next week!


Fork Clamor on GitHub!

Offline

 

#2 2011-11-04 19:44:15

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

Re: Decaf JavaScript Editor

I wouldn't mind contributing. I know javascript and was actually thinking about making something very similar.  big_smile

Offline

 

#3 2011-11-04 21:48:31

ohaiderstudios
Scratcher
Registered: 2010-10-31
Posts: 100+

Re: Decaf JavaScript Editor

ProgrammingFreak wrote:

I wouldn't mind contributing. I know javascript and was actually thinking about making something very similar.  big_smile

Thank you for your offer. However, I find it much easier to work on things by myself.
Want to be a beta tester/consultant?


Fork Clamor on GitHub!

Offline

 

#4 2011-11-04 21:49:59

gbear605
Scratcher
Registered: 2008-03-06
Posts: 1000+

Re: Decaf JavaScript Editor

Could you put on github? (I know I'm obsessed, but it is awesome)  Github is a really useful code-sharing and collaborating website.


Yeah, I'm mostly inactive.  I check in once in a while though.  If you want to contact me, I have a contact form at my website, http://escratch.org

Offline

 

#5 2011-11-04 22:07:28

ohaiderstudios
Scratcher
Registered: 2010-10-31
Posts: 100+

Re: Decaf JavaScript Editor

gbear605 wrote:

Could you put on github? (I know I'm obsessed, but it is awesome)  Github is a really useful code-sharing and collaborating website.

Maybe...


Fork Clamor on GitHub!

Offline

 

#6 2011-11-05 05:22:11

rookwood101
Scratcher
Registered: 2011-07-29
Posts: 500+

Re: Decaf JavaScript Editor

gbear605 wrote:

Could you put on github? (I know I'm obsessed, but it is awesome)  Github is a really useful code-sharing and collaborating website.

I think you really need to realise that github isn't the answer to everything. People can make their own decisions about whether they want to use it. If people want to use it then fine, but I don't think every project that someone makes should have to use it. And yes, you are obsessed.


http://i.imgur.com/zeIZW.png

Offline

 

#7 2011-11-05 07:34:41

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

Re: Decaf JavaScript Editor

ohaiderstudios wrote:

ProgrammingFreak wrote:

I wouldn't mind contributing. I know javascript and was actually thinking about making something very similar.  big_smile

Thank you for your offer. However, I find it much easier to work on things by myself.
Want to be a beta tester/consultant?

Yeah, I probably do most of the time too.  wink
I'll still check on it once in a while.  big_smile

Offline

 

#8 2011-11-05 07:39:34

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

Re: Decaf JavaScript Editor

I don't really get github, since I'm not that great with consoles.  hmm
Mind explaining, gbear?

Offline

 

#9 2011-11-05 08:16:44

gbear605
Scratcher
Registered: 2008-03-06
Posts: 1000+

Re: Decaf JavaScript Editor

ProgrammingFreak wrote:

I don't really get github, since I'm not that great with consoles.  hmm
Mind explaining, gbear?

There are two ways to use github.  One is mac only.

I'll explain the normal console one (all OS's)

1) Download and install Git from http://git-scm.com/
2) Check for SSH keys. Have an existing key pair? You can skip to Step 4.
First, we need to check for existing ssh keys on your computer:

Console wrote:

cd ~/.ssh

Checks to see if there is a directory named ".ssh" in your user directory
If it says “No such file or directory“ skip to step 4. Otherwise continue to step 3.
3) Backup and remove existing SSH keys.
Since there is already an SSH directory you’ll want to back the old one up and remove it:

Console wrote:

ls
mkdir key_backup
cp id_rsa* key_backup
rm id_rsa*

4) To generate keys (Remember to replace the email)

Console wrote:

ssh-keygen -t rsa -C "your_email@youremail.com"

Now you need to enter a passphrase.
5) Add your SSH key to GitHub.

On the GitHub site Click “Account Settings” > Click “SSH Public Keys” > Click “Add another public key”

Open the id_rsa.pub file with a text editor (Notepad, TextEdit, or gedit will do just fine). This is your public SSH key. You may need turn on “view hidden files” to find it because the .ssh directory is hidden. It’s important you copy your SSH key exactly as it is written without adding any newlines or whitespace. Now paste it into the “Key” field.

Other Way to see your SSH key wrote:

Can’t view hidden files? Other ways to copy:

OSX

Console wrote:

pbcopy < ~/.ssh/id_rsa.pubCopies the contents of the id_rsa.pub file to your clipboard

Windows

You can open Git Gui, go to Help > Show Key, and then press Copy To Clipboard to copy your public key to your clipboard

Linux

console wrote:

sudo apt-get install xclipDownloads and installs xclip
xclip -sel clip < ~/.ssh/id_rsa.pub

Now paste it into the “Key” field.  Leave the "Title" field blank.
Hit “Add Key.”
6) Test everything out.
To make sure everything is working you’ll now SSH to GitHub. Don’t change the “git@github.com” part. That’s supposed to be there.

Console wrote:

ssh -T git@github.comAttempts to ssh to github

Which should give you this:

Console Return wrote:

The authenticity of host 'github.com (207.97.227.239)' can't be established.
RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
Are you sure you want to continue connecting (yes/no)?

Don’t worry, this is supposed to happen. Type “yes”.

Console Return wrote:

Hi username! You've successfully authenticated, but GitHub does not provide shell access.

7) Now that you have Git set up and your SSH keys entered into GitHub, it’s time to configure your personal info.

Set your username and email.
Git tracks who makes each commit by checking the user’s name and email. In addition, we use this info to associate your commits with your GitHub account. To set these, enter the code below, replacing the name and email with your own. The name should be your actual name, not your GitHub username.

Console wrote:

git config --global user.name "Firstname Lastname"
git config --global user.email "your_email@youremail.com"

8) Set your GitHub token.
Some tools connect to GitHub without SSH. To use these tools properly you need to find and configure your API Token.

On the GitHub site Click “Account Settings” > Click “Account Admin.”

At the command line run the following code, using your GitHub username and token in place of the ones shown.

Console wrote:

git config --global github.user username
$ git config --global github.token 0123456789yourf0123456789token

*Note* If you ever change your GitHub password, a new token will be created and will need to be updated.

Now you have Git and Github set up!

I'm too lazy at the moment to do the rest of the stuff past that, so go to: http://help.github.com/create-a-repo/


Yeah, I'm mostly inactive.  I check in once in a while though.  If you want to contact me, I have a contact form at my website, http://escratch.org

Offline

 

#10 2011-11-05 08:16:53

resistance
Scratcher
Registered: 2011-10-30
Posts: 100+

Re: Decaf JavaScript Editor

i tried to learn java once.
it wasn't fun.


hand in mine into your icy blues, and then i'd say to you we could take to the highway with this trunk of ammunition too, i'd end my days with you in a hail of bullets

Offline

 

#11 2011-11-05 11:02:24

ohaiderstudios
Scratcher
Registered: 2010-10-31
Posts: 100+

Re: Decaf JavaScript Editor

resistance wrote:

i tried to learn java once.
it wasn't fun.

This is Javascript


Fork Clamor on GitHub!

Offline

 

#12 2011-11-05 11:56:42

ohaiderstudios
Scratcher
Registered: 2010-10-31
Posts: 100+

Re: Decaf JavaScript Editor

Good news! I've pretty much finished Decaf 0.1.0!
I just need to write a documentation/help file.
Expect a release later today!


Fork Clamor on GitHub!

Offline

 

#13 2011-11-05 12:08:59

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

Re: Decaf JavaScript Editor

Yay.

Offline

 

#14 2011-11-05 12:15:35

gbear605
Scratcher
Registered: 2008-03-06
Posts: 1000+

Re: Decaf JavaScript Editor

ohaiderstudios wrote:

Good news! I've pretty much finished Decaf 0.1.0!
I just need to write a documentation/help file.
Expect a release later today!

big_smile


Yeah, I'm mostly inactive.  I check in once in a while though.  If you want to contact me, I have a contact form at my website, http://escratch.org

Offline

 

#15 2011-11-05 13:36:11

meowmeow55
Scratcher
Registered: 2008-12-24
Posts: 1000+

Re: Decaf JavaScript Editor

Sounds awesome  big_smile


Yawn.

Offline

 

#16 2011-11-05 14:30:50

scratchisthebest
Scratcher
Registered: 2009-02-08
Posts: 500+

Re: Decaf JavaScript Editor

I think the layout is a bit wide, but if you put the JavaScript code box under the other boxes, you would have a great layout!


bye 1.4, we all loved you. but we all outgrew the site. 2.0 is a welcome change.
http://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.pnghttp://scratch.mit.edu/img/Pico3-med.png

Offline

 

#17 2011-11-05 14:34:48

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Decaf JavaScript Editor

May I ask where you got the name Decaf from?  tongue

Offline

 

#18 2011-11-05 14:37:34

ohaiderstudios
Scratcher
Registered: 2010-10-31
Posts: 100+

Re: Decaf JavaScript Editor

LS97 wrote:

May I ask where you got the name Decaf from?  tongue

Java is coffee.........

That's all I got... big_smile


Fork Clamor on GitHub!

Offline

 

#19 2011-11-05 14:38:49

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Decaf JavaScript Editor

ohaiderstudios wrote:

LS97 wrote:

May I ask where you got the name Decaf from?  tongue

Java is coffee.........

That's all I got... big_smile

I see  big_smile  Thought so  tongue

Offline

 

#20 2011-11-05 16:05:14

ohaiderstudios
Scratcher
Registered: 2010-10-31
Posts: 100+

Re: Decaf JavaScript Editor

Well...looks like I'm all finished (probably)
I'm gonna take a break and eat lunch, and then see if I have anything to add before it is released!


Fork Clamor on GitHub!

Offline

 

#21 2011-11-05 16:07:07

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Decaf JavaScript Editor

That was pretty quick... how long have you been working on it?

Offline

 

#22 2011-11-05 16:19:27

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

Re: Decaf JavaScript Editor

LS97 wrote:

May I ask where you got the name Decaf from?  tongue

I was thinking that its coffee. Which coffee equals java (hence javascript). And decaf coffee has less caffeine or whatever. And Decaf (the editor) has less coding.  tongue

Offline

 

#23 2011-11-05 16:43:48

ohaiderstudios
Scratcher
Registered: 2010-10-31
Posts: 100+

Re: Decaf JavaScript Editor

LS97 wrote:

That was pretty quick... how long have you been working on it?

Around 5 days.


Fork Clamor on GitHub!

Offline

 

#24 2011-11-05 16:45:32

ohaiderstudios
Scratcher
Registered: 2010-10-31
Posts: 100+

Re: Decaf JavaScript Editor

ProgrammingFreak wrote:

LS97 wrote:

May I ask where you got the name Decaf from?  tongue

I was thinking that its coffee. Which coffee equals java (hence javascript). And decaf coffee has less caffeine or whatever. And Decaf (the editor) has less coding.  tongue

Yep...that's exactly right.  smile


Fork Clamor on GitHub!

Offline

 

#25 2011-11-05 16:53:02

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

Re: Decaf JavaScript Editor

ohaiderstudios wrote:

ProgrammingFreak wrote:

LS97 wrote:

May I ask where you got the name Decaf from?  tongue

I was thinking that its coffee. Which coffee equals java (hence javascript). And decaf coffee has less caffeine or whatever. And Decaf (the editor) has less coding.  tongue

Yep...that's exactly right.  smile

Yaaaaay. It's a really cool idea.  smile

Offline

 

Board footer