That is the question... I had a conversation with a few guys from our local Java Users Group about PHP, Ruby, (scripting languages in general) vs. compiled languages. I have a background in both so I had some strong opinions and thought I'd jot some of them down.
First off, I am of the opinion that scripting (dynamic) languages and compiled languages have their own respective places in programming. There are good and bad languages out there and whether or not they are compiled doesn't enter that argument. People calling scripting language users "hacks" is ridiculous. This is most likely coming from someone having done compiled language development all their career. The one time they tried scripting something, they got bit by the loss of type safety or could not "refactor" or something along those lines. We mock that which we don't understand...
The fact is, scripting languages give you more flexibility, but with that comes responsibility. I worked in a group that did scripting for Web stuff and we had TONS of code, no IDE (just vi) and had successful "deployments" all the time. You have to know what you are doing when you start messing with a scripting language code base. Now if you start mucking with some code written in Java, you can use an IDE to help you along the way. I think it much easier to get your feet wet in Java once you understand OO due to the great IDE's out there that will help you. But once you get going with PHP or Ruby... you can fly, and your development becomes more agile due to the flexibility an interpreted language gives you.
I write code in a few languages, compiled and dynamic... and the bottom line is: the code you write is really just a dumbed down human version of instructions, it's documentation. A compiler (at some point) interprets your mess and sometimes through more conversions finally makes something the computer can understand. You can't argue which is better unless you are talking about a specific problem domain with all else equal.
Happy coding!
Wednesday, December 20, 2006
Friday, December 8, 2006
Trying new setup…
So I heard about NginX and figured I'd give it a try. The setup for NginX (pronouced engine X) was a breeze. I have a few Mongrels running behind it and things seem to be going pretty well at the moment. I still would soo much like to see a nice packaged server solution for Rails running in a multi-threaded environment. YARV, hurry up! :)
Friday, December 1, 2006
Benefits of Ruby
For me, one of the real benefits so far is getting me back into the C world... I've been away for some time doing Java mostly so it's fun to get back into the swing of things.
I've just recently found the YARV project. From what I have seen so far, it appears to be working toward a multi-threaded version of Ruby which makes me very happy! Ruby is a very cool language and serves a good purpose. Rails is wonderful for getting things off the ground soo quickly... but in today's web world, non-thread safe languages pose a few barriers.
These barriers can definately be overcome (and are everyday) but the web is a multi-threaded world... if YARV does push Ruby into the MT way of things, I think it will only serve to boost the already crazy swirl surrounding the Ruby/Rails phenomenon.
I've just recently found the YARV project. From what I have seen so far, it appears to be working toward a multi-threaded version of Ruby which makes me very happy! Ruby is a very cool language and serves a good purpose. Rails is wonderful for getting things off the ground soo quickly... but in today's web world, non-thread safe languages pose a few barriers.
These barriers can definately be overcome (and are everyday) but the web is a multi-threaded world... if YARV does push Ruby into the MT way of things, I think it will only serve to boost the already crazy swirl surrounding the Ruby/Rails phenomenon.
Sunday, November 26, 2006
The right place at the right time…
I had to replace the glass in one of my patio doors so I went up to Home Depot like any other average "think I'm a handy man" joe would do to try to buy a replacement. They don't carry replacement panes in stock, of course, so I had to order one which would run me approx. $96 dollars and would not come in for another 6 to 10 biz days.
We put up with the broken glass patiently awaiting the arrival of the replacement which eventually came in. I get the glass home, removed the broken piece and begin to lift the replacement into place... you can see it coming can't you... it didn't fit!!! It was too big! I was extremely upset to say the least. I took the "no good to me" glass pane back to Home Depot where I argued with the service department about who's fault it was and finally got my money back.
I decide to try my luck with Lowes which is farther from my house. I mentioned the situation to folks at the door department and asked what my options are... he replied "could be very good". Apparently someone had ordered a replacement pane for their patio door but had ordered the wrong size as well. I walked out of there with the replacement for $20!!!
I wonder if the person who's glass I got went to Home Depot and bought the pane I ordered... nice way to save some money! :)
We put up with the broken glass patiently awaiting the arrival of the replacement which eventually came in. I get the glass home, removed the broken piece and begin to lift the replacement into place... you can see it coming can't you... it didn't fit!!! It was too big! I was extremely upset to say the least. I took the "no good to me" glass pane back to Home Depot where I argued with the service department about who's fault it was and finally got my money back.
I decide to try my luck with Lowes which is farther from my house. I mentioned the situation to folks at the door department and asked what my options are... he replied "could be very good". Apparently someone had ordered a replacement pane for their patio door but had ordered the wrong size as well. I walked out of there with the replacement for $20!!!
I wonder if the person who's glass I got went to Home Depot and bought the pane I ordered... nice way to save some money! :)
Saturday, November 25, 2006
So what’s this Ruby thing all about…
OK, I've broken down and am looking into the Ruby thing.
First thoughts, love the syntax, great to be back in scripting environment again after years away, love gems (cpan rip-off but very nice), hate the fact that Ruby is not thread-safe... yet???
In all, Rails is what brought me to this. I like the way things are convention over configuration...
I've only just started, have some ideas I want to try out... we'll see, just having fun for now... ;)
First thoughts, love the syntax, great to be back in scripting environment again after years away, love gems (cpan rip-off but very nice), hate the fact that Ruby is not thread-safe... yet???
In all, Rails is what brought me to this. I like the way things are convention over configuration...
I've only just started, have some ideas I want to try out... we'll see, just having fun for now... ;)
Subscribe to:
Posts (Atom)