Difference between Static and Dynamic Scaffolding?


dynamic scaffolding is when you give the line
scaffold :model_name
in your controller ruby will automatically generate all the appropriate data interfaces at runtime.

static scaffolding is when you give command to generate all the appropriate data
script/generate scaffold Post title:string content:text category_id:integer

Everything the dynamic scaffolding provided–is included, albeit as static content
All you need to do is migrate your DB.

So the main difference is, with dynamic scaffolding you can
generate new, edit and delete methods but with static
scaffolding you can’t

Advertisements

abap DATA and TYPES


It is a special strength of ABAP that you can define a great variety of data types and objects that span the spectrum from very elementary data types to very complex and dynamic types. Consequently, the subject of ABAP declarations is quite extensive.

ABAP accepts all data types defined in the SAP dictionary or in Type Pools. Types can also be defined inside the program itself. Object numeric (I for integer, F for floating point), packed decimal (P), character (C or N, where the N type is used for numeric strings that can be used in computation) or hexadecimal (X). Date fields (type D) and time fields (type T) have a “dual” nature; in an input/output context they behave like strings, but in a computational context they are numeric integers. This makes date and time calculations extremely easy. For example:

DATESENT = ‘20070901’.
VALIDTO = DATESENT + 60.
WRITE: ‘Offer is valid until’, VALIDTO DD/MM/YYYY.

In this example, a string literal representing September 1, 2007 is assigned to DATESENT. DATESENT is then used in a numeric calculation to produce another data field, VALIDTO. VALIDTO is then output as a string. The optional “DD/MM/YYYY” modifier displays the date in a predefined format, here “31/10/2007”. Without the modifier the date would display as “20071031”.
Data and Types

All ABAP variables must be explicitly declared in order to be used. The convention is for all declarations to be at the top of the program, or subroutine. The declaration consists of the name, type, length (where applicable), additional modifiers (e.g. the number of implied decimals for a packed decimal field) and optionally an initial value:

* Primitive types:
DATA: COUNTER TYPE I,
VALIDITY TYPE I VALUE 60,
TAXRATE(3) TYPE P DECIMALS 1,
LASTNAME(20) TYPE C.

* Dictionary types:
DATA: ORIGIN TYPE COUNTRY.

* Internal table:
DATA: T_FLIGHTS TYPE TABLE OF FLIGHTINFO,
T_LOOKUP TYPE HASHED TABLE OF FLT_LOOKUP.

* Objects:
DATA: BOOKING TYPE REF TO CL_FLT_BOOKING.

Notice the use of the colon to chain together consecutive DATA statements.

Agile Web Development with Rails


Agile web development is a model for development of web applications. It is more efficient and powerful for a short timeline than other models. It incorporates face-to-face communication, and considers technical personnel as well as customers as part of the team. Agile web development uses project managers and business analysts, and emphasizes clear goals, planning and iterative delivery. Agile web development ensures the successful completion of a product at the end of each iteration. The Agile web development model follows planning, requirement analysis, designing, coding, testing and documentation during development. Successful interaction increases success of the application because of the focus on customer involvement. This decreases problems that come with the development team changing the product in a late stage due to changes in requirements. Instead, both the development team and the customers are informed, therefore customer confidence remains high and there are minimal delays.  All tasks are performed at a previously specified period, with just enough documentation to be effective.

Rails is an open source web application framework for the Ruby programming language. It is intended to be used with an Agile development methodology, and is often utilized by web developers for its suitability for short, client-driven projects.

Ruby on Rails is a framework that makes it easier to develop, deploy and maintain web applications. Soon after its initial release, Rails went from being an unfamiliar tool to being a wide-reaching phenomenon. It has become the framework of choice for the implementation of a wide range of Web 2.0 applications as it is both simple and subtle.