- cross-posted to:
- linux@lemmy.world
- opensource@lemmy.ml
- cross-posted to:
- linux@lemmy.world
- opensource@lemmy.ml
cross-posted from: https://lemmy.world/post/20670854
https://gitlab.com/christosangel/c-squares
c-squares
written in the C language will render random coloured rectangulars in the terminal, while the font, speed, density, color, ratio and number of the shapes drawn are fully costumizable.
Every time a rectangular is complete, a new one starts to take shape.
Click on image to play video
Feel free to explore the endless variations.
C is not a scripting language.
Every language is a scripting language if you’re brave enough.
Oh yeah? Then redo the classic doom code in pure bash.
#!/usr/env bash ~/doom-game/bin/doom
I do not get your point?
A script is more about the program rather than the language. You can write a script in assembly or C++ or whatever
Is it? I thought a script is a portable and instantly grokkable piece of code that can be easily modified by others, since it uses very little actual code in itself (e.g. by being reliant on larger imported frameworks), and thus not being a full-fledged application.
The above code is pretty much self-contained, and though it is impressively minimal, it is not instantly grokkable, and I would have a hard time modifying it.
Fair enough. For me, scripts are small reusable programs performing a very specific (sometimes trivial or common) task. Eg: making a wav file from PCM data, modifying byte sequences or formatted text in a particular way, etc. I mostly program in C so I have written most scripts in C. Need not necessarily be grokkable as long as its application and scope is clear
Well that’s a fair point.
I stand corrected.