Welcome to RocketMonkeys.com!

This is my personal site, where I store my rants, pictures, and movie reviews. Have a look around, register and leave comments.
-James

Show: [all] rants movies pictures

Page: Previous << [0] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 >> Next

Debugging is about removing assumptions

Posted by james on Oct. 22, 2013

Debugging is about removing assumptions you've made. When a developer gets a ticket for a bug, they immediately start diagnosing what could be causing the problem. Then they are constrained by their own assumptions.

"This is failing on the server, but working on my computer. The code is exactly the same. This can't be happening."

"I ran this same SQL query on the test server, then ran it on the prod server. They should be exactly the same server version, but it says that a certain keyword is causing a syntax error."

In almost every case, the reason the dev can't find the problem is that they're making assumptions. Remove all assumptions.

"This is failing on the server (is it? Are you looking at the right site?), but working on my computer (is it? Did you rebuild the site? Did you paste the URL into your browser, forget to hit enter, and you're looking at old code?). The code is exactly the same (Did you forget to update your repo? Did you rebuild? Is the web server holding onto a cached copy?). This can't be happening (It is)."

But many devs don't start reaching into those assumptions and testing them. Test your assumptions. Try changing the connection string to the DB. Use a different browser, clear out cache first. Rebuild the site with a debug logging statement to see that you are definitely looking at the latest code. Intentionally add an error to make sure it actually fails in a way you can see. Start commenting out lines one at a time, especially the ones that you know for a fact are "safe". They're not.

It basically boils down to this: test, don't assume. If you *think* the code is the same, *test* that the code is the same. If you think that the server has the same version, then *test* that that's the case. There is no substitute for testing. Thinking very hard, remembering, assuming, guessing; those are all other ways of saying "not testing".

Hunger Games

Posted by james on Aug. 10, 2013

(post.rating: 7)
Rating:

IMDB   Apple Trailers

I'd read the book on a whim. I just picked it out of a top seller's list. It's like Ender's Game and Twilight combined (though thankfully just a touch of the latter). Aimed at young audiences & a bit emo (especially in the second and third books), but the protagonist is captivating. The idea of a downtrodden reluctant heroine with a deep heart, self-loathing, and hidden tenaciousness is really the key here.

Jennifer Lawrence; great choice. I know fans were a bit surprised w/ her as the lead, and worried about how she'd do. She did great.

They made this PG-13. A book about children killing, burning, stabbing, dismembering other children. How?! The book is really R-rated (very violent & graphic). I suppose if you don't show blood (or just change the color) you can get away with a lot in the US. But really... the source material is R, and a real R movie would have been intense, disturbing, and would have done awful at the box office (and alienated fans). I'd be really curious to watch that movie.

It's about what I expected, maybe a bit better. It hits the finer points of the book, Lawrence does well as the protagonist. It leaves out a ton of the self-loathing & drudgery of the book, but that's probably for the better. If they can remove that a bit from the second & third books, that can only be an improvement.

I'd watch more. This isn't amazing, but neither were the books. The books were captivating & memorable though, and this doesn't hit far off.

Zero Dark Thirty

Posted by james on Aug. 5, 2013

(post.rating: 8)
Rating:

IMDB   Apple Trailers

Amazing, intense, thought-provoking film. It seemed dry & boring - the search for Osama Bin Laden. This is not an action oriented movie, most of it is about paper, talks, spies, etc.

But there's enough action at the end for the final takedown, and the entire feel of the film is realistic and intense. They may not crash cars into building & shoot every bad guy in sight. But the silence and slow intensity of the action, coupled with the dry suspense of all the build up, and finally the uncomfortable portrayal of torture as a means of intelligence gathering; it all culminates in a really intense and exciting, but taxing movie.


Page: Previous << 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 >> Next