June 10, 2009 at 2:22 pm · Filed under ColdFusion
Kunal Saini has written an excellent article on Performance tuning for ColdFusion applications. He discusses 3 techniques using BlogCFC application:
- Performance tuning with Java Virtual Machine (JVM) parameters
- ColdFusion Administrator settings and
- Coding best practices
Permalink
May 22, 2009 at 12:22 pm · Filed under Ruby on Rails
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
Permalink
May 8, 2009 at 12:59 pm · Filed under ColdFusion
Excellent articles on Test Driven Development with ColdFusion:
- Part 1: Driven by the Cold
- Part 2: Designing components for easy testability
Permalink
April 12, 2009 at 9:15 am · Filed under Ruby on Rails
Steps to create a new project:
- Create Application:
>rails project_name
- DB Config:
>rake db:create RAILS_ENV = 'development'
- Testing DB Config:
>rake db:migrate
- Create MVC:
>ruby script/generate scaffold product title:string description:text image_url:string
- Apply migration to dev DB:
>rake db:migrate
- Start the local WEBrick-based web server:
>ruby script/server
- 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
Permalink
March 25, 2009 at 10:46 am · Filed under ColdFusion
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.
Permalink