Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: simple C checking script

by Ratazong (Prior)
on Mar 28, 2012 at 10:54 UTC ( #962147=note: print w/ replies, xml ) Need Help??


in reply to Re^2: simple C checking script
in thread S simple C checking script

I fear you will never get a solution that extracts all c-files, and no others... no matter how hard you work.

That's why you should spend more time with your friend first (as suggested by GrandFather):

  • how fault-tolerant should your solution be? (e.g. a 90%-detection-rate might be fine)
  • is it more desirable to have false positives (files wrongly classified being in C) of false negatives (C files that have been missed)?
  • what is the environment (how likely are people using "wrong" extensions, e.g. a perl-script in a .c-file)
  • how fast should your solution be? (e.g. is it acceptable to do a lot of plausi-checks on that hundreds of 20-MB-.cpp-files to ensure that none of them is in reality C?)
In my experience, the time used to understand the use-case of your customer and to investigate with him where it is possible to "cut corners" is well invested. It will give you the possibility for easier solutions, and lead to higher customer satisfaction. And less change-requests afterwards ...

HTH, Rata


Comment on Re^3: simple C checking script

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://962147]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (14)
As of 2014-12-19 21:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (92 votes), past polls