Przejdź do głównej zawartości


Wyświetlanie postów z grudzień, 2013

Code Kata: A simple text-based calendar

In this Kata we want to properly display a simple calendar view of a given month. Let's start with an example. A proper output of our program for the input data of "December, 2013" would be:

Mo Tu We Th Fr Sa Su
 9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31

Points to consider:
how many times we need to make a call to time-date functions?try to minimize the number of these callstry to separate program logic from presentation as much as you can

Job interview: software developer

We now have two or three generations of software developers who got their first job (or any next job) by correctly answering the question: "what will be the output of this code?". As we possibly did not have a better idea what to ask a candidate about, this might have been a satisfactory question one generation ago. Is it OK, from the point of view of the recruiting entity and the candidate, to ask the same question today? I would gladly replace the conventional list of questions:
what will be the output of this few lines of code?what will be the size of this structure in memory?what is wrong with this code snippet? with questions more relevant to daily developer's tasks, like:
try to refactor this code snippet look at this class; how would you add a unit test to test this function?after running this program, explain why it prints this output While the former questions test something, they are not even close to problems that a developer faces daily. On the contrary, seei…