Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Honestly, when I write forth now, which is usually for embedded targets, I've got a customized version of zforth that I've grafted some stuff like locals into. If it's a small program, it's better to not be afraid of things like globals, and just spend at least twice as much time factoring, writing comments and thinking than writing. It's important to read other people's Forth code and try to understand, as there's a zen and style that looks very different than how you'd write something like Java. It's freeing and enlightening once it clicks, but you have to fight a ton of the way you think about "normal" code.

As far as the codebase, I probably shouldn't say too much (may it's been long enough now, but Idk), but all I'll say is that was a important part of things at a certain disk drive manufacturer.



That makes a lot of sense! Thanks!

What were the most common mistakes you saw people new to Forth making? Being afraid of global variables is one of them, I infer.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: