<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Disqus - Latest Comments for David Goodger</title><link>http://disqus.com/people/21887ee4ecf409f978ba4c392c8ec08a/</link><description></description><language>en</language><lastBuildDate>Fri, 12 Dec 2008 15:04:32 -0000</lastBuildDate><item><title>Re: Pep Turds</title><link>http://pyjesse.disqus.com/pep_turds/#comment-421842</link><description>It's also known as an Emacs locals stanza. It's referred to as a turd with affection, not derision :-)</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Goodger</dc:creator><pubDate>Tue, 06 May 2008 13:50:22 -0000</pubDate></item><item><title>Re: Help improve my PyOhio talk</title><link>http://tplus1.disqus.com/help_improve_my_pyohio_talk_77/#comment-834978</link><description>"A fair number of code samples had the last few lines truncated."&lt;br&gt;&lt;br&gt;Truncated vertically or horizontally? If vertically, put less code on the slides. If horizontally, wrap lines (fewer columns).&lt;br&gt;&lt;br&gt;Slides have limited space. You just have to deal with it. And slides aren't the end-all of presentations. If they don't work for you, do something else (even just for part of your talk).&lt;br&gt;&lt;br&gt;If you have a lot of code to show, switch to an editor. Turn the font size way up, and turn on auto-wrapping. In an editor, you have the freedom to scroll around, select text, correct typos &amp; bugs, etc.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Goodger</dc:creator><pubDate>Tue, 08 Jul 2008 09:39:28 -0000</pubDate></item><item><title>Re: Help improve my PyOhio talk</title><link>http://tplus1.disqus.com/help_improve_my_pyohio_talk_77/#comment-853813</link><description>The way I deal with resolution differences is to use the Firefox "Web Developer" extension. It has a "Resize" feature where you can specify what size you want. Open a new window for your slides, make it full-screen (F11), resize to 1024x768, then reload the slideshow (ctrl-R). You'll get exactly what you'll see from the projector.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Goodger</dc:creator><pubDate>Thu, 10 Jul 2008 09:16:32 -0000</pubDate></item><item><title>Re: code-formatting people: I need your help</title><link>http://tplus1.disqus.com/code_formatting_people_i_need_your_help/#comment-4371940</link><description>Breaking assignments over multiple lines: try to avoid backslashes. They're fragile and ugly. One space after the backslash will break it. Instead, I'd do:&lt;br&gt;&lt;br&gt;cat1, cat2, cat3, cat4, cat5 = [&lt;br&gt;    self.categories[x] for x in range(1, 6)]&lt;br&gt;&lt;br&gt;IOW, use the properties of Python's brackets (and braces and parentheses).&lt;br&gt;&lt;br&gt;As for conditional expressions, I hope you realize that these two dictionaries are almost identical:&lt;br&gt;&lt;br&gt;        {'selected':1 if self.preferred_send_method == x else None,&lt;br&gt;         'disabled':1 if disabled else None,}&lt;br&gt;&lt;br&gt;        {'selected': self.preferred_send_method == x,&lt;br&gt;         'disabled': disabled,}&lt;br&gt;&lt;br&gt;Python's True == 1, and False == 0, so just use the condition directly as in the second version above. You used None as a false value; unless there's a good reason not to, you should use False instead.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Goodger</dc:creator><pubDate>Fri, 12 Dec 2008 15:04:32 -0000</pubDate></item><item><title>Re: Commentary on Python from a Java programming perspective</title><link>http://var-log-mind.disqus.com/commentary_on_python_from_a_java_programming_perspective/#comment-2406334</link><description>Welcome to Python!&lt;br&gt;&lt;br&gt;You may be interested in a tutorial I gave in 2007 at PyCon and OSCON, "Code Like a Pythonista: Idiomatic Python". Full notes here: &lt;a href="http://python.net/%7Egoodger/projects/pycon/2007/idiomatic/handout.html" rel="nofollow"&gt;http://python.net/~goodger/projects/pycon/2007/...&lt;/a&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Goodger</dc:creator><pubDate>Wed, 17 Sep 2008 15:41:42 -0000</pubDate></item><item><title>Re: Become a Master Designer: Rule Three: Contrast, Contrast, Contrast</title><link>http://gomediazine.disqus.com/become_a_master_designer_rule_three_contrast_contrast_contrast/#comment-6952935</link><description>I agree that contrast is important.  But why do so many web pages (this one included) put their text in such a low contrast gray on an off-white background?  I find it very hard to read.&lt;br&gt;&lt;br&gt;Why not black (or a much darker gray) for the body text?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Goodger</dc:creator><pubDate>Thu, 11 Oct 2007 10:01:34 -0000</pubDate></item></channel></rss>