r/dailyprogrammer • 1 3 • Jul 14 '14

[Weekly #2] Pre-coding Work

Weekly Topic #2:

What work do you do before coding your solution? What kind of planning or design work if any do you do? How do you do it? Paper and pencil? Draw a picture? Any online/web based tools?

Give some examples of your approach to handling the dailyprogrammer challenges and your process that occurs before you start coding.

Last week's Topic:

[Weekly Topic #1] (http://www.reddit.com/r/dailyprogrammer/comments/2a3pzl/weekly_1_handling_console_input/)

70 Upvotes

56 comments sorted by

View all comments

Show parent comment

1

u/gfixler Jul 16 '14

So in answer to my question, yes, you have tried this :)

Thanks for the great reply! I've played a bit in CL (made it halfway through PCL), and I play in Clojure quite a bit now, so I know about method dispatch as a nicer form of the more commonly-used OO out there. I agree with your points, and could have been more clear in mine. I was referring to the way most are using classes, i.e. as mutable, non-values.

It's an area of ongoing study, but I feel you're right about needing OO-like concepts in this functional world. I often do want to know what a collection of things as a whole actually is, or can be considered, without relying heuristics over its internals. I do want to have things like pre/post conditions to keep my sanity. I have indeed spun my own workarounds, or just let things be, and hoped :)