Code Monkey home page Code Monkey logo

Comments (12)

djaus2 avatar djaus2 commented on May 29, 2024 2

Re 2. From first comment here.
Change ... By ... can be used as ++ -- :)
Perhaps that could be extended for other operations?

from netcoreblockly.

ignatandrei avatar ignatandrei commented on May 29, 2024 1

I will try to make this weekend ( and also upgrade Blockly to latest version)

from netcoreblockly.

djaus2 avatar djaus2 commented on May 29, 2024

Three More Suggestions, all non-urgent_

Just implemented a function where some reuse of code stood out.
Q Are functiont documented ib detail anywhere. Had to be a bit of expirementing to get it to work but know how to do ,
I will post my example later in my Softata examples.

  1. Can we have a library of fucntions where the blocks are saved to a file and loaded into the current progarm.
    Better still if these fucntions/library were implicitly loaded as one smnall block or some otherhidden manner.

  2. Or can we have tabs where fucntion blocks can be separately loaded and saved.

  3. Bit manipulation SHL SHR AND XOR etc.

PS The creation of my examples has been quite easy once I had created my API. :)

from netcoreblockly.

ignatandrei avatar ignatandrei commented on May 29, 2024

Q: Are functiont documented ib detail anywhere.
A: No , the functions are not documented. Yes, I'd wish to do so . But for the moment, I am one man show ;-)

Q: Can we have a library of fucntions where the blocks are saved to a file and loaded into the current progarm.
A: I see that you have put your things into the "Examples ! " button
"SoftataWebAPI\wwwroot\BlocklyAutomation\assets\showUsage\demoBlocks"
I assume that you are refering to something else, that I do not understand ?

Q: "Or can we have tabs where fucntion blocks can be separately loaded and saved."
A: Are you referring to something like macros , a composition of multiple functions ?

Q: "Bit manipulation SHL SHR AND XOR etc."
A: I do not know if this exists in Javascript .... I will see .

from netcoreblockly.

djaus2 avatar djaus2 commented on May 29, 2024

I have posted an the example using a function here github.com Soft-ata SoftataWebAPI Neopixel8-Display-Fuctional-Example-pin-16.txt

I HAVE WRITTEN a blog post on Functions now. Now complete: https://davidjones.sportronics.com.au/softata/Softata-Blockly_Functions-softata.html.

Updated version https://djzblogaccname137.z26.web.core.windows.net/softata/Softata-Blockly_Functions-softata.html
Perhaps I could do a pull request with thart included, say under Wiki??

from netcoreblockly.

djaus2 avatar djaus2 commented on May 29, 2024

JavaScript

XOR x ^ y
Bitwise AND x & y
Bitwise OR x | y
Shift left a << b
And ..
a <<= b
Shift Right a >> b
And
a >>= b

from netcoreblockly.

djaus2 avatar djaus2 commented on May 29, 2024

My thoughts are where you create a a number of functions that you might want to reuse somewhere. So it would be nice to package them as a single entity that can be separately saved from the program and reloaded in some manner in another program and used. The relaoded functions could be on a separate tab or only appear on the program page as one small block just naming the "library" or a small block for each function.

from netcoreblockly.

djaus2 avatar djaus2 commented on May 29, 2024

Re 2. Again
I see much of ythis functionality is now available in other Tab set ... op ...
:)

from netcoreblockly.

djaus2 avatar djaus2 commented on May 29, 2024
image

Just implemented a test block app as above. :)

Is >>>= meant to be there? ... OK I see that is part of Javascript.

Also can I suggest:

  • The XOR operator be ~ like in C
  • That would then allow ^= to be exponenet operator here.
    Great work

from netcoreblockly.

ignatandrei avatar ignatandrei commented on May 29, 2024

I have updated blockly to the latest version (10.4.3) - so please update your project to .net 8 and

    <PackageReference Include="NetCore2Blockly" Version="8.2024.428.1000" />

Now I can make all modifications without fear

I suggest that we close those thread and open another with modifications needed.

from netcoreblockly.

djaus2 avatar djaus2 commented on May 29, 2024

from netcoreblockly.

djaus2 avatar djaus2 commented on May 29, 2024

will repost some of my suggestions as separate items, given this is now closed

from netcoreblockly.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.