Live data from Hacker News

Mini Micro Fantasy Computer

miniscript.org

1–10 of 88 posts

Re: Mini Micro Fantasy Computer

#3
post #2

I wonder why all these easy-to-learn languages use indentation to denote scope, not something like curly braces. Isn't it actually harder to explain?

It makes sure the thing you use to judge scope (indentation) matches the think the computer uses.

Re: Mini Micro Fantasy Computer

#5
post #2

I wonder why all these easy-to-learn languages use indentation to denote scope, not something like curly braces. Isn't it actually harder to explain?

It makes sure the thing you use to judge scope (indentation) matches the think the computer uses.

That's a fair point for students, but as a beginner who simply wants to tinker with fun stuff, you can go very far without knowing of a program stack.

I think I had the wrong audience in mind

Re: Mini Micro Fantasy Computer

#6
post #2

I wonder why all these easy-to-learn languages use indentation to denote scope, not something like curly braces. Isn't it actually harder to explain?

I think indentation is more intuitive. Even people using languages that use braces or similar usually use indentation to make code readable. If doing that you end up explaining both ideas (use braces and indent).

Re: Mini Micro Fantasy Computer

#8
Why not for 3 eur buy some basic arduino or other tiny hardware to tinker with and for another few eur, tiny i2c/oled display, wires and set of basic switches? You start programming with option to expand to the larger project in the future. You have constraints of real device, community is much larger and there are more learning resources.

Re: Mini Micro Fantasy Computer

#9
post #2

I wonder why all these easy-to-learn languages use indentation to denote scope, not something like curly braces. Isn't it actually harder to explain?

It looks like MiniScript uses the keyword "end" followed by another keyword to denote the end of a specific type of block.

From the Quick Reference guide here:

https://miniscript.org/files/MiniScript-QuickRef.pdf

"Indentation doesn't matter (except for readability)."

Re: Mini Micro Fantasy Computer

#10

Why not for 3 eur buy some basic arduino or other tiny hardware to tinker with and for another few eur, tiny i2c/oled display, wires and set of basic switches? You start programming with option to expand to the larger project in the future. You have constraints of real device, community is much larger and there are more learning resources.

Because moving a sprite is much more exhilarating than blinking an LED.
Post reply on HN