SitePoint Sponsor |
|
User Tag List
Results 26 to 50 of 94
-
Jun 8, 2005, 18:57 #26
- Join Date
- Nov 2001
- Location
- Atlanta, GA, USA
- Posts
- 5,011
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by REMIYA
Using your unpaid time to add free content to SitePoint Pty Ltd's portfolio?
-
Jun 8, 2005, 19:28 #27
Originally Posted by REMIYA
The easiest way to get into ruby is to use the one-click ruby installer , which installs everything you need, including docs and a development environment. I've barely started looking into it myself, but I can vouch for the one click installer working perfectly.
-
Jun 8, 2005, 19:33 #28
- Join Date
- Nov 2001
- Location
- Bath, UK
- Posts
- 2,498
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by REMIYA
DouglasHello World
-
Jun 9, 2005, 02:38 #29
- Join Date
- Jul 2004
- Location
- Gerodieville Central, UK
- Posts
- 446
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by DougBTX
-
Jun 9, 2005, 02:41 #30
- Join Date
- Jul 2004
- Location
- Gerodieville Central, UK
- Posts
- 446
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by REMIYA
-
Jun 9, 2005, 06:30 #31
- Join Date
- Jan 2003
- Location
- Toronto
- Posts
- 234
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I've been experimenting with Ruby for a few weeks now, and built a few apps.
The one thing it has over PHP is that working alone I can develop a reasonably complex web application over the course of a weekend. It makes development FAST.
I promised I'm not exaggerating when I say in MINUTES you can have the basic framework of a web app up and running (add, edit, list). That's as a beginner. I can only imagine what's possible as an expert.
I see myself using Rails a LOT in the future...if I can only find the time to learn it.
-
Jun 9, 2005, 07:46 #32
- Join Date
- Apr 2003
- Location
- Albany, NY
- Posts
- 417
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by DougBTX
Sean P Sullivan
Web Hosting::Web Templates::Free Smilies
Free Image Hosting::DIY Home Repair::DIY Gardening::Flash Games
-
Jun 9, 2005, 07:48 #33
- Join Date
- Apr 2003
- Location
- Albany, NY
- Posts
- 417
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by Dr Livingston
Sean P Sullivan
Web Hosting::Web Templates::Free Smilies
Free Image Hosting::DIY Home Repair::DIY Gardening::Flash Games
-
Jun 9, 2005, 09:21 #34
Originally Posted by CapitalWebHost
-
Jun 9, 2005, 10:28 #35
- Join Date
- Jan 2002
- Posts
- 55
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I second the recommendation to have a look at Why's Poignant Guide. It's probably the funniest and wackiest book out there.
http://poignantguide.net/ruby/
I recently moved to Mac and use TextMate (www.macromates.com) to edit ruby scripts. If you're on Windows, check out Arachno Ruby IDE (http://www.ruby-ide.com/ruby/ruby_id...uby_editor.php).
Others
http://mondrian-ide.com/index.html
http://freeride.rubyforge.org/wiki/wiki.pl
Great Ruby Book:
http://www.pragmaticprogrammer.com/t...uby/index.html (2nd edition, 1st is available for free on the internets)
Great Ruby on Rails Book:
http://www.pragmaticprogrammer.com/t...ils/index.html (Beta pdf)
-
Jun 9, 2005, 11:31 #36
- Join Date
- Jan 2003
- Location
- Toronto
- Posts
- 234
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by copycat
-
Jun 9, 2005, 13:18 #37
- Join Date
- Oct 2001
- Location
- Norway
- Posts
- 187
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by Ryan Wray
Code:class User include Singleton attr_accessor :name, :email end
I don't mean to say that Ruby isn't a great language, it's just that the best feature of Python is the whitespace sensitivity so curly brackets and end keywords are not needed. And that leads to cleaner,more readable code and less typing.
I'd probably prefer Ruby over going back to PHP though.Good web hosting info All you need to know about web hosting
xhbml(web dev blog)
CSS Viking CSS blog
-
Jun 9, 2005, 13:51 #38
- Join Date
- Jan 2005
- Location
- Ireland
- Posts
- 349
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by fish
Good Luck
-
Jun 9, 2005, 14:01 #39
- Join Date
- Jul 2004
- Location
- Gerodieville Central, UK
- Posts
- 446
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by copycat
We already have textmate. I'm a little stubborn to use it as I perfer jEdit's kep mappings because I use a PC as much as I use a Mac, and I like split view editing. However, textmate is really nice.
My boss has got one of those Ruby books I think. He's run away on holiday to cuba with it, despite the fact I'm ment to be learning / slapping some stuff together in Ruby while he's away :P
-
Jun 9, 2005, 14:04 #40
- Join Date
- Jun 2005
- Posts
- 17
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
IT is funny that most people I know, when they first start Python they go crazy. They give it up oftentimes because whitespace makes a difference -- but those that don't absolutely fall in love with it.
I myself love the Python setup with whitespace. It makes everything so absolutely clear and easy to read. Much easier than most other languages.
-
Jun 9, 2005, 16:40 #41
who introduced ruby ?
I never heard of this language.Purchase any JaduSoft products in 10$ only offer ends 1st July
Try a Live demo before you purchase, Best software.
-
Jun 9, 2005, 17:54 #42
- Join Date
- Apr 2003
- Location
- London
- Posts
- 2,423
- Mentioned
- 2 Post(s)
- Tagged
- 0 Thread(s)
Hi.
Quick info. The whitespace being significant is called "the offside rule" and was used in Haskell. I suspect that it had been used before that too. Regarding building web apps. in minutes, you can do that in PHP too. Ruby is a little hyped right now (which is not to say it isn't a great language).
The language was written by Yukihiro Matsumoto and the first English transalted book was his "Ruby in a Nutshell". "Matz" is from Japan, and a lot of the core libraries have Japanese authors.
yours, MarcusMarcus Baker
Testing: SimpleTest, Cgreen, Fakemail
Other: Phemto dependency injector
Books: PHP in Action, 97 things
-
Jun 9, 2005, 18:47 #43
- Join Date
- Jul 2004
- Location
- Gerodieville Central, UK
- Posts
- 446
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Well Marcus, you are partly to blame for originally bring the Ruby hype to this forum, along with Doug!
-
Jun 10, 2005, 03:05 #44
- Join Date
- Feb 2005
- Posts
- 602
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Although it's not a true contender for a server-side language, JavaScript (ECMAScript) should be mentioned too from the language standpoint. From what I hear/know of Ruby, the design concepts seem rather similar:
- interpreted language (though vast majority of JS is not server-side)
- everything is an object (based off Smalltalk), so everything except the global object is a property or method, and functions can be passed as lambdas
- methods and properties can be added dynamically to existing objects and object prototypes (obj.newMethod = function(x) { alert(x); })
- supports closures
The major downside to JS is that it lacks a special syntax for declaring classes and it has no support for protected members (it does support private and public members though).
-
Jun 10, 2005, 03:34 #45
- Join Date
- Apr 2004
- Location
- germany
- Posts
- 4,324
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by lastcraft
Originally Posted by Maian
The major downside to JS is that it lacks a special syntax for declaring classes and it has no support for protected members (it does support private and public members though).
-
Jun 10, 2005, 03:52 #46
- Join Date
- Jan 2005
- Location
- Ireland
- Posts
- 349
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by stereofrog
-
Jun 10, 2005, 04:30 #47
- Join Date
- Feb 2005
- Posts
- 602
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
No, JS has very powerful OOP. Well, Smalltalk-style OOP. Unfortunately, in the latest versions of JS that are bundled with browsers (JS 1.5 for Mozilla), defining "classes" is rather clunky:
Code:function someClass() { var self = this; self.publicMember = 10; var privateMember = 5; self.publicMethod = function() { alert(privateMember); } var privateMethod = function() { alert(self.publicMember); } function anotherPrivateMethod(x) { alert(x); } } someClass.prototype = new someBaseClass(); someClass.prototype.anotherPublicMethod = function() { //can't access private vars here though alert(self.publicMember); } someClass.publicStaticMember = 100; someClass.publicStaticMethod = function(x) { return x * x; }
-
Jun 10, 2005, 04:41 #48
- Join Date
- Sep 2004
- Location
- Zagreb, Croatia
- Posts
- 830
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Javascript is my favorite as well, and although JS2 will add classes and other sytax usually associated with OOP it is already a full-fletched OO language, although with a different approach than most developers are used to. Instead of the common class-based inheritance (i.e. classes), it uses a prototype-based approach to objects. This means that there are no "blueprints" for objects, although it can be "emulated" to some extent as Maian demonstrates.
This approach makes for a much more powerful and flexible programming. For example, any dependancies can be injected to all objects of the same prototype by adding a new property into any object.
Also, JS already has some server-side implementations, such as Whitebeam.
-
Jun 10, 2005, 06:56 #49
- Join Date
- Jun 2001
- Location
- In your basement
- Posts
- 1,268
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I just started playing with ruby on rails this morning... and im very impressed...
the scaffold feature is awsome
+1 for rubyEric Coleman
We're consentratin' on fallin' apart
We were contenders, now throwin' the fight
I just wanna believe, I just wanna believe in us
-
Jun 11, 2005, 03:35 #50
- Join Date
- Feb 2005
- Posts
- 602
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Correction: everything except literal numbers are objects in JS. So there's no way to add 1.add(2) functionality to the language, except to do something like (new Number(1)).add(2).
EDIT: "var x = 1; alert(x.add(2));" also works
Bookmarks