Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the "more verbose" tutorial example #112

Merged
merged 2 commits into from
Oct 31, 2024

Conversation

llewelld
Copy link
Contributor

@llewelld llewelld commented Oct 18, 2024

There are two changes here, one of which may be a bit contentious. I really enjoyed working through this, but I was thrown by the final comments concerning 167. What's so different about 167 compared to 168? I found the program generator was quite happy to come up with a program for both.

I thought it might be interesting therefore if the 167 example was something that the program generator was not able to solve. This, I think, makes it more interesting and also emphasises that the software is doing what the user would expect (i.e. not coming up with a solution that doesn't exist).

This change therefore constrains the values to being even, so that the 167 result can't be obtained.

The second, smaller change, is to use 'Number' instead of 'Real'. I was uncomfortable with the latter simply because, even in the original version, they are in fact all integers.

I understand if you feel these changes are making things overly complicated. I just thought they'd make an interesting example.

There are two changes here, one of which may be a bit contentious. I
really enjoyed working through this, but I was thrown by the final
comments concerning 167. What's so different about 167 compared to 168?
I found the program generator was quite happy to come up with a program
for both.

I thought it might be interesting therefore if the 167 example was
something that the program generator was not able to solve. This, I
think, makes it more interesting and also emphasises that the software
is doing what the user would expect (i.e. not coming up with a solution
that doesn't exist).

This change therefore constrains the values to being even, so that the
167 result can't be obtained.

The second, smaller change, is to use 'Number# instead of 'Real'. I was
uncomfortable with the latter simply because, even in the original
version, they are in fact all integers.

I understand if you feel these changes are making things overly
complicated. I just thought they'd make an interesting example.
@llewelld
Copy link
Contributor Author

@pwochner, for your consideration.

Copy link
Contributor

@pwochner pwochner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The modified example is good. Thanks for checking it so carefully. The only thing to change would be that there is two variables called flag. They should be unique variable names, since Pluto notebooks otherwise don't run and the CI fails.

docs/src/tutorials/getting_started_with_herb.jl Outdated Show resolved Hide resolved
docs/src/tutorials/getting_started_with_herb.jl Outdated Show resolved Hide resolved
@pwochner pwochner merged commit b6a2cd6 into Herb-AI:master Oct 31, 2024
4 checks passed
@ReubenJ ReubenJ linked an issue Nov 14, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve Herb.jl tutorials
2 participants