Code review for new coldfusion developer

Hello all, my name's Oscar, and I've just created a little coldfusion framework for work to help us with some of our "legacy" systems (which all use a cms that bakes it's output.) And as I'm fairly new to coldfusion I wanted to see if you would mind quickly casting your eyes over what I've got and helping me improve my work with some of your hard earned experience.
Everything I've got I've open sourced, and I've written an example application / readme with details about how to install it incase you want to try it out on your own system. I've a background in ruby, python, and php; so I've borrowed some conventions from frameworks like django and rails as I was building this, as well as dipping heavily into coldbox to get a better understanding of how to structure my cfml code.
Here's the main repository for the project: https://github.com/binaryvision/pistachio.

Hello all, my name's Oscar, and I've just created a little coldfusion framework for work to help us with some of our "legacy" systems (which all use a cms that bakes it's output.) And as I'm fairly new to coldfusion I wanted to see if you would mind quickly casting your eyes over what I've got and helping me improve my work with some of your hard earned experience.
Everything I've got I've open sourced, and I've written an example application / readme with details about how to install it incase you want to try it out on your own system. I've a background in ruby, python, and php; so I've borrowed some conventions from frameworks like django and rails as I was building this, as well as dipping heavily into coldbox to get a better understanding of how to structure my cfml code.
Here's the main repository for the project: https://github.com/binaryvision/pistachio.

Similar Messages

  • Primavera webcast: Strategies for New Product Development and Innovation

    [Strategies for New Product Development and Innovation Success: Project Portfolio Management for the Industrial Manufacturing Recovery|http://www.bulldogsolutions.net/OracleManufacturing/ORM02252010/frmRegistration.aspx?bdls=23246]
    Jim Brown, manufacturing industry expert and President of Tech-Clarity, will discuss how leading manufacturers are shifting their product portfolios for the economic recovery, emerging from survival mode and resuming growth strategies.
    * Webcast: Strategies for New Product Development and Innovation Success: Project Portfolio Management for the Industrial Manufacturing Recovery.
    * Date: Thursday, February 25, 2010
    * Time: 11 a.m. EDT
    * Registration: http://www.bulldogsolutions.net/OracleManufacturing/ORM02252010/frmRegistration.aspx?bdls=23246
    For questions about this event, please contact Julie Castro at +1 415 608 4677.

    [Strategies for New Product Development and Innovation Success: Project Portfolio Management for the Industrial Manufacturing Recovery|http://www.bulldogsolutions.net/OracleManufacturing/ORM02252010/frmRegistration.aspx?bdls=23246]
    Jim Brown, manufacturing industry expert and President of Tech-Clarity, will discuss how leading manufacturers are shifting their product portfolios for the economic recovery, emerging from survival mode and resuming growth strategies.
    * Webcast: Strategies for New Product Development and Innovation Success: Project Portfolio Management for the Industrial Manufacturing Recovery.
    * Date: Thursday, February 25, 2010
    * Time: 11 a.m. EDT
    * Registration: http://www.bulldogsolutions.net/OracleManufacturing/ORM02252010/frmRegistration.aspx?bdls=23246
    For questions about this event, please contact Julie Castro at +1 415 608 4677.

  • Code Reviewer for OAF Code

    Hi All,
    Do we have a code review tool specially for OAF code something like JSTYLE is for java.
    Is there something specific to OAF or JSTYLE is ok to sue for OAF Code.
    Thanks,
    Arati

    Is there any tool for security review too for OAF

  • A new dilema, code review for newbie

    OK, now my dilema is taking input values from an applet and working them into my methods. I have read several tutorials, but I'm not finding any help. So far, I have written this code which does not complie (as expected). My methods seem solid, but my integration of the methods into an applet is far from decent. I have a feeling that I'm just going in circles here.
    package membership;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.lang.String;
    public class MemberFee extends JApplet
    String typeMem;
    char memType;
    int numKids,
    numYears;
    double memFee,
    kFee,
    iFee,
    fFee,
    totalFee;
    boolean endProgram = false;
    //DecimalFormat twoDigit = new DecimalFormat("0.00"); //page 171-172 in New Dietel Book
    public void init ()
    while (!typeMem == 'Q')
    memType = JOptionPane.showInputDialog("Enter Type of Member: ");
    typeMem = memType.charAt (0);
    typeMem = Character.toUpperCase(typeMem);
    if (typeMem == 'F')
    numYears = JOptionPane.showInputDialog("Enter number of years:");
    if(numYears<0)
    JOptionPane.showMessageDialog(null,"Enter a positive value", "You have made an error", JOptionPane.ERROR_MESSAGE);
    numKids = JOptionPane.showInputDialog("Enter number of kids:");
    if(numKids<0)
    JOptionPane.showMessageDialog(null,"Enter a positive value", "You have made an error", JOptionPane.ERROR_MESSAGE);
    else
    memFee = fFee;
    JOptionPane.showMessageDialog (null, "Type of Member: " + "Years" +
    "\nnumKids: " + (numKids) +
    "\nnumYears: " + (numYears),
    "Total", JOptionPane.PLAIN_MESSAGE);
    else if (typeMem =='I')
    numYears = JOptionPane.showInputDialog("Enter number of years:");
    if(numYears<0)
    JOptionPane.showMessageDialog(null,"Enter a positive value", "You have made an error", JOptionPane.ERROR_MESSAGE);
    else
    memFee = iFee;
    JOptionPane.showMessageDialog (null, "Type of Member: " + "Years" +
    "\nnumYears: " + (numYears),
    "Total", JOptionPane.PLAIN_MESSAGE);
    JOptionPane.showMessageDialog(null,JOptionPane.showMessageDialog (null, "Type of Member: " + "Years" +
    "\nnumKids: " + (numKids) +
    "\nnumYears: " + (numYears),
    "Total", JOptionPane.PLAIN_MESSAGE));
    }//end if
    }//end while
    //begin methods
    //fee for individual method
    public static double iFee(int numYears)
    double memFee;
    if (numYears >= 2)
    memFee = 1500.00;
    else
    memFee = 1900.00;
    return memFee;
    // end individual method
    //fees for family method
    public static double fFee (int numYears, int numKids)
    double memFee;
    double kFee;
    if (numKids <= 2)
    kFee = 0.00 ;
    else
    kFee = (numKids * 250.00);
    //end kids calculation
    if (numYears >= 2)
    memFee =2500.00;
    else
    memFee= 3000.00 + kFee;
    return memFee;
    //end family method
    This is what I think my problems are:
    1. I am confusing java application commands with java applet commands (shouldn't they be similar?)
    2. Can applets even allow for pop up dialog boxes?
    This problem keeps me up at night. Any help would be great.
    THanks,

    Hi,
    probably you need learn more Java and start with small examples. I kind of fixed the compilation errors, but I don't know what the output might be. good luck.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.lang.String;
    public class MemberFee extends JApplet
         String typeMem;
         String memType;
         int numKids,
         numYears;
         double memFee,
         kFee,
         iFee,
         fFee,
         totalFee;
         boolean endProgram = false;
         //DecimalFormat twoDigit = new DecimalFormat("0.00"); //page 171-172 in New Dietel Book
         public void init ()
         while (!typeMem.equals("Q"))
         memType = JOptionPane.showInputDialog("Enter Type of Member: ");
         typeMem = memType.substring(0,0);
         typeMem = typeMem.toUpperCase();
         if (typeMem.equals("F"))
         numYears = Integer.parseInt(JOptionPane.showInputDialog("Enter number of years:"));
         if(numYears<0)
         JOptionPane.showMessageDialog(null,"Enter a positive value", "You have made an error", JOptionPane.ERROR_MESSAGE);
         numKids = Integer.parseInt(JOptionPane.showInputDialog("Enter number of kids:"));
         if(numKids<0)
         JOptionPane.showMessageDialog(null,"Enter a positive value", "You have made an error", JOptionPane.ERROR_MESSAGE);
         else
         memFee = fFee;
         JOptionPane.showMessageDialog (null, "Type of Member: " + "Years" +
         "\nnumKids: " + (numKids) +
         "\nnumYears: " + (numYears),
         "Total", JOptionPane.PLAIN_MESSAGE);
         else if (typeMem.equals("I"))
         numYears = Integer.parseInt(JOptionPane.showInputDialog("Enter number of years:"));
         if(numYears<0)
         JOptionPane.showMessageDialog(null,"Enter a positive value", "You have made an error", JOptionPane.ERROR_MESSAGE);
         else
         memFee = iFee;
         JOptionPane.showMessageDialog (null, "Type of Member: " + "Years" +
         "\nnumYears: " + (numYears),
         "Total", JOptionPane.PLAIN_MESSAGE);
         JOptionPane.showMessageDialog (null, "Type of Member: " + "Years" +
         "\nnumKids: " + (numKids) +
         "\nnumYears: " + (numYears),
         "Total", JOptionPane.PLAIN_MESSAGE);
         }//end if
         }//end while
         //begin methods
         //fee for individual method
         public static double iFee(int numYears)
         double memFee;
         if (numYears >= 2)
         memFee = 1500.00;
         else
         memFee = 1900.00;
         return memFee;
         // end individual method
         //fees for family method
         public static double fFee (int numYears, int numKids)
         double memFee;
         double kFee;
         if (numKids <= 2)
         kFee = 0.00 ;
         else
         kFee = (numKids * 250.00);
         //end kids calculation
         if (numYears >= 2)
         memFee =2500.00;
         else
         memFee= 3000.00 + kFee;
         return memFee;
    //end family method

  • Is there a guide for starting coldfusion development on Ubuntu?

    I have successfully installed coldfusion on Ubuntu 13.10, but as a newbie to Ubuntu I am looking for a guide on the best way to continue from here?
    For example, I can view the CFADMIN at "http://localhost:8500/CFIDE/administrator/index.cfm", but am having difficulties viewing test documents placed in the wwwroot folder.
      Wayne

    Dear Anit
    Thank you so much for all the help!  The general guide on the differences immediately solved one problem once I changed the name of "application.cfm" to "Application.cfm"
    I am far from a "power user", but am enjoying the learning process.  Inevitably I find that most of my encountered problems are associatied with permissions.
    For a few brief years I was a cf developer, but now work in the tennis field at a large club.  I developed an application which saved me hours and hours of work, and this application has become a key element in the whole summer program.  Unfortunately, after migrating to CF10 from CF9 I can no longer connect to smtp.gmail.com (after hours and hours of searching for a work-around).  Luckily I still had the same application on an older laptop, which was using CF9 ... and so I was still able to work as I wanted.
    I decided to partition my new laptop to see if CF10 would work as I needed on Ubuntu.... which explains my intial posting.
    I am very happy to report that, with your help, I have had success.  For the record this is what I did
    after installing Ubuntu I followed this great guide:  http://www.howtoforge.com/installing-apache-and-coldfusion-9-on-ubuntu-9.04 (of course installing the downloaded CF10 and not CF9)
    BUT, the apache connector didn't work for me. (this was before the above posting of Anit's ... and as a Ubuntu newbe I couldn't see any way forward)
    so I uninstalled coldfusion and reinstalled ... as a standalone server
    no problem at all viewing the CF Admin page
    after installing and running msql, I imported my club database and application files
    not a problem creating the appropriate datasource within CF Admin
    BUT, I couldn't view my application in a browser after moving it to the "wwwroot" folder
    finally I (fortuitously) changed the permissions on this application folder so that I had appropriate rights ... which had a GUI allowing me to do so, otherwise I think I never would have done it alone!
    Immediately I could view index.cfm, but then I would have a DATASOURCE error when I drilled down
    Once I saw that "application.cfm" had to have a capital "A" i.e. "Aplication.cfm" everything worked
    went to "mail" under CF Admin. Verifying my mail server was at first annoying.  Port 465 with TLS checked didn't work ... but then port 587 verified!
    a test email to myself using my application in the browser proved successful...yay!
    If at first you don't succeed, try, try again!
    Again Anit, thank you for your help!

  • BAdI code review - for perfomance improvements

    Hi,
    I've a BAdI implementation to enhance a BW datasource which will extract additional fields for the datasource. The pseudo code for the extractor is as below. Can some one please review and let me know the opportunities (which I'm sure there will be) to improve the performance of the BAdI?
    Thanks a lot.
    Regards,
    Sri.
    Pseudo Code:
    loop at ct_data assigning <ls_data>.
      case <on_a_field>.
        when <value_1>.
           if <condition1>.
           elseif<condition2>.
           elseif<condition3>.
           endif.
        when <value_2>.
           <execute a function module by exporting value_2>        
           if <condition1>.
           elseif<condition2>.
           elseif<condition3>.
           endif.
      endcase.
    <extraction logic for other fields continue>
    endloop.

    Hi
    Two suggestions:
    First, use tcode ST05 to do traces and diagnose the bottleneck.
    Second, tcode ABAP_TRACE, go to tips and tricks, and in internal tables /  using the assigning command see samples and run them to evaluate the times. But in my opinion you are doing well.
    I hope this helps you
    Regards
    Eduardo

  • ISO code Configuration for new UOM creation

    Hi gurus,
    have a Technical query.
    I am configuring UOM's in SAP. For this I need to give ISO Code value as well.
    To configure ISO code values -> the SPRO direct links are not working...I tried with few more other links.. but nothing is working out.
    Could you pls tell me the tcode for configuration of ISO code for UOM? The ISO code values are stored in table T006J.
    Please give me your valuable sugestion
    Regards,
    Anbu

    use tcode CUNI.
    here u can create new ISO code by selecting ISO codes tab
    reports,
    indranil

  • Flash Builder - No Code Hinting For New Flash Professional Project??

    I had been using flash builder as an as3 editor and compiling from flash builder. The Flash Professional Project in Flash Builder seems perfect. It will give me the flexibility to compile from Flash Professional, or compile from the flex sdk, use breakpoints, have all my files nicely in the package explorer.
    However, it has been a terrible terrible experience. For some reason code hinting is completely turned off on all levels in Flash Professional Projects. I have been looking in every preference panel trying to figure out why this is happening. If it is actually the case that you get no code hinting whatsoever then they really should not have even bothered adding this into Flash Builder because coding in this fashion is a joke.
    However, I am still optimistic about it. Can someone help me turn on code hinting?

    Ok. Solved it. The issue was that we were using linked source code and library swcs that were all located under the same directory. When you pull up the project's properties and go to "Flex Build Path" under the "Source Path" tab you can add that directory without a problem. However, under the "Library Path" instead of just adding the directory, I added each swc individually and that solved my problem. Now all the code hinting is working perfectly.

  • Reviews for new firmware 21.0.004 nokia x6 16GB

    anybody has got upgrade 21.0.004??
    plz tell me how is it?
    pros and cons

    Hi everybody
    I've updated to 21.0.004 via FOTA , though the backup was taken, it was not necessary to restore, all the apps and other details such as contacts remains as it was. any way I feel of restoring in any case of a missing item.
    it looks to me that the Web Browsing is very very faster than earlier
    all sensors are there.
    GPS is working very fast
    touch screen is very smooth than earlier
    no problem on ring tones
    but I was just wondering, are there any way of unlocking the phone without using the switch and by means of touching the screen only? because it looks that the switch tends to loosen/may break with repeated use.
    best regards

  • Code Review Tools for Enhancements

    Friends,
    I have to perform code review for enhancement objects. I am aware of tools like Code Inspector (SCI Tcode) and SE30. These tools can be used for reports, function modules.
    I would like to know if these tools can be used for enhancements or are there some other tools available?
    Thanks and Regards.

    Hi
    can you work on :
    1) ST05 Performance Trace
    2) ST03G Global Statistical Records
    STAD Statistical Records
    3) ST30 Global Performance Analysis
    thnak you
    srinu

  • European ColdFusion Developer Conference

    Those of you that are based in europe, specifically the UK
    may be interested to know there is a new coldfusion developer
    conference starting this year (November).
    check out
    www.cfdevcon.com for more info

    whooopsies! I figured out what I was doing wrong. Noob
    mistake -- rather than browsing to my files using
    http://localhost:portnumber/directory
    .... I was trying to just right click on my .cfm files on my hard
    drive and open them in my browser....
    C:\CFusionMX7\wwwroot\examples\variables_form.cfm -- in which case,
    obviously the browser didn't know to route the files to the port of
    the ColdFusion server, and thus wasn't compiling the code...

  • Coldfusion developer conference

    Those of you that are based in europe, specifically the UK
    may be interested to know there is a new coldfusion developer
    conference starting this year (November).
    check out
    www.cfdevcon.com for more info

    whooopsies! I figured out what I was doing wrong. Noob
    mistake -- rather than browsing to my files using
    http://localhost:portnumber/directory
    .... I was trying to just right click on my .cfm files on my hard
    drive and open them in my browser....
    C:\CFusionMX7\wwwroot\examples\variables_form.cfm -- in which case,
    obviously the browser didn't know to route the files to the port of
    the ColdFusion server, and thus wasn't compiling the code...

  • Coldfusion Developer sought

    We have an immediate need for a Coldfusion developer for an 8
    month project in CT. If interested, please contact me at:
    [email protected]

    whooopsies! I figured out what I was doing wrong. Noob
    mistake -- rather than browsing to my files using
    http://localhost:portnumber/directory
    .... I was trying to just right click on my .cfm files on my hard
    drive and open them in my browser....
    C:\CFusionMX7\wwwroot\examples\variables_form.cfm -- in which case,
    obviously the browser didn't know to route the files to the port of
    the ColdFusion server, and thus wasn't compiling the code...

  • Oracle Apps secure code review

    Is any documentation available (either Oracle or third party based) to guide secure code reviews for Oracle Apps (or more specifically, Oracle Application Framework)?
    I'm aware of the usual sql injection bad practices (as related to JDBC and PLSQL). I'm curious about API abuse, as related to:
    - cross-site scripting concerns
    - client-side trust issues (e.g., hidden field values)
    - improper or inconsistent input validation
    - improper error handling
    - improper session management
    - inappropriate access control
    Thanks.

    Thanks... I looked at that and didn't think it was all in there, but I looked again after I got your reply and it appears to be what we are looking for (at least a starting point).

  • Code Review:: ADF BC applications

    Hi,
    We would like to know if there's any open source software available for code reviews of ADF applications and how to effectively use to for ADF BC applications?
    1) Am I moving in right direction while exploring PMD and Checkstyle? Are these the right candidates for setting automated code reviews for ADF applications?
    Is there a specific software recommendation by the forum members which can help me achieve this goal.
    2) Can CodeCoach and Audit features available in JDeveloper help me in this?
    3) Will I have to necessary create 'Custom Rules' for tasks like validating EO classes are not directly referred in the Controller? Are there some pre-built rule-sets available on this front?
    4) Any other suggestions for ensuring better/faster code reviews not necessarily replacing the manual peer review process but reducing the unnecessary headaches that can be fixed by freely available software
    Sid

    I started using ADFLogger and added some log statements. When I ran my application in JDeveloper in Embeded OC4J server, these log statements are appearing in JDeveloper server log window. After I deployed this application to Oracle Application Server, these statements are not appearing in the application.log file and also not in any file. Am I missing any configuration setting? The log current level is INFO and I do have few INFO statements, SEVERE statements in my code. Thanks in advance.

Maybe you are looking for

  • Is it possible to upload photos directly from a digital camera to the Zen Sle

    Hello My girlfriend and I are going to South America. Therefore, I am not only looking for a MP3-player, but also a place to store photos. The Zen Sleek court my attention. Though, I would like to know whether it is possible to upload photos directly

  • Apple wired keyboard - certain keys not working with shift

    I treated myself to a new Apple wired keyboard MB110B/A for my mac mini. My previous keyboard worked fine, however the new keyboard causes the computer to enter the Hardware Test mode every time the computer is restarted. The computer only starts nor

  • Unwanted line in DW when adding a Flash item...Help!

    Guys/Gals When I try to put a movie item in my Dreamweaver page, an additional line appears underneath - that I do not want. See this page: http://perryautolaval.com/autoaboutfr.php right under the flash banner, a grey lines appears. It should look l

  • Gamers Unlocked still not active after a month.

    I purchased this membership in mid May 2015. I went to the store after receiving the card to get it activated. I was promised that was activated. I waited a couple days and noticed that it still wasn't active so I went directly to the retail store an

  • Physical Standby in Sync

    Hi, I have an physical standby in MaxPerformance (ARCH). Oracle Version 10.2.0.3. It was managed by Data Guard Broker. Primary is a RAC Cluster with Thread1 and Thread2. By doing an select * from v$archive_gap returns no rows. By doing a query on the