Herbert is my very interesting coworker from another country. We both work as software developers for an internet company. He has a master's degree in computer science, which adds to my bewilderment at some of his questions. This is the saga of his adventures in the programming world.
Tuesday, October 15, 2013
Copy the file?
- Herbert, I reviewed your code and the test isn't working. You need to modify the test so that it creates a copy of the file before it is processed. You also need to rename the file to something else.
- Ok, so just copy the file before it is processed by the plugin?
- Yeah, and also rename the file to something more convenient.
* 15 minutes later *
- Ok it's done
- The test is still failing. Where did you add the code that copies the file?
- Copies the file?
- Yeah, remember I told you you needed to copy the file before it was processed?
- Copy the file? The file is already there.
- Yeah but...the test is failing. You need to create a copy so the test works.
- Copy the file?
- *sigh* nevermind. Please just add this code to line 43.
* 15 minutes later *
- I fixed it!
Thursday, April 18, 2013
It's basically the same thing, just off by about 998 thousand.
- I don't know why this query is so slow in production. Is killing me! I tested the query on my machine and it's fast!
- How many records do we have in production?
- About one million
- How many do you have on your machine?
- 2,000
* facepalm *
- How many records do we have in production?
- About one million
- How many do you have on your machine?
- 2,000
* facepalm *
Thursday, February 7, 2013
What is this "doing actual work" thing?
- How do I generate the unit tests with the PHP unit?
- You mean run them?
- No, how to create new unit tests?
- Well, you go into the tests folder and add a new test class
- So I actually have to write the tests?
(Hasn't tried to write a unit test ever since)
- You mean run them?
- No, how to create new unit tests?
- Well, you go into the tests folder and add a new test class
- So I actually have to write the tests?
(Hasn't tried to write a unit test ever since)
Subscribe to:
Posts (Atom)