Live data from Hacker News

DreamBerd is a perfect programming language

github.com

111–120 of 215 posts

Re: DreamBerd is a perfect programming language

#111

Earlier quoted context omitted.

Creator here - it's actually a parody of INTERCAL. I explained more on the Future of Code podcast recently: https://futureofcoding.org/episodes/064

That was a fun listen, thanks!

Thanks for listening! Hopefully that should clear things up

Re: DreamBerd is a perfect programming language

#112
post #79

Earlier quoted context omitted.

You can insert items before the start

So it’s not invariably true that arrays start at -1? They only start at -1 after an array literal assignment? You need to update the language description! ;)

  const var scores = [3, 2, 5]!
  scores[0.5] = 4
  print(scores) //[3, 2, 4, 5]!
  scores[-2] = 10
  print(scores) //[10, 3, 2, 4, 5]
  print(scores[-1]) // 10
is how I interpret the spec, but I did not run this through the reference compiler yet.

Re: DreamBerd is a perfect programming language

#113
This made me laugh out loud for real like it's 1995.

In particular this:

      Technical info: Type annotations don't do anything, but they help some people to feel more comfortable.
Because it's kinda almost sometimes true... or should I say: "maybe"!

Re: DreamBerd is a perfect programming language

#114

Hello! Creator here. This is an open-source project so please do submit any issues or PRs. Please note: I will close any issues without unreproducible steps.

Double negatives hurts my brain. The latter could be phrased like this: "Please note: I will close any issues with reproducible steps."

Whooooooooooooooooooosh

Re: DreamBerd is a perfect programming language

#115

Hello! Creator here. This is an open-source project so please do submit any issues or PRs. Please note: I will close any issues without unreproducible steps.

Would it be possible to add a graphics drawing interface similar to turtle?

I think you should support the following API

    Start(x,y)
    LineTo(x,y)
    Circle(x,y,A) // A is area
    Triangle(ax,by,ay,cx,cy,ay,bx) //Most Intuitive coordinate order
    RestOfEffingOwl()

Re: DreamBerd is a perfect programming language

#116
post #47

Earlier quoted context omitted.

> Please note: I will close any issues without unreproducible steps. Surely you meant "without reproducible steps"?

Surely you didn't comment before viewing the post.

Who would do such a thing on the internet? You would have to forever live with the shame.

Re: DreamBerd is a perfect programming language

#117
post #40

The best gem in all of it is this: > You can make classes, but you can only ever make one instance of them. This shouldn't affect how most object-oriented programmers work. This describes my experience with most OOP code very well.

I love Singletons and God Classes. ;)

Factories and Managers. Don't forget Decorators!

Re: DreamBerd is a perfect programming language

#118
post #21
post #2

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.

This feature is not so bad: > In case you really need to vary a variable, the when keyword lets you check a variable each time it mutates. const var health = 10! when (health = 0) { print("You lose")! } If it can really be triggered when the variable changes to any value it makes it a truly reactive paradigm programming language. By the way, could that be hacked to implement loops? const var i = 10 when (i >= 0) { do…

This feels sort of like key-value observation in obj-c

Re: DreamBerd is a perfect programming language

#119

> All indents must be 3 spaces long. That's what a former colleague, who shall remain unnamed, suggested as well.

I think a better compromise would be to standardize an indent at 1 space followed by one tab. Then the tabs-vs-spaces debate would finally be settled as both, and anyone can decide how wide an indent should be by changing a setting in their editor.
Post reply on HN