Show HN: Advanced Physics Library designed for Javascript and Node.JS
1–6 of 6 posts
Re: Show HN: Advanced Physics Library designed for Javascript and Node.JS
#21. You could likely have auto-generated the callback stuff so you wouldn't have had to have it written out in each function.
2. You could have written the parameters and return values and equations in a Object for each function and auto-generated the inline docs and the i-prefixed functions. This would have gotten rid of more duplication that is present.
Re: Show HN: Advanced Physics Library designed for Javascript and Node.JS
#3Re: Show HN: Advanced Physics Library designed for Javascript and Node.JS
#4Nice. Two suggestions: 1. You could likely have auto-generated the callback stuff so you wouldn't have had to have it written out in each function. 2. You could have written the parameters and return values and equations in a Object for each function and auto-generated the inline docs and the i-prefixed functions. This would have gotten rid of more duplication that is present.
Re: Show HN: Advanced Physics Library designed for Javascript and Node.JS
#5I'm deeply, deeply suspicious of the accuracy and stability of something like this--that said, bloody good job!
Re: Show HN: Advanced Physics Library designed for Javascript and Node.JS
#6I'm deeply, deeply suspicious of the accuracy and stability of something like this--that said, bloody good job!
Thanks! We'll be working on fixing those things :) We've made it so it's easy to increase/decrease the accuracy, but the next thing we plan to do is to make the equations rearrangeable!