cs_geek — 2010-10-20T10:51:13-04:00 — #1
1- Is Ruby faster than PHP?
2- Is there an IDE for Ruby?
3- Which server Ruby use to run its web applications?
cs_geek — 2010-10-25T16:54:05-04:00 — #2
I'll keep all my questions in this thread, so it can be a good reference for other new comers.
Is it true that I can't depoy ruby web application on a small shared web hosting space?
alexdawson — 2010-10-23T12:41:29-04:00 — #3
What do you mean by change their appearance? Server-side scripting is not about changing how something visually looks, that's what CSS is for.
cs_geek — 2010-10-25T16:05:03-04:00 — #4
By thw way, another question:
- Is Ruby a secure language?
cs_geek — 2010-10-25T15:08:40-04:00 — #5
I may misunderstand the idea behind framework! because I've seen a tutorial that explain how can you quickly implement contact form or something like that, I thought that the fields were built in the framework, and this means that we can't change theirs appearance and names for example!
cs_geek — 2010-10-23T01:31:49-04:00 — #6
I have another question about Ruby, does it provide flexiblity in changing the appearance of elements? as I have seen a video that explain how to use Ruby Framework to build quick forms, but the question is can I change the appearance of these quick solutions or just except them as they are?
alexdawson — 2010-10-20T11:29:58-04:00 — #7
I wouldn't say any particular server-side language is faster or more effective than any other, it really depends on what you're trying to achieve as to whether the language will meet your requirements. As for an IDE, Netbeans can work the Ruby mojo so it might be worth looking at (as the environment has been around for years). Regarding the server, you can use Apache or IIS for Ruby (or rails, depending on what you use). There's plenty of options out there!
alexdawson — 2010-10-25T23:39:00-04:00 — #8
Ruby is NOT a framework, it's a programming language. Rails (as in Ruby on Rails) is a framework. There is a major difference. Regarding the styling of components, just like PHP or ASP, Ruby is not involved in the stylistic stuff of what ends up in the clients web browser, that's the job of CSS.
It's about as secure as any other language, but with all things, you need to be sensible in how you use and implement it.
No, if the host supports Ruby, you can deploy Ruby code, just like if the host supports PHP, you can deploy PHP scripts.
cs_geek — 2010-10-26T10:06:35-04:00 — #9
I've visited many websites built in Ruby, they are slower than other websites built in PHP or .NET, why?
cs_geek — 2010-10-26T13:19:23-04:00 — #10
I've just realised!
I mean for example the validation for inputs are built in rails which shows black text with red background! is there possibility to change that in Ruby?
alexdawson — 2010-10-26T21:11:36-04:00 — #11
You could probably generate some CSS using Ruby, but CSS should be written in... CSS.
PS: It's probably down to the servers rather than the language itself.
cs_geek — 2010-10-27T04:15:22-04:00 — #12
What's the probelm with the server, is it not capable of running Ruby for example? I've visited many websites not one and all of them are slow comparing with .net and php websites.
cs_geek — 2010-10-27T12:23:43-04:00 — #13
It seems to be OK now, Ruby Ruby
Here is another question, does Ruby support languages which are based on Unicode?
alexdawson — 2010-10-28T19:53:23-04:00 — #14
It's probably just a slow server (like if they have a lot of people hosted on it). Slow servers are pretty common, especially on cheap hosting.
PS: Not all Ruby sites are slow, Twitter for example was built on Ruby. There's absolutely no reason to say it's slower than other languages.
Ruby is a server-side language... it deals with processing scripts, building web applications and such, it's not a markup language (like HTML). It's no different to PHP or ASP or JSP or ColdFusion or Python or Perl or any of the others (just it's syntax and framework differ). I would advise you to do some research on the difference between language types (markup, client-side and server-side) and the difference between a language and a framework.
cs_geek — 2010-10-29T09:47:36-04:00 — #15
Well, is it Ruby that makes you type less code than other languages or is it the Rails framework? :rolleyes:
alexdawson — 2010-11-04T16:48:09-04:00 — #16
Frameworks are pre-built libraries of code which simplify the process.
louis_simoneau — 2010-11-04T19:02:47-04:00 — #17
To be fair, Ruby itself does tend to be more concise than other languages. So even without using a framework, a given script will likely be shorter in Ruby than in PHP.
But Alex is right, the biggest gains in productivity do come from Rails.
goldfidget — 2010-11-11T16:56:34-05:00 — #18
Rails generates a default stylesheet called scaffold.css that styles the forms when you run a particular script. That's probably what you saw. If you check the HTML you'll see it at the top. You don't have to keep it. Rails just makes ordinary, plain old XHTML and you can do all the things you would normally do with XHTML.
cs_geek — 2010-11-11T22:55:09-05:00 — #19
Yes it is, and everytime I have to delete that stuff by myself to change it to what I want?
goldfidget — 2010-11-12T05:29:03-05:00 — #20
I'm sorry, are you talking about rails scaffold here? That's an automated way of making your site quickly for rapid prototyping, so yes, you do have to change it if you're not happy with the default. You can skip the scaffold if you want, most people do.
next page →