Programming Tips Summary

rails is a collection of libraries, each with a specialized task.Assembled together, these

individual libraries make up the rails framework.
#active record: a library that handles database abstraction andinteration;
#active view: a templating system that generates the html documentsthe visitor get backs

as the result of a request to a rails application;
#action controller: a library for manipulation both applicationflow and the data coming from

the database on its way to being displayed in a view;

zend_cache provides a generic way to cache any data.

Caching in zend framework is operated by frontends while cacherecords are stored

through backend adapater(file, sqlite,memcache) through a flexiblesystem of ids and

tags.

There are three key concepts in zend_cache. One is the uniqueidentifier that is used to

identify cache records.The second one is the lifetime directive ;it defines for how long the

cached resource is considered fresh. The third key concept isconditional execution so

that parts of your code can be skipped entirely,boostingperformance.

It is the nature of application to require a multitude of caches ofany type often dependent

on the controller, library or domain model being accessed.

A joomla module is in its most basic form two files: an xmlconfiguration file and a php

controller file.The xml configuration file contains generalinformation about the module as

well as module paramters which may be supplied to fine tune theappearance/functionality

of the module.The php file provides the controlling logic for themodule.

Wheneve a function is invoked in javascript, an execution contextis created. This context

is created with the following process:
#The arguments object is created;
#The function's scope is created;
#variables for the function are instantiated;
#The this property(for the context itself) is created.

this property is a reference to the object that is considered thecontext(or scope) of the

funcion's invocation.The behavior layer describes a conceptualgrouping of all the event

binding that occurs during the lifetime of  apage.

what is the jsonp's technique anyway? unlike xhr, the browser doesnot prevent scripts

from being loaded across domains. jsonp works by dynamicallyinserting a <script>

element onto a page, and executing the response when itreturns.

Drupal's trigger module allows to associate some action with acertain event.In the code,

an event is defined as a unique hook-operation combination.

xml message exchanges is the basis of most varieties of webservices, including both

soap and REST approaches.


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值