Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: The joys of bad code

by czth (Sexton)
on Oct 27, 2004 at 00:44 UTC ( #402863=note: print w/replies, xml ) Need Help??

in reply to The joys of bad code

Bah, since when do companies write articles? I wrote the article (the link is to my site). BUU did ask my permission before posting ("I'm czth and I approve of this message"). Not all code is from applicants but I think most of it is; I tried to anonymize the code where I thought it necessary to protect the guilty.

For those that are tired of rants, I wrote a more didactic version in response to some comments after I first posted the article (on k5). Standard disclaimer along the lines of "my code isn't always perfect either" goes here, too.

Really, a lot of bad code comes from not refactoring, and whenever I see unfactored sprawling inefficient untidy code I itch to refactor it into something more elegant (and usually smaller). Doubtless my bad code collection will continue to grow.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://402863]
[oiskuu]: Hm. that depends on kernel compiled with CONFIG_AUDITSYSCAL L
[tye]: apropos my several mentions of audit
[Corion]: At least my (non-SELinux) Debian has that config thing set. I don't have non-Debian machines handy (except Android)
[Corion]: My Android phone also has /proc/self/ loginuid, but that displays -1 (resp. 4GB). That might be because the phone is rooted.
[tye]: -1 means nobody logged in or the process was started before audit got booted
[davido]: ok, on my ubuntu system getlogin grabs from /proc/self/ loginuid (per strace)

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (9)
As of 2017-06-23 19:58 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (554 votes). Check out past polls.