Berkeley CSUA MOTD:Entry 50985
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/04/04 [General] UID:1000 Activity:popular
4/4     

2008/8/27-9/3 [Computer/SW/Languages/Ruby] UID:50985 Activity:nil
8/27    Is Ruby on Rails similar to CGI? Or maybe just something with an
        object-relationship mapping between objects and DB?
        \_ it's an entire application server framework.  You define your
          views, your models, your control, and Rails makes all the connecting
          parts.  DB mappings included.  Also it's all written in Ruby,
          which is an odd language.  So, for example, you'd replace not just
          JSP with Ruby on Rails, but rather you'd replace all of J2EE with
          RoR.  Also there's a temptation to configure Tomcat to use RoR,
          but in the long run it's much easier to farm out to a Mongrel
          instance.   Advice #2: buy the 3 main books.  Ruby, Agile Web Dev
          with Rails, and Rails Recipes.  --brain
          \_ So what are some of your major complaints with RoR? Also,
             what  are some of the major websites that use RoR? I know
             Python scales quite well if done correctly (e.g. Google)
            \_ scales fine.  Since RoR is inherently "agile," odds are you
                will have completely rewritten your entire application by
                the time you get to scaling issues.  Large installations use
                clustered Mongrel instances.    --brain
                \_ http://tinyurl.com/6g93om            --brain
                        (lists major installs and Twitter's difficulties)
ERROR, url_link recursive (eces.Colorado.EDU/secure/mindterm2) 2025/04/04 [General] UID:1000 Activity:popular
4/4     

You may also be interested in these entries...
2013/4/9-5/18 [Computer/SW/Languages/C_Cplusplus, Computer/SW/Apps, Computer/SW/Languages/Perl] UID:54650 Activity:nil
4/04    Is there a good way to diff 2 files that consist of columns of
        floating point numbers, such that it only tells me if there's a
        difference if the numbers on a given line differ by at least a given
        ratio?  Say, 1%?
        \_ Use Excel.
           1. Open foo.txt in Excel.  It should convert all numbers to cells in
	...
2013/4/29-5/18 [Computer/SW/Languages/C_Cplusplus, Computer/SW/Compilers] UID:54665 Activity:nil
4/29    Why were C and Java designed to require "break;" statements for a
        "case" section to terminate rather than falling-through to the next
        section?  99% of the time poeple want a "case" section to terminate.
        In fact some compilers issue warning if there is no "break;" statement
        in a "case" section.  Why not just design the languages to have
        termination as the default behavior, and provide a "fallthru;"
	...
2013/3/5-26 [Computer/SW/Languages/Java] UID:54618 Activity:nil
3/5     Three emergency Java updates in a month. Why do I have a feeling
        that the third one won't be the last one?
        \_ Bingo!
	...
2012/12/18-2013/1/24 [Computer/SW/Languages/Perl] UID:54561 Activity:nil
12/18   Happy 25th birthday Perl, and FUCK YOU Larry Wall for fucking up
        the computer science formalism that sets back compilers development
        back for at least a decade:
        http://techcrunch.com/2012/12/18/print-happy-25th-birthday-perl
        \_ I tried to learn Perl but was scared away by it.  Maybe scripting
           lanauages have to be like that in order to work well?
	...
2012/8/29-11/7 [Computer/SW/Security] UID:54467 Activity:nil
8/29    There was once a CSUA web page which runs an SSH client for logging
        on to soda.  Does that page still exist?  Can someone remind me of the
        URL please?  Thx.
        \_ what do you mean? instruction on how to ssh into soda?
           \_ No I think he means the ssh applet, which, iirc, was an applet
              that implemented an ssh v1 client.  I think this page went away
	...
2011/12/23-2012/2/6 [Computer/SW/Languages/Python] UID:54272 Activity:nil
12/23   In Python, why is it that '好'=='\xe5\xa5\xbd' but
        u'好'!='\xe5\xa5\xbd' ? I'm really baffled. What
        is the encoding of '\xe5\xa5\xbd'?
        \_ '好' means '\xe5\xa5\xbd', which is just a string of bytes; it has
           length 3.  Python doesn't know what encoding it's in.  u'好' means
           u'\u597d', which is a string of Unicode characters; it has length 1,
	...
2011/12/8-2012/1/10 [Computer/SW/Languages/Java, Computer/SW/Security] UID:54252 Activity:nil
12/8    Java code much worse IRL than pretty much everything else:
        http://preview.tinyurl.com/d5e46cq [ars technica]
	...
2011/4/16-7/13 [Computer/SW/Languages/Python] UID:54086 Activity:nil
4/16    Whoa, I just heard that MIT discontinued 6.001 (classic scheme)
        to 6.01. In fact, 6.00, 6.01 and 6.02 all use Python. What the
        hell? What has the world become? It's a sad sad day. SICP forever!
        \_ old story, they've ditched that shitty book and lang for a while.
        \_ I used to think scheme was cool, then I saw Ka Ping Yee's
           "Beautiful Code" class aka 61a in python, and converted.
	...
2011/2/24-4/20 [Computer/SW/Languages/Java] UID:54048 Activity:nil
2/24    Go Programming Language.  Anyone here use it?  It kind of
        reminds me of java-meets python, and well, that is fitting given it's
        a GOOG product.  What is so special about it?
        \_ as I understand it, it's a suitable OOP-y systems language with more
           structure than C, less complexity than C++, and less overhead than
           Java/Python.
	...
Cache (8192 bytes)
tinyurl.com/6g93om -> www.techcrunch.com/2008/05/01/twitter-said-to-be-abandoning-ruby-on-rails/
Twitter is planning to abandon Ruby on Rails as their web framework and start from scratch with PHP or Java (another solution is to stick with the Ruby language and move away from the Rails framework). CrunchBase, our tech company database, is also built on Rails. Switching off Rails may not solve all of Twitter's problems. They have nearly two years of infrastructure built up and would face many more growing pains if they switched frameworks or rolled their own. here, all I can say is that multiple sources claim that Twitter is telling people they are planning on moving away from Ruby on Rails. This is not the first time a company has denied something that has turned out to be 100% true. Because of the similarity of Ruby on Rails and Cake PHP in the ORM layer and etc its more likely to be a move to PHP using the Cake MVC web framework. The other choice is not Enterprise Java but say Plain Old Java Objects using the Groovy Graiils framework that works with Java. May 1st, 2008 at 1:54 pm PDT Sometimes huge growing pains force change sooner than planned. I'm just now getting into Twitter and although not an addict, yet, really enjoy the connecting that goes with the site. May 1st, 2008 at 1:54 pm PDT I thought database abstraction and transparency, almost as if you could avoid thinking about databases in traditional terms, was a big new bonus in Rails, why would you need to optimize the database? May 1st, 2008 at 1:55 pm PDT Oh no, this is going to cause absolute mayhem. This is more potent than a DHH post on GENERATING PROFITS or four day works weeks. I'm betting they won't side with a PHP or Java framework, but that's not going to stop the upcoming rage virus epidemic. May 1st, 2008 at 1:57 pm PDT They should just go with IIS7 and sql server 2008. I know it is the "in thing" to not pay for your webserver os and db engine, but why not build on something that is used in the enterprise? net, and there are hundreds of thousands of people learning C# in college right now. May 1st, 2008 at 1:57 pm PDT They should go with C This is a messaging protocol, not a Web app people. Would AOL Instant messenger implement their app in Rails? This really says very little about the Rails framework, if you ask me. com runs his whole entire operation on 2 front-end servers and one DB server, and he's doing what like 30,000,000 page views an hour or a day or something ridiculous like that. Compiled code beats scripting in speeds any day of the week. Net MVC framework, that way they can write ruby and still get performance. May 1st, 2008 at 1:59 pm PDT Maybe it's time for Twitter to leverage Amazon's E2C which has no uptime agreement. At least Twitter would have someone new to blame for endless, unscheduled outages. May 1st, 2008 at 2:00 pm PDT Twitter is easy to implement using an ActiveMQ (Java) cluster for the subscriptions, PHP for the front end/API, and another Java farm for message delivery. They are probably going down because they are pushing around too much data on the backend. Subscriptions should just be pushing around the index for messages. May 1st, 2008 at 2:01 pm PDT Depends on their strategy here, but there are quite a few other ways they can go. The RR monolithic strategy can be tough to cope with when you need to do things like asynchronous operations. Other platforms are just better equipped to do those sorts of things, without your environment ending up as a hodge-podge of technologies. I'm *sure* they're having conversations about the front-end vs. May 1st, 2008 at 2:01 pm PDT I see lots of people suggesting a PHP solution, but I think that's a limiting path for 2 reasons. First, Twitter is increasingly global, and (I believe) PHP still lacks Unicode support. Second, for a site that gets as much traffic as Twitter, they'd benefit immensely from a language that handles multi-threading well. May 1st, 2008 at 2:04 pm PDT earle: PHP is a template language meaning that it's a language that works within a template system (in this case, HTML) That makes building smaller templates very easy and fast. That's one of the reasons that you really want to divvy up business logic from display logic. Django is a template system within a language, which may seem like a minor quibble, but it requires data preconditioning in order to use it, meaning that templating is something that has to be kept different and requires a different syntax. It really depends on how they've structured things for their site. Both choices are valid, but it's a bad idea to dismiss either of them out of hand. May 1st, 2008 at 2:04 pm PDT @Matt Baron: agreed this is a messaging app. Sticking a db into the flow and distribution of messages is a non-starter for anything with real aspirations to scale. it's the flow of msgs and what you do with them that matters. May 1st, 2008 at 2:06 pm PDT @26 Your technology doesn't support compilation so your defense in using it to scale is use an adon? I / me / developers everywhere shouldn't have to fight with a technology that doesn't scale and bolt something else on to solve a problem. I should be able to focus on my code, write it, and move on, not worrying about having to one day at some point install some other third party tool to make it go faster. May 1st, 2008 at 2:10 pm PDT @26 - that thought scared me - are they really *moving* around multiple copies of tweets? I've seen people seemingly in awe of being able to "deliver" that many tweets to people (the twitter spewage charts a few days ago). There should only be one copy of a tweet in a database table, not dupes. Also, not really sure why they're having the scaling problems. I'm not a huge RoR fan, but I don't really care to bash on it that much. I've been around to see crap code on every major platform out there - I know people who can make *any* system *not* scale. However, if they're trying to keep everything within the confines of the RoR framework, that may be the problem. Frameworks are great, but there are times when you need to bypass the confines of the system, usually for performance reasons. The trick is knowing when and how to do it, documenting it, training people on why you deviated, etc. I suspect if they just rebuild with the same architecture and mindset, just a new language, they'll have the same problems. Likewise, if they rebuilt from the ground up in RoR (or just Ruby) they would likely be able to make it scale much better with all the lessons learned. Of course, given that many of the original brains are now gone, perhaps that wouldn't be as useful, because those experiences are now gone too... May 1st, 2008 at 2:11 pm PDT Just because a site has scalability issues, it does mean Rails is the culprit. Most of the time when Sites are not scaling it is database which is the culprit, mainly for not being totally optimized. Twitter is growing faster than they expected and can't really blame someone here because the service is free and beggar's(users) can't choose. May 1st, 2008 at 2:12 pm PDT PHP only limits people of lack of creativity. They will probably find the correct language for the application, but I would not say that PHP is not the right language for this. May 1st, 2008 at 2:13 pm PDT They are obviously going migrate to Termite/Gambit and replace Starling with ejabberd, I mean, what else could possible handle the load? Come on people, as if the web front end has anything to do with twitter's particular technology challenges. May 1st, 2008 at 2:13 pm PDT A default install of PHP isn't the best thing in the world, but once you tweak some settings and add a few extensions like eAccelerator, it's real fast. Clicky's tracking server handles almost 20 million hits per day to PHP, and it's far from top of the line. I realize Twitter would have quite a bit more traffic than that, but the point is that 20M/day is still a LOT of traffic, and PHP does it without a sweat. May 1st, 2008 at 2:14 pm PDT @30 - Eric: Multithreading and application scaling - at the server farm level - have pretty much nothing to do with each other. One might almost argue *against* that approach, as the 'shared nothing' approach of PHP has been proved as scalable as any other approach out t...