# p029dog.rb # define class Dog class Dog def initialize(breed, name) # Instance variables @breed = breed @name = name end def bark puts 'Ruff! Ruff!' end def display puts "I am of #{@breed} breed and my name is #{@name}" end end # make an object # Objects are created on the heap d = ...
<Installation | TOC | Features> Let's open up our plain-text editor. As far as possible, ensure that your editor's Tab is set to 2 spaces. We are now ready to write our first Ruby program . Code layout is pretty much up to you; indentation is not significant (but using two-character i...
While the IT students of many countries travel abroad to further their education, Australians have many choices that are keeping their kids on native soil. In Australia a Bachelor’s of Information Technology (also called a Business in Information Technology degree) is a three-year or ...
utside-in Development is a software development methodology that focuses on providing value to the product’s users and stakeholders. Cucumber is a BDD tool that supports Outside-in development by running plain text features or user stories as acceptance tests. Well written user storie...
Here are some articles I have written on Go for JoshSoftware , a company that is now into Go projects too. Learn to build and deploy simple Go Web Apps, Part Two – link Learn to build and deploy simple Go Web Apps, Part One – link How Do I Create A Presentation Using Go? – link A Simp...
egistrations are now open for RubyLearning’s “Pay if you like “, online course on “Build, Deploy Go Web Apps “. Web-based applications offer many advantages, such as instant access, automatic upgrades, and opportunities for collaboration on a massive scale. However, creating Web appli...
, a participant who just graduated, has to say – “You kindly offered me the opportunity to join your Ruby course. I’m new to development and found the course, even though basic for programmers, a little tricky for me. I managed to complete all of the assessments and really learnt a lo...
, who is working as a freelance software engineer. She has 15 years of software under her belt and is keen on providing experienced advice as well as coding help. She has programmed in Ruby for 6 years before turning to Clojure and Haskell, and enjoys exploring the world of functional...
Further Reading on Developing Web applications with Go Writing Web Apps in Go Build web application with golang Writing a modern web app with Go, TDD, REST, and AngularJS Build a Christmas List with Martini Simple App with Go, Martini, Gorp and MySQL An introduction to beego Sample We...
Routing Basics: Ruby on Rails for Front-End Developers This guest post is by Miles Matthias , who in between trips and sips, usually with planes and bourbon, enjoys talking to people about difficult challenges and tapping on his keyboard to help solve them. He moved to Boulder in Janu...
, a participant who just graduated, has to say – “You kindly offered me the opportunity to join your Ruby course. I’m new to development and found the course, even though basic for programmers, a little tricky for me. I managed to complete all of the assessments and really learnt a lo...
module StatsApi require 'json' require 'httparty' require 'active_support/core_ext/string' require 'jsonpath' ## Reader: note that @error is raised so that we can easily handle that in our parent methods... def find_users_stats(users_handle) # This will call the Stats API and pull bac...
require 'rubygems' require 'em-http' require 'json' class LanguageDetector URL = "http://www.google.com/uds/GlangDetect" include EM::Deferrable def initialize(text) request = EM::HttpRequest.new(URL).get({ :query => {:v => "1.0", :q => text} }) # This is called if the request complete...
egistrations are now open for RubyLearning’s “Pay if you like “, online course on “Programming the Web with Ruby “. The first batch had over 2000 participants . Web-based applications offer many advantages, such as instant access, automatic upgrades, and opportunities for collaboratio...
How Do I Install A Ruby Gem With Native Extensions On Windows? One of the challenges many Ruby on Windows users have is how to easily use native RubyGems from the community such as the rdiscount or redcloth gems. Many Window users have seen this error: Building native extensions. This...
Luckily, there is! Ruby has fantastic tools that let you set up tests for your code that you can run automatically. You can save yourself tons of time and effort by letting the computer run thousands of tests every time you make a change to your code. And it’ll never get tired and acc...
A “Free” online course on Sinatra – 12th batch R ubyLearning announces the twelfth batch of its “Free” online “Sinatra ” course starting from Saturday 1st Feb. 2014 . Sinatra – quickly create tiny web apps and services Is the course really free? A lot of effort and time goes into buil...
A “FREE” Git and GitHub Course – 10th batch R egistrations are now open for RubyLearning’s popular “Pay if you like” online Git and GitHub course. This is an introductory but an intensive, online course for beginners . Here you’ll learn the essential features of both Git and GitHub th...
Build your own web-application framework with Ruby R egistrations are now open for RubyLearning’s “Pay if you like “, online course on “Build your own web-application framework with Ruby “. At the end of the course the participant will learn: Rack the layer on which Sinatra, Rails is ...
, a participant who just graduated, has to say – “You kindly offered me the opportunity to join your Ruby course. I’m new to development and found the course, even though basic for programmers, a little tricky for me. I managed to complete all of the assessments and really learnt a lo...
W hether you call it golang or the Go programming language doesn’t really matter. What is of consequence is whether this is going to be used more in the future. Many signs are pointing to this being true. Keep reading to learn more about Go – originally thought up by Google – includin...
, a participant who just graduated, has to say – “You kindly offered me the opportunity to join your Ruby course. I’m new to development and found the course, even though basic for programmers, a little tricky for me. I managed to complete all of the assessments and really learnt a lo...
This brief Ruby MySQL Tutorial shows you how you can connect to MySQL in Ruby. MySQL support in Ruby was made possible by Tomita Masahiro. He has developed a pure Ruby binding called Ruby/MySQL. We need to install the same on our PC and the installation (you need to be connected to th...
is a special kind of object, an instance of the class Exception or a descendant of that class that represents some kind of exceptional condition; it indicates that something has gone wrong. When this occurs, an exception is raised (or thrown). By default, Ruby programs terminate when ...
Rack is the foundation of a great majority of modern Ruby web frameworks. This common interface between web servers and web applications is critical to understand since as a Ruby web developer you will more than likely have to deal with Rack middleware and/or Rack applications. Rails ...
Absolutely. When you learn a large framework first, you’re introduced to an abundance of ideas, constraints, and magic. Worst of all, they start you with a pattern. In the case of Rails, that’s MVC. MVC doesn’t fit most web-applications from the start or at all. You’re doing yourself ...
Ruby uses symbols, and maintains a Symbol Table to hold them. Symbols are names - names of instance variables, names of methods, names of classes. So if there is a method called control_movie, there is automatically a symbol :control_movie. Ruby's interpreted, so it keeps its Symbol T...
I’ve just founded a company called “Rock & Code ” in Amsterdam, The Netherlands that offers solutions developed on Sinatra (instead of Rails or even Merb) to my partners. Why you would ask? Sinatra have definitely broken the MVC paradigm (widely implemented by frameworks such as Rails...
A Free Course on Ruby with Shoes On August 19, 2009, Why the Lucky Stiff withdrew from the online community. To remember Why’s contributions to our community, RubyLearning is celebrating Whyday today, by announcing the 8th batch of the Ruby with Shoes Course. This course is absolutely...