BleepingComputer.com: Is there such a kind of software that will spot bad code?

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Is there such a kind of software that will spot bad code?

#1 User is offline   Advice Pro 

  • New Member
  • Pip
  • Find Topics
  • Group: Members
  • Posts: 10
  • Joined: 16-July 09

Posted 25 September 2009 - 10:59 AM

And Possibly fix it as well?

#2 User is offline   groovicus 

  • Hail Groovicus!
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 9,604
  • Joined: 05-June 04
  • Gender:Male
  • Location:Centerville, SD

Posted 25 September 2009 - 11:54 AM

Define 'bad code.' There are things like resharper for Visual Studio, JSLint for javascript, etc. but they are not going to correct the code for you since in most cases the software likely has no clue what you are trying to do. Then of course there is the compiler/interpreter that will catch syntax errors.
"Take the risk of thinking for yourself, much more happiness, truth, beauty, and wisdom will come to you that way" - Christopher Hitchens

#3 User is offline   pleurebleu 

  • Member
  • PipPip
  • Find Topics
  • Group: Members
  • Posts: 46
  • Joined: 17-September 09
  • Gender:Male
  • Location:Indianapolis - IN

Posted 25 September 2009 - 02:56 PM

Depends,

Some IDEs will correct syntax error... (such as a missing semi-column in C)
Others might underline them as microsoft word would underline some bad spelling.(Eclipse)

But since there is no way it'll know what you're actually trying to do... the answer to your question would be no.

If it existed, it would be nice though

#4 User is offline   Billy O'Neal 

  • Bleepin Engineer GRADUATE
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Malware Response Instructor
  • Posts: 10,385
  • Joined: 17-January 08
  • Gender:Male
  • Location:Cleveland, Ohio

Posted 25 September 2009 - 02:59 PM

Coverity makes some automated code analysis tools. Microsoft also has FxCop which ships with Visual Studio for all the .NET languages.

Billy3

#5 User is offline   Imperious Leader 

  • New Member
  • Pip
  • Find Topics
  • Group: Members
  • Posts: 11
  • Joined: 17-November 09
  • Location:Columbus, Ohio

Posted 19 November 2009 - 11:04 AM

Well, there probably is, however you have to ask yourself, is this really what I want.....?????

Here's the deal. If you use a "high-speed-bad-code-detector-gizmo", the question becomes
what have I learned from this....? :flowers:

By going through countless iterations of the development cycle, enduring the "pain and suffering" of
trying to decipher other developers code, after awhile, (...and trust me on this one...) you
will be able to spot "bad code", in most cases, right from the start.

I know, I know, time is of the essence in some software development organizations. Got to get it fixed and back in to production. Need an answer now.
Blah, blah, blah....

But in the longterm, as painful as it is, determining what "bad code" is, and how to identify it will come from the experience of going
through the software, determining better solultions, and applying those solutions in future developments.

This is how us "old coots" :thumbsup: used to have to do it. Just depends on what you want and how you want to do it......

IL

This post has been edited by Imperious Leader: 19 November 2009 - 11:07 AM


#6 User is offline   Andrew 

  • Bleepin' Night Watchman
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 7,421
  • Joined: 05-December 05
  • Gender:Not Telling
  • Location:Right behind you

Posted 21 November 2009 - 11:37 PM

No such programs exist as far as I am aware, unfortunately.



(Though you can buy Bad Code Offsets :thumbsup: )
Help us help you. If HelpBot replies, you MUST follow step 1 in its reply so we know you need help.
Posted Image
Boredom Software Stop Highlighting Things

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users