CodeX

Everything connected with Tech & Code. Follow to join our 1M+ monthly readers

Member-only story

Test-Driven vs REPL-Driven Development

Erik Engheim
CodeX
Published in
14 min readFeb 8, 2021

--

REPL-Driven development is all about moving fast with rapid iterations towards the goal.
function assemble(t::Thingy, d::Doodad, s::Stuff)
bolts = get_bolts(HEX, 4)
goo = get_glue(SUPER)

gizmo = put_together(flip(t), s, bolts)
tighten!(gizmo)

doohickey = glue(gizmo, d, goo)
dry!(doohickey)
if isfaulty(doohickey)
throw(AssemblyFailed("Faulty parts, buy new ones!")
end
return doohickey
end
function assemble(t::Thingy, d::Doodad, s::Stuff)
bolts = get_bolts(FLANGED, 10)
goo = get_glue(EXPOXY)
gizmo = glue(t, s, goo) # wrong assumption on input/output
dry!(gizmo)
doohickey = put_together(gizmo, d, bolts)
tighten!(doohickey)
return doohickey
end

--

--

CodeX
CodeX

Published in CodeX

Everything connected with Tech & Code. Follow to join our 1M+ monthly readers

Erik Engheim
Erik Engheim

Written by Erik Engheim

Geek dad, living in Oslo, Norway with passion for UX, Julia programming, science, teaching, reading and writing.

Responses (10)