Category Archives: Development

Getting started

Ruby on rails can be downloaded from many sources over the internet like from http://api.rubyonrails.org/ where there are also instructions on how to quickly install and start programming. The first lessons would be the forever basic “Hello World” program which is very easy if you get set-up right. For a more automated installation you could [...]

Also posted in Programming Basics, Programming Language | Tagged , , | Comments closed

Building Projects

Once you have successfully installed and tried that the install was a success through the Hello World program. You now begin building projects with the following syntax : “rails ProjectName”. You then start the WeBrick webserver with “cd ProjectName enter ./script/server”. The above procedures invoke the interpreter which may be required on some platforms as [...]

Also posted in Internet, Programming Basics, Programming Language | Comments closed

Weak points…. or are they?

Before we jump into the programming itself, let us learn some of the so-called weak points that you might be able to consider and improve on ( or even share) with others out there to make the platform a better one.
First is speed, the information that I might have come upon may be a bit [...]

Also posted in Internet, Programming Language | Tagged , , | Comments closed

Different Block Forms

Blocks or simply chunks of code as in the last example may be existing variables which changes after that same variable passes thought the block, giving it a new value. Blocks may also be used to return a needed value to the method as in the last example, the resulting value of the last expression [...]

Also posted in Programming Basics | Tagged , | Comments closed

Blocks for Transactions Discussed (Part 2)

After it goes through the block, the file is closed taking with it the results of the block’s transactional process. This is something that should be done with all programming languages, to have the code have their own built-in file handling system which ensures that a file once opened is closed upon exit to avoid [...]

Also posted in Programming Basics | Tagged , | Comments closed

Blocks for Transactions Discussed (Part 1)

The sample code above shows the number of techniques that can be used to maximize the use of blocks for transactional control where the takeAndDosomething method is considered a class method and that it can be called independent or without influence of any single File Object. We used it to function in the same manner [...]

Also posted in Programming Basics, Programming Language | Tagged , | Comments closed

Integers and Iterators

There are a variety iterators that are useful with Ruby such as we’ve already seen in previous samples of code, such as n.times. Others are n.upto and n.downto for going up or down a series of integers and the step, which is more like the traditional loop statement. Their usage would be somewhat like:
3.times {print”X [...]

Also posted in Programming Basics | Tagged , | Comments closed

Ruby Data Types

We have looked into many of the data structures that are supported by ruby along with brief examples of their use and structures. Now we turn to the different data types the language supports which is vital in maximizing the potential of Ruby. Numbers are classified into integers and floating point numbers. The handling capabilities [...]

Also posted in Programming Basics | Tagged , , | Comments closed

Ruby on Rails Programming With Passion

For all the good reasons, Ruby on Rails is fast becoming popular with developers and Web applications deployers. Rails is a Web application structure based on a number of advance philosophies like Convention Over configuration and Don’t Repeat Yourself. On the other hand, the JRuby on Rails presents additional benefit by allowing them to influence [...]

Also posted in General Info | Comments closed

Ruby Loosing Steam to Java

The complexities of Rails compared to other development platforms for your web applications is compared to be the main detractor of the overall status of Rails, unable to progress into a more preferred language. Rails on the code side can be compared to COBOL and C++ that used to be done with millions of lines [...]

Also posted in General Info | Comments closed