uliwitness / Stacksmith

An intuitive software erector kit targeted at people new to programming, but with enough potential to stay useful once they've learned, inspired by HyperCard.
http://stacksmith.org
131 stars 13 forks source link

Use "why not code this" bubbles for errors and warnings ("Fix-its") #105

Open uliwitness opened 4 years ago

uliwitness commented 4 years ago

In #30 we mention iPhoto-like bubbles that show suggestions from the IDE (to allow for more exploratory coding without having to read manuals etc.).

These could also be used for certain "warnings" in code. E.g. if you use a command that we know can fail, we could show such a bubble on that line and offer to add the skeleton for error handling there (like if the result = "no such card" then displayMyErrorDialog or whatever).

This would be mainly aimed at encouraging good practices, like catching unused results, unhandled errors, not annotating handlers with the errors they may return etc., but is otherwise very similar to the errors/warnings in Xcode with the "Fix it" buttons next to them.