Search results
Results from the WOW.Com Content Network
But I also aim to make things easier for most (new) users to Snap! So we all benefit in some way. A before and after maybe. However; I cannot ignore such legacy code, in practice. Your policy for first class (clean) code is good. But I disagree that 'retro-fitting' such legacy code is a totally bad idea to be avoided entirely.
In Snap!, you can create program comments by right-clicking the editor then clicking add comment. The comments don't change how the program runs. Comments can be isolated or attached to blocks. JavaScript has to types of comments: inline and multiline.
This category is for people interested in the inner workings of Snap!: what's inside its implementation, how to extend it, and so on. Please do not post advanced-topics-ish messages elsewhere. The goal is to ensure that the vast majority of users, who make projects in Snap! without knowing how it works, aren't scared away from the forum or made ...
The current way is just difficult to use for long lines of code and as far as I can tell, you can only use it for one line. I am currently using Snap for a class so I can't really switch programs. Any help would be appreciated. sombrero October 26, 2020, 1:01pm 2. Use a source code editor, and paste the code on Snap!
Help with Snap! Snap! Editor. billcoke October 22, 2019, 3:31pm 1. I would like to use custom blocks to generate custom script code. Essentially using Snap! to simplify script creation for my users. I was looking at the Codification feature but I don't understand how I can set blocks to generate my custom code.
Help with Snap! Hi, what would be the right way for reusing code or sharing a peace of code in Snap!? You mean "a piece of code", not "a peace". To share code, you can post your project in the "Share your Projects" or "How To" category in the forums. XD yes, "piece". I was referring to whether it was possible to copy and paste pieces of code ...
WARNING! this topic contains: strong opinions, sarcasm, rants (PG-13) JavaScript (R) 😏 ——— I'm trying to understand how I can implement JavaScript code as part of a Snap! function. Used Blockly as an input device, wrote a really simple function, tried to make the code fit into the block.
Almost no software project developer EVER likes an unsolicited bunch of suggested code improvements landing directly onto their project . I think this is an overgeneralization. Snap! is basically a one-author labor of love. I think what would make Jens happiest is if he wrote every line of code himself. :~) (But Snap! has (imho) gotten too big ...
The Snap! Community. Snap! is a blocks-based programming language built by UC Berkeley and used by hundreds of thousands of programmers around the world. Press ` to run the code, and Ctrl to beautify it. cymplecy September 13, 2024, 8:26pm 2. Oh, ok.
Currently I'm exporting custom block definitions to xml and then I'm back-tick quoting them inside a JS file to reuse them inside Snap. With a friendlier representation I hope to be able to write more of Snap directly inside JS. Transpilation or even LISP/Scheme compatibility is totally not my intention, but it's certainly possible.