-
Notifications
You must be signed in to change notification settings - Fork 2
2) Ideology
Benjamin Pang edited this page Oct 19, 2016
·
8 revisions
Let's look at some Javascript, shall we?
for(var x=0;x<100;x++){
console.log(String.fromCharCode(x));
}
Some flaws1 I find with this structure:
- I just don't like those
for
loops. - Long function names = more characters to type out
- Can we not close that curly bracket? (I mean we don't need the curly brackets, but it's way more readable. /s)
- SEMICOLON!!! NOOOOOOOOOOOOO!!!
Alright, I'll admit something. I'm very lazy. But we can all agree that writing this is much more convenient:
><"
"<>""fc rng0 100
Here, we have a short little DASH program that does the same thing. Of course, it's basically unreadable. If you really want to, this is a more readable version:
join "
" split "" fc rng 0 100
1: The code can be shortened down to String.fromCharCode(...Array(100).keys()).replace(/./g,'$&\n')
. But 1) few people would do this, and 2) long function names are still a problem.
So, what's the big deal about DASH?
Artistic yet functional.
Strict yet loose.
Made by the lazy for the lazy.
DASH is free and open-sourced under the MIT License. Issues, pull requests, and dank memes are appreciated!