This is great. Usually with the joke programming languages, you can get at least one person arguing that "x feature" really isn't all that bad, or could maybe be useful. DreamBerd beats them all in that regard. It is 100% terrible! I lost it at the lifetimes implementation.
I really like the "when" keyword, actually.
DreamBerd is a perfect programming language
151–160 of 215 posts
Re: DreamBerd is a perfect programming language
#152const var scores = [3, 2, 5]! scores[0.5] = 4 print(scores) //[3, 2, 4, 5]! Genius! This trivially solves the problem of reading integer and floating point numbers from input and inserting them into a sorted array. Too bad there are no loops in this language. (Remember that arrays start from -1.)
const var i = 10
when (i >= 0) {
do_something()
i = i - 1
}Re: DreamBerd is a perfect programming language
#153>If you're unsure, that's ok. You can put a question mark at the end of a line instead. It prints debug info about that line to the console for you. Man, I love this idea. Imagine if in JavaScript, you could just add a `?` to a line to print out the value of all variables and expressions referenced. Or `?` on a line by itself to print out the value of all variables in scope. > DreamBerd has significant whitespace. Us…
Re: DreamBerd is a perfect programming language
#154>If you're unsure, that's ok. You can put a question mark at the end of a line instead. It prints debug info about that line to the console for you. Man, I love this idea. Imagine if in JavaScript, you could just add a `?` to a line to print out the value of all variables and expressions referenced. Or `?` on a line by itself to print out the value of all variables in scope. > DreamBerd has significant whitespace. Us…
Re: DreamBerd is a perfect programming language
#155I accidentally clicked on this (thought my pointer was on another monitor …). Am I glad I did. Originally I just skipped it because it sounded too clickbaity :D
Re: DreamBerd is a perfect programming language
#156Re: DreamBerd is a perfect programming language
#157>If you're unsure, that's ok. You can put a question mark at the end of a line instead. It prints debug info about that line to the console for you. Man, I love this idea. Imagine if in JavaScript, you could just add a `?` to a line to print out the value of all variables and expressions referenced. Or `?` on a line by itself to print out the value of all variables in scope. > DreamBerd has significant whitespace. Us…
Tomorrow is today: https://twitter.com/TodePond/status/1595464031728459776
Re: DreamBerd is a perfect programming language
#158Dividing by zero returns undefined
it took me a few minutes of thinking before finding why it's wrong
Re: DreamBerd is a perfect programming language
#159Gotta say, you really had me going there. When I got to arrays starting at -1, I started to furl my brow but shrugged it off because Perl allows you to do just that. Then I saw the equality operators and didn’t think much of that either because it seemed quite plausible given that I’ve seen things like “truthy” in Jasmine/Karma and Rspec code. Even the no-loop thing didn’t phase me since modern JS seems to discourage…
Signals are a design paradigm for reactive programming which have recently trended in the JS frontend space. For e.g., https://preactjs.com/blog/introducing-signals/
Re: DreamBerd is a perfect programming language
#160How many billion lines of code does it compile per second?