GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Programmers: do you code with Ruby ? (https://gfy.com/showthread.php?t=786568)

Zester 11-22-2007 12:15 AM

Programmers: do you code with Ruby ?
 
or Ruby on Rails or whatever it's called ?
if you had any of the specified choices for coding small things (e.g: retrieving some data from an SQL server database and generating HTML from it) which one will you choose ?

leave fucking .NET and java for a second

Zester 11-22-2007 04:47 AM

http://www.gtaust.com/filter/04/images/bump01.jpg

GrouchyAdmin 11-22-2007 04:49 AM

You tend to use what you know. Ruby's great for some things, shitty for others. Same for Perl and PHP. You either use the language you have, or you're proficient enough to do what you want with the language available.

That said, I'm a bit disturbed by how quickly I can shit out "throwaway" or simple things in PHP these days

Zester 11-22-2007 06:27 AM

the thing is I just can't see what Ruby is doing better than PHP when it comes to the small things.
but then again I don't know much about ruby

FlowerKid 11-23-2007 04:56 PM

PHP and MySQL is a good combination for small up to bigger web projects.

AcidMax 11-23-2007 05:15 PM

Ruby is to slow. The only thing Ruby would be good for is administrative , non-high-traffic backends. I have myself moved completely away from PHP for much more robust and faster languages.

StuartD 11-23-2007 05:19 PM

Quote:

Originally Posted by AcidMax (Post 13411828)
Ruby is to slow. The only thing Ruby would be good for is administrative , non-high-traffic backends. I have myself moved completely away from PHP for much more robust and faster languages.

Which do you prefer and why?
I'm thinking that next year I'd like to expand and would love some suggestions feedback on where best to set my sights.

AcidMax 11-23-2007 05:29 PM

Quote:

Originally Posted by StuartD (Post 13411843)
Which do you prefer and why?
I'm thinking that next year I'd like to expand and would love some suggestions feedback on where best to set my sights.

Just read your thread, man you got alot going on. Good luck to you.

As far as what I recommend I have switched to Python. Python runs much faster than PHP, and instead of loading,parsing each PHP page on each request you can run Python in an application server. This way all the code is loaded into memory 1 time at start. Not to mention its threading. It has just become a much better system to use, while its not as easy to deploy etc., the code is faster. The biggest problem with Python itself is the fact that most hosts don't support it (unless you have a dedicated server). I have seen to many changes in PHP, and their lack of wanting to be backwards compatible is frustrating. 5.x is not compatible with 4.0 and it appears that possibly future 5.x versions wont be compatible with previous 5.x versions. Most of the last sentence is rumor mostly, so take it with a grain of salt.

sysk 11-23-2007 05:44 PM

I have nothing against RoR, but I must admit I'm a big PHP adept :)

This is an interesting article:
7 reasons I switched back to PHP after 2 years on Rails

StuartD 11-23-2007 05:58 PM

Quote:

Originally Posted by AcidMax (Post 13411893)
Just read your thread, man you got alot going on. Good luck to you.

As far as what I recommend I have switched to Python. Python runs much faster than PHP, and instead of loading,parsing each PHP page on each request you can run Python in an application server. This way all the code is loaded into memory 1 time at start. Not to mention its threading. It has just become a much better system to use, while its not as easy to deploy etc., the code is faster. The biggest problem with Python itself is the fact that most hosts don't support it (unless you have a dedicated server). I have seen to many changes in PHP, and their lack of wanting to be backwards compatible is frustrating. 5.x is not compatible with 4.0 and it appears that possibly future 5.x versions wont be compatible with previous 5.x versions. Most of the last sentence is rumor mostly, so take it with a grain of salt.

Thanks.. yeah, at the beginning of the year I was all gung-ho about trying to branch out.... it obviously didn't happen. So now I'm thinking once we get the routines down with the newborn and my wife is back on her feet, I can take up the charge once again.

Thanks for the suggestion, I hadn't even considered python before to be honest. Not sure why but I'm going to do some reading and keep it in mind when I finally do have the time. :thumbsup

draude 11-23-2007 08:36 PM

just use mysql and php

justFred 11-23-2007 08:55 PM

Quote:

Originally Posted by sysk (Post 13411951)
I have nothing against RoR, but I must admit I'm a big PHP adept :)

This is an interesting article:
7 reasons I switched back to PHP after 2 years on Rails


never really looked into ruby AT ALL yet, this was an interesting read, which makes me want to at least investigate the language.

Although I'm diving into SQL and XML at the moment (and PHP as a core language.) I want to learn a little of everything. So far I've used: logo, basic, C++, html, CSS, JavaScript, PHP, and SQL. PHP is my favorite language out of these.

Quote:

PROGRAMMING LANGUAGES ARE LIKE GIRLFRIENDS: THE NEW ONE IS BETTER BECAUSE *YOU* ARE BETTER
heh, yeah. true in both cases.

kovacs 11-23-2007 09:24 PM

I use php and mysql because it's what I know and it's readily available at every host. I've been looking into python and it seems easier to structure a large program and has a much better built in library, but I can't really see myself moving away from php at this stage... Too much work already invested in a php platform.

Zester 11-24-2007 02:10 AM

Quote:

Originally Posted by AcidMax (Post 13411828)
Ruby is to slow. The only thing Ruby would be good for is administrative , non-high-traffic backends. I have myself moved completely away from PHP for much more robust and faster languages.

I thought you were talking about Ruby being slow ? how did PHP get in the negative side of the picture ?

teg0 11-24-2007 08:06 AM

php because it has a much larger community. You can also use cakephp and get a lot of the same functionality of the ruby on rails framework.

Babaganoosh 11-24-2007 08:32 AM

I use Perl for any kind of parsing or back end script/admin script. I use PHP for dynamic content. I toyed with Ruby earlier this year and really wasn't a fan. Python looks promising but I honestly haven't jerked with it much. I think if I wanted to branch out I would go with Python.

polle54 11-24-2007 08:46 AM

Quote:

Originally Posted by FlowerKid (Post 13411757)
PHP and MySQL is a good combination for small up to bigger web projects.

I second that

I use PHP/Mysql for adult projects on linux servers

In terms of big business I use windows servers and ASP.NET with sql 2005 servers.
It's easier to structure your code correct if it's a huge complicated system.

Designpatterns are much easier integrated. Typically .NET applications are strong when you use Facade with Interfaces and Gateway patterns to make a clean cut to the Database and seperate business layer and UI.

Summery of my use:

PHP/Mysql
- for small projects
- Big projects on Linux

ASP.NET
- Huge commercial applications with maybe 7-15 solutions and 200+
codefiles.

Ruby:
- I only use it for fun so far.

Perl:
- Never learned it properly.

Babaganoosh 11-24-2007 09:48 AM

This thread made me decide to mess with Python today. It's cold and shitty outside and I don't have anything to do. I've been messing with Python for about an hour now and so far I am digging it. If you're a programmer, check it out. It's surprisingly fun in a geeky kind of way.

psili 11-24-2007 12:46 PM

I did a couple of small projects in the RoR framework (two websites and a WAP CMS and site creation utility) and was amazed at how fast it was to setup: Run a command that builds the application folder structure and framework. Model your database and setup connection parameters. Run the scaffold command and voila - you've got basic views and controllers accessing your database without coding a thing. Never tested the projects in a high-availability website, but it seems you can just cluster a couple of mongrel servers front-ended by apache's mod_proxy to properly handle requests.

Anyway, that's what I got out of that. At least for prototyping, I liked it a lot. *shrug*

AcidMax 11-25-2007 04:24 PM

Quote:

Originally Posted by Zester (Post 13412991)
I thought you were talking about Ruby being slow ? how did PHP get in the negative side of the picture ?

Because , compared to Python, PHP is slow. Out of the only languages I consider viable for web use (c can be, same with java but compiling is annoying), Python is the fastest.

http://www.timestretch.com/FractalBenchmark.html

Zester 11-26-2007 02:00 AM

Quote:

Originally Posted by AcidMax (Post 13419298)

fuck me php is slow...but Roby IS slower...


All times are GMT -7. The time now is 05:56 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123