<html><body bgcolor="#FFFFFF"><div><br></div><div>There is an interesting discussion about the merits of common::sense at StackOverflow: &nbsp;<span class="Apple-style-span" style="font-size: 23px; -webkit-tap-highlight-color: rgba(26, 26, 26, 0.289062); -webkit-composition-fill-color: rgba(175, 192, 227, 0.222656); -webkit-composition-frame-color: rgba(77, 128, 180, 0.222656); font-family: 'Trebuchet MS'; font-weight: bold; line-height: 12px; "><a href="http://stackoverflow.com/questions/1625839/should-i-use-commonsense-or-just-stick-with-use-strict-and-use-warnings" class="question-hyperlink" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; font-size: 23px; vertical-align: baseline; background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background-color: transparent; color: rgb(0, 0, 0); text-decoration: none; cursor: pointer; font-weight: bold; background-position: initial initial; ">Should I use common::sense or just stick with `use strict` and `use warnings`?</a></span></div><div><span class="Apple-style-span" style="font-family: 'Trebuchet MS'; font-size: 23px; font-weight: bold; line-height: 12px; -webkit-tap-highlight-color: rgba(26, 26, 26, 0.285156); -webkit-composition-fill-color: rgba(175, 192, 227, 0.21875); -webkit-composition-frame-color: rgba(77, 128, 180, 0.21875);"><br></span></div><div><br></div><div><a href="http://stackoverflow.com/questions/1625839/should-i-use-commonsense-or-just-stick-with-use-strict-and-use-warnings">http://stackoverflow.com/questions/1625839/should-i-use-commonsense-or-just-stick-with-use-strict-and-use-warnings</a></div><div><br></div><div><br><br>On Apr 9, 2010, at 5:31 PM, "Michael R. Wolf" &lt;<a href="mailto:MichaelRWolf@att.net">MichaelRWolf@att.net</a>&gt; wrote:<br><br></div><div></div><blockquote type="cite"><div><span></span><br><span>On Apr 9, 2010, at 2:45 PM, Andrew Sweger wrote:</span><br><span></span><br><blockquote type="cite"><span>$x //= 0;</span><br></blockquote><blockquote type="cite"><span>$x-- if $x &gt; 1;</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>Disclaimer: The names of some scalars were changed to protect the</span><br></blockquote><blockquote type="cite"><span>innocent.</span><br></blockquote><span></span><br><span>What did you change to protect the guilty?</span><br><span></span><br><span>Silliness aside, I'm getting frustrated with my own coding style. &nbsp;In other words, I'm growing.</span><br><span></span><br><span>I used to allow undef to behave like zero, as documented, without feeling the need to appease the pragma gods.</span><br><span></span><br><span>Then I grew up to "use warnings" and perlcritic(1) as guard rails .</span><br><span></span><br><span>Then I grew up and fought the restraints that were formerly called safety devices, and became annoyed that I was serving these linguistic structures instead of them serving me.</span><br><span></span><br><span>When I was a child Perl programmer, I print'ed as a child.</span><br><span>Now that I'm a growed-up Perl programmer, I 'say' as a growed-up.</span><br><span>Etc...</span><br><span></span><br><span>Perhaps I was too self-absorbed and well contented for a few years, but recently I started reading about the discontent that's brewed the likes of:</span><br><span> &nbsp;&nbsp;&nbsp;use Modern::Perl; &nbsp; &nbsp;# chromatic</span><br><span> &nbsp;&nbsp;&nbsp;use Perl5i::latest; &nbsp; &nbsp; &nbsp; &nbsp;# Schwern</span><br><span> &nbsp;&nbsp;&nbsp;use common::sense; &nbsp; &nbsp;# Mark Lehmann</span><br><span></span><br><span>And then I had this aha moment.</span><br><span> &nbsp;&nbsp;&nbsp;I don't have good coding habits.</span><br><span> &nbsp;&nbsp;&nbsp;I've got cult cargo habits.</span><br><span></span><br><span>Why am I repeating magic incantations when my language of choice should be doing that for me? &nbsp;(I *am* starting to 'use Moose'. &nbsp;BTW - the next issue of "The Perl Review" will be exclusively devoted to Moose.) &nbsp;I have evolved. &nbsp;Has my language evolved to meet me?</span><br><span></span><br><span>Of course, it's not so black and white, but it got me thinking. &nbsp;Thinking more than normal. &nbsp;Especially in this pregnant pause while we await the gestation of Perl6.</span><br><span></span><br><span>So, my question to other Perl programmers, especially the thinking ones, is....</span><br><span></span><br><span>How is your "software practice" (doctors and lawyers shouldn't be the only professionals with a practice) maturing to move beyond the cargo cult practices of your days of writing baby Perl?</span><br><span></span><br><span>Having asked the question, here's grist to start the conversation.</span><br><span></span><br><span>Here's my growing edge...</span><br><span> &nbsp;use Moose; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# New for me...</span><br><span> &nbsp;use DBIx::Class; &nbsp; &nbsp; &nbsp; &nbsp;# ditto</span><br><span> &nbsp;use 5.10; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;# New for my client's platform...</span><br><span></span><br><span>and what's still comfortable...</span><br><span> &nbsp;use Test::More;</span><br><span> &nbsp;use warnings;</span><br><span> &nbsp;use strict;</span><br><span></span><br><span>and what's a bit beyond my comfort factor...</span><br><span> &nbsp;use Perl5i::*;</span><br><span> &nbsp;use Fatal;</span><br><span> &nbsp;use Test::Most;</span><br><span> &nbsp;use Perl6::*;</span><br><span></span><br><span></span><br><span>Admittedly, I'm not a bleeding edge programmer in the community, even though I've been around it for 15 years. &nbsp;The bulk of my Perl work has been in traning the next generation to move beyond Baby Perl(tm) so that they may join the movement.</span><br><span></span><br><span>I'm really interested to hear what folks at all the levels of Perl-ish-ness are up to in their practice: from Baby Perl Programmers to Monks.</span><br><span></span><br><span>Thanks for sharing...</span><br><span></span><br><span>-- </span><br><span>Michael R. Wolf</span><br><span> &nbsp;&nbsp;&nbsp;All mammals learn by playing!</span><br><span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="mailto:MichaelRWolf@att.net"><a href="mailto:MichaelRWolf@att.net">MichaelRWolf@att.net</a></a></span><br><span></span><br><span></span><br><span></span><br><span></span><br><span>_____________________________________________________________</span><br><span>Seattle Perl Users Group Mailing List</span><br><span> &nbsp;&nbsp;&nbsp;POST TO: <a href="mailto:spug-list@pm.org"><a href="mailto:spug-list@pm.org">spug-list@pm.org</a></a></span><br><span>SUBSCRIPTION: <a href="http://mail.pm.org/mailman/listinfo/spug-list"><a href="http://mail.pm.org/mailman/listinfo/spug-list">http://mail.pm.org/mailman/listinfo/spug-list</a></a></span><br><span> &nbsp;&nbsp;MEETINGS: 3rd Tuesdays</span><br><span> &nbsp;&nbsp;WEB PAGE: <a href="http://seattleperl.org/"><a href="http://seattleperl.org/">http://seattleperl.org/</a></a></span><br></div></blockquote></body></html>