<html><body bgcolor="#FFFFFF"><div><br></div><div>There is an interesting discussion about the merits of common::sense at StackOverflow: <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" <<a href="mailto:MichaelRWolf@att.net">MichaelRWolf@att.net</a>> 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 > 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. 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> use Modern::Perl; # chromatic</span><br><span> use Perl5i::latest; # Schwern</span><br><span> use common::sense; # Mark Lehmann</span><br><span></span><br><span>And then I had this aha moment.</span><br><span> I don't have good coding habits.</span><br><span> 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? (I *am* starting to 'use Moose'. BTW - the next issue of "The Perl Review" will be exclusively devoted to Moose.) I have evolved. 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. Thinking more than normal. 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> use Moose; # New for me...</span><br><span> use DBIx::Class; # ditto</span><br><span> use 5.10; # New for my client's platform...</span><br><span></span><br><span>and what's still comfortable...</span><br><span> use Test::More;</span><br><span> use warnings;</span><br><span> use strict;</span><br><span></span><br><span>and what's a bit beyond my comfort factor...</span><br><span> use Perl5i::*;</span><br><span> use Fatal;</span><br><span> use Test::Most;</span><br><span> 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. 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> All mammals learn by playing!</span><br><span> <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> 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> MEETINGS: 3rd Tuesdays</span><br><span> WEB PAGE: <a href="http://seattleperl.org/"><a href="http://seattleperl.org/">http://seattleperl.org/</a></a></span><br></div></blockquote></body></html>