Slashdot Mirror


User: swimmar132

swimmar132's activity in the archive.

Stories
0
Comments
377
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 377

  1. Re:Online authentication unavailable for one night on Steam Users Steamed · · Score: 2, Informative

    What the hell. Put Steam into Offline mode. You can play Half-Life 2 in single player mode then.

    I've played HL2 many times without a working internet connection.

  2. Re:duh on Steam Users Steamed · · Score: 1

    You can play Half-Life 2 without connecting to the "central servers". Put Steam into Offline mode.

  3. Re:But you're missing an important implication on Rolling With Ruby On Rails · · Score: 1

    Different tools for different needs. Lots of production sites use Rails succesfully.

    You can determine access to the database through the ActiveRecord objects. Probably not in stored procedures though.

    If you do need stored procedures, you don't need to use ActiveRecord (which is the ORM part of Rails).

  4. Re:weird directory structure on Rolling With Ruby On Rails · · Score: 1

    Good point about the controllers, but views don't have "_view" appended onto them. The name of the view is the same as the corresponding action/method in the controller.

    I'm not sure why the controllers have "_controller" appended onto their filenames. Models don't have "_model" appended. Hm.

  5. Re:Plurals? on Rolling With Ruby On Rails · · Score: 1

    If you don't like how it pluralizes names, you are free to change it. Takes a line of code to specify the name you want to use.

  6. Re:There's that bloody MVC again on Rolling With Ruby On Rails · · Score: 2, Informative

    In Rails, the model is responsible for getting/putting data from/to the database and creating objects used by the controller.

    The controller is responsible for manipulating the objects from the model.

    The view is used to display controller data and to send user data back to the controller.

    It works very well.

  7. Re:weird directory structure on Rolling With Ruby On Rails · · Score: 1

    I'm not exactly sure why you think Rails directory structure is weird. I think it's pretty good.

    For those who don't know... a typical Rails structure is: /app /app/models /app/model/a_model.rb /app/controllers/ /app/controllers/a_controller.rb /app/views /app/views/a_view/ /app/views/a_view/a_particular_view.rb /public /public/stylesheets /public/images

  8. Re:Good alternative for php/perl, but for j2ee? on Rolling With Ruby On Rails · · Score: 1

    You can create automatic mappings between objects and a relational database in Java with a total of two lines of code? That's news to me. But if you can't, then that would mean that you can't "just as easily" do the same in Java, right?

    Customizing views is dead simple in Rails. I don't see how it's diffcult.

    Granted, the example that the guy gave was REALLY basic. There's lots of others on the Rails site.

  9. Re:But is the SQL any good? on Rolling With Ruby On Rails · · Score: 1

    Yes, for most sites, Rails is fine. So, how is that a weakness? By not committing the zero'th and first great blunder, would the ORM layer be as simple and flexible to use?

  10. Re:Do you know what makes me laugh? on Rolling With Ruby On Rails · · Score: 2, Insightful

    Writing SQL statements smack dab in the middle of one's code is generally a bad thing. You want to get the code that talks to the database separated out from the rest of the application.

  11. Re:Nice framework... on Rolling With Ruby On Rails · · Score: 1

    Rails is not just a framework for accessing a database.

    There's also ActionPack (http://ap.rubyonrails.org/), which is the View and Controller of the MVC pattern (ActiveRecord being the Model part).

    The integration between the two frameworks is what makes Rails so impressive.

  12. Re:But is the SQL any good? on Rolling With Ruby On Rails · · Score: 1

    If you find that the application is making too many SQL queries and is bogging down performance, then ActiveRecord (the database part of Rails) lets you create custom SQL queries.

    So what's the problem?

  13. Re:Rails is awesome on Rolling With Ruby On Rails · · Score: 2, Interesting

    Considering that I've written less than 500 lines of code (not counting html or css), I'd guess pretty much anyone could get up to speed with it in less than a day, even with Rails experience.

    Hell, I probably only spent two days studying Rails prior to creating the site.

  14. Re:Okay, so what else does it do? on Rolling With Ruby On Rails · · Score: 1

    The ActiveRecord classes are simply a way to get data from the database and transfer it to an object.

    You can do whatever business logic you want after you get the objects.

  15. Re:Good for "recipe" queries but little else on Rolling With Ruby On Rails · · Score: 1

    Visual programming? What the hell is visual about it?

  16. Re:Played with it on Rolling With Ruby On Rails · · Score: 1

    Oracle is coming very soon!

    What do you mean by "queries essentially on the pages"?

  17. Rails is awesome on Rolling With Ruby On Rails · · Score: 4, Interesting

    I've almost finished developing a real estate site using it. First time using Rails.

    In PHP or other related language, probably would've taken me about 80 hours or so to develop the site. In Rails, I've spent maybe 15 hours or so total on it. And I'm charging $8k for the site. Admittedly, that doesn't include time working on the graphics or design of the site, just the backend, search, etc.

    So if you look at it from one perspective, I went from making $100 an hour to $533 an hour using Rails!

  18. Re:So great, so slow on Rolling With Ruby On Rails · · Score: 1

    The linked websites are all loading fine for me...

  19. Re:HTML on Rolling With Ruby On Rails · · Score: 1

    Hi,

    Rails provides CRUD (Create, Retrieve, Update, Delete) helpers if you want to use them. They're aren't necessary by any means, they just provide an easy, extremely quick way (one line of code) to create forms that will let you operate on a database table.

    I'm not sure if the code that it generates is standards-compliant, but I'd imagine that it is.

  20. Re:Okay, so what else does it do? on Rolling With Ruby On Rails · · Score: 4, Informative

    Perhaps the documentation for ActiveRecord will help answer your question?

    http://ar.rubyonrails.org/

    You can automatically retrieve data from the database in the form of an object, do manipulations or calculations, display it, modify it, then do a save() method on the object and it'll go right back into the database.

  21. Re:Good for "recipe" queries but little else on Rolling With Ruby On Rails · · Score: 1

    Insightful?

    Lets see you do the same thing cleanly with a MVC pattern in any other language/framework in as little effort as you can with Rails.

  22. Re:Ruby still needs ISP support on Rolling With Ruby On Rails · · Score: 2, Informative

    And, if you get hosting at TextDrive, they'll give half of your money to supporting RubyonRails development!

  23. Re:WHO NEEDS FREAKING READABILITY ?! on Does the World Need Binary XML? · · Score: 1

    Having a human readable format makes it a lot easier to a) parse the data and b) validate the data.

  24. Re:Hardware resources and software design on Where's My 10 Ghz PC? · · Score: 1

    If performance is going to be an issue, then the design specs should indicate what performance is needed.

    Otherwise, you could spend 5 times as long making the code go 25% faster for no good reason at all.

  25. Re:Projects fails because no one ever learns on Is Your Development Project a Sinking Ship? · · Score: 2

    Repeat after me: Software is nothing like Construction.