(03-28-2025, 10:04 AM)bplus Wrote:I wrote a code that, in some way, self-generates (it's not much, but it does).(03-27-2025, 09:07 AM)krovit Wrote: The first question, when trying to solve a problem, is: 'Is there a solution that someone has already found?'
Usually, the answer is yes: someone, somewhere, has already solved the problem. Someone has already thought about it, that's practically certain!
Then comes the second problem: where??
In the end, you try to do it on your own...
Anyway, that's part of the fun: finding solutions!
My code is tailored to the problem I have in the project I'm developing, while yours is really more complete and versatile. I think I will copy something...
True about someone else already doing it! I've even found words I made up already taken in Google search!
Where is solution? Good question because people use different terms for things ie MS Help never works for me because my terms for things never match the technical names and of course "thingy" is too ambiguous
Alsolutely right! the fun part is finding solutions on your own
@krovit, I am curious the problem that lead you to your "evaluator" function?
For me, it's useful for formula's input by user of app and/or plotting a function.
Say you want a temperature conversion or yards to meters... or plot or sin waves.
It is a system that creates input masks with various types of fields.
My goal is to structure a system that can be easily adapted to (almost) any management problem.
There are many variables, and one of my fixations is the parameterization and simplification of the code because it is all too easy to get lost in thousands of lines of code. For this reason, I write, at a certain point, I would like to write certain operations in a nearly natural way and then let the code transform it by inserting all the keywords and the right references.
It is easier to write
"(1 + v65 / 1000) * v75^2 / v88"
than
j# = 1 + val(_trim$(str$(variabile$(65))) + / 1000) * val(_trim$(str$(variabile$(75))^2 / val(_trim$(str$(variabile$(88))
Consider modifying a line like this without losing your mind is not easy, and there is already an error in the example with the parentheses that I can't see. Imagine if I have to modify or continuously implement it, perhaps after having forgotten how I reasoned to write it in the first place.
And things are much more complex than I present them.
I have always believed that software should solve problems and simplify life. One cannot expect everything from QB64, but on the other hand, I don't like to rely blindly on closed systems: there's no fun in that!
Let's say that QB64 is the tool of a craftsman from another time...


