Techniques to improve the performance of ColdFusion 8.0.1 Applications

Kunal Saini has written an excellent article on Performance tuning for ColdFusion applications. He discusses 3 techniques using BlogCFC application:

  1. Performance tuning with Java Virtual Machine (JVM) parameters
  2. ColdFusion Administrator settings and
  3. Coding best practices

Comments Bookmark to delicious Digg this Technorati reddit 

Rails Naming Conventions

These are the default conventions used by Rails. You can override all of these conventions using the appropriate declarations in your Rails classes.

Database:
Table names are always plural, have lowercase letters and under scores between words (order_categories).
Table: orders
Primary Key: id
Foreign Key: customer_id
Link Tables: items_orders (table names in alphabetical order)

Models:
Table: line_items
File: app/models/line_item.rb
Class: LineItem

Controller:
URL: http://../store/list
File: app/controllers/store_controller.rb
Class: StoreController
Method: list
Layout: app/views/layouts/store.html.erb

View:
URL: http://../store/list
File: app/views/store/list.html.erb (or .builder or .rjs)
Helper: module StoreHelper
File: app/helpers/store_helper.rb

Reference: Agile Web Development with Rails, Third Edition

Comments Bookmark to delicious Digg this Technorati reddit 

TDD with ColdFusion

Excellent articles on Test Driven Development with ColdFusion:

  1. Part 1: Driven by the Cold
  2. Part 2: Designing components for easy testability

Comments Bookmark to delicious Digg this Technorati reddit 

How to setup a new Ruby on Rails project?

Steps to create a new project:

  1. Create Application:>rails project_name
  2. DB Config:>rake db:create RAILS_ENV = 'development'
  3. Testing DB Config:>rake db:migrate
  4. Create MVC:
    >ruby script/generate scaffold product title:string description:text image_url:string
  5. Apply migration to dev DB:>rake db:migrate
  6. Start the local WEBrick-based web server:>ruby script/server
  7. View scaffold generated code: http://localhost:3000/products

To roll back a migration:>rake db:migrate VERSION=0

To add a new column:
>ruby script/generate migration add_price_to_product price:decimal

To add Test Data:>ruby script/generate migration add_test_data

To generate a scaffold:>ruby script/generate controller store index

To add Session:>rake db:sessions:create

To clear Session:>rake db:sessions:clear

Comments Bookmark to delicious Digg this Technorati reddit 

Free Project Based ColdFusion Curriculum

Adobe has announced Free ColdFusion 8 project-based curriculum designed to teach experienced web developers how to create dynamic, database-driven web applications using ColdFusion 8.

Adobe ColdFusion 8 is also available free for download to educational customers to use for learning purposes only. This includes all qualified students, faculty and staff of eligible education institutions.

Comments Bookmark to delicious Digg this Technorati reddit 

« Previous entries Next Page » Next Page »