Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror
×
User Journal

Journal tmhsiao's Journal: Do not do this. 1

This is the kind of programming that gives Perl programmers the reputation of being sloppy and their code unmaintainable (a snippet of code from a major project at my former job):

foreach $data ( sort keys %data ) {
   push @data, $data{$data};
}
This discussion has been archived. No new comments can be posted.

Do not do this.

Comments Filter:
  • That is way too confusing. Remember: you're the violent psychopath who knows where the original author lives ;-)

    ("Always code like the person who will maintain your code is a violent psychopath who knows where you live.")

"Engineering without management is art." -- Jeff Johnson

Working...