Jess Information

Jess Home
Jess 7 Features
Download Now!
Online Demo

Documentation
FAQ
Manual
Mailing List
Jess Wiki

More information Related Web Sites
User Contributions
JSR94 Info
Developer's Log
About This Site

JESS ®, the Rule Engine for the JavaTM Platform

Jess Wiki: Forest For The Trees

As the saying goes, sometimes you just cannot see the forest because the trees are in your way. Another way of looking at this is that often the peskiest bugs are right under your nose in plain-sight.

Test your debugging skill!!

Archives



<COMMON-MISTAKE>
    <AUTHOR>
        <LAST-NAME>Morris</LAST-NAME>
        <FIRST-NAME>Jason</FIRST-NAME>
        <EMAIL>jason.c.morrisATgmailDOTcom</EMAIL>
    </AUTHOR>
    <TYPE>Typo</TYPE>
    <DESCRIPTION>Omitting a colon from a fully-qualified rule name.</DESCRIPTION>
    <LESSONS-LEARNED>
        <LESSON>Debuggers don't catch everything.</LESSON>
        <LESSON>Look for the obvious mistakes first.</LESSON>
    </LESSONS-LEARNED>
    <CODE-SAMPLE>
      (defrule SOME-MODULE:do-something-cool
      "A rule that fires when something happens"
      (foo (bar ?bar&a|b|c)) => ;do something cool here
      )
    </CODE-SAMPLE>
    <REFERENCE-URL>none</REFERENCE-URL>
</COMMON-MISTAKE>

This is obviated by the JessDE now, but back in the day, it was practically invisible to see -- especially at 2 AM! - JM



CommonMistakesTemplate | CommonBeginnerMistakes


Front Page | Sandbox | Recent Changes | Powered by Friki | Last Edited: 14 June 2006