35 points · by allynjalford · 4y ago · 16 comments
Explain Code App is the place you can make this happen!
I am eager to hear your thoughts on what I have put together so far. Would love to hear your feedback!
Let me know if there are any other features you would like for this site, I’m open for ideas and would love the community feedback.
Here is the link: https://www.explaincode.app/
However.
When I open your app and the first thing I see is a God-damned Alegria dude with a full beard and a man bun, some instinct inside me tells me I am not the target audience for your app.
For someone who already understands the syntax of a language (or at least the syntax of a related language), there's little to be gained from seeing what the code is doing. Take part of the Python example from the linked page: "The code defines a function called isPerfectSquare. This function takes an input of x, and calculates the square root of x. The function then returns whether or not x * x is equal to x.". This guides me through the code, line-by-line.
A more valuable description is "The function returns true if the input is the square of an integer". In other words, the more useful question is why the code exists. Good comments, explanations of code, function/variable names etc... focus on the overall objective of the code. For example: - What is the abstraction that the code is trying to capture? - What makes the problem that the algorithm is solving difficult/non-obvious? - What are the pre-conditions that a given segment of code assumes? - What post-conditions does the segment of code ensure?
There are more tools to come related to:
- What the code is doing - What the input/output of code is - What this line does
And More, as we develop more and more tools based on user feedback.
I would love to have you as part of the early access group and gain more insightful feedback like this that will ensure these tools are useful to you and the developer community.
Cheers.
Yes, our goal is to assist developers learn, and understand the code they are reading and writing.
We will be replacing that code viewer in the next day or so. Thank you for pointing that out to us, as we are head down in code preparing for release in the next couple of days.
Hope to have you as part of our early access group.
Cheers.
Thank You.
We felt these tools could be used by the developer community.
Now that sounds like a good product. I'd be turning that into a service.
Thank You for your feedback on this, I'm happy that others see the value in https://www.Tenably.app