When using the REPL you can quickly experiment until it does what you want, but you need the discipline to distill something maintainable from it afterwards.