"How about you ask them to make the simplest note taker app. It has to be just a place to take a quick note, nothing fancy. The same note text should be there when the app is opened again.
The one that can do the best looking and functional app with less blocks and components wins."
Italo made a sample app with only 2 components and 9 blocks.
Could you also make a note taking app with the same amount of components and blocks or could you do it in less?
I won’t post the blocks that Italo send me yet but will do so in around 6 hours.
But I’m not sure that if there is a better method with less blocks for that. The only way is using an extension to reduce blocks I tried to use TinyWebDB, File component but still 9 (or more) blocks.
I thought maybe Back Pressed event is a way to save note, but it prevents exiting from app by using back button (you need to add close app block manually). So it will save more than once if you don’t add that block.
Well, I have 2 methods which saves notes. Yeah these are maybe not useful at all for daily note taking, but the purpose is using less blocks as possible, right?
So there are my methods;
1. Clipboard8 blocks
I know that if someone copies another text, it will show another text, but it saving the note anyway:
Maybe using WebViewer component is like cheating in this challenge (there is no rule about it ), but I used it because I found this method very cool. And all note saving scripts injected to HTML code. So it is possible to reduce blocks to 3.
Pros:
Since TinyWebDB is an online database, you can find your note content even you wipe data of the app.
You can access the note even you change the device.
Cons:
Everyone can access/modify the note if they know the tag. I used “note” tag in this example. If you are going to use this method in your app, you should prefer a random tag for security/privacy.