Skip to content
This repository has been archived by the owner on Feb 28, 2020. It is now read-only.

Labs 5-6 assessment #5

Closed
grammarware opened this issue Oct 17, 2015 · 4 comments
Closed

Labs 5-6 assessment #5

grammarware opened this issue Oct 17, 2015 · 4 comments

Comments

@grammarware
Copy link

Week 5: nicely done, but why the sudden absolute lack of any kind of comments? Usually you were not that curt. I’m especially interested in Ex.2, since it involved a judgement call: what do you think of the result of the refactoring? Did it “improve the design of existing code”? Could you test the properties described in the assignment (extensibility, efficiency, etc)? How?

Week 6: you still use weird constructions like do r <- testFermat k xs; return r. Don’t give names to pets you do not intend to keep! Just do testFermat k xs.

Week 6: too bad the bonus doesn’t work with strings, that’s the kind of messages I usually send. Besides that, a nice framework, was very easy to test.

Week 5 is (bonus: yes; test reports: no), week 6 is ++.

@mwijngaard
Copy link
Collaborator

@grammarware regarding to week 5 lack of comments & test reports: fair enough. I just wanted to give some personal feedback in that i enjoyed this weeks exercise the least as it basically just involved A LOT of copy-pasting and the code of the sudoku solver was really weird (eg. defining solving routines in 3 different places). To me it felt like this weeks exercise wasn't very well prepared. I think the intention should be to understand the concept of search trees, but it ends up being an exercise in understanding code written by somebody else. Anyways, maybe you want to do something with it for next year, maybe not, just my 2 cents :-).

@grammarware
Copy link
Author

@mwijngaard thank you! Noted for future reference.

We usually had some exercise around sudoku because it is quite a sweet spot with still being a (solvable) puzzle and already not being solvable on a whim. It started with some blog post which has by now probably disappeared forever into 10+th page of google search, by someone who decided he could solve sudoku without any preparation in a much simpler way than anyone else — he failed, of course, and there was a thread of comments when people were posting counterexamples and the op was adding more and more patches for corner cases. If I remember correctly, two years ago we asked to implement it, last year to extend a given implementation to NRC and this year to refactor it. I've contemplated moving on to something cooler like 2048, but it involves randomness and therefore harder to deal with.

In our defence I can say that in the future 80% of your time as a software engineer will be spent on maintenance and various attempts to understand someone else's code 😇

@mwijngaard
Copy link
Collaborator

mwijngaard commented Oct 18, 2015 via email

@grammarware
Copy link
Author

One of the questions was “refactor this code” — nobody could stop you from refactoring it completely to your liking ;)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants