I'm making a website that relies on MySQL. According to 90% of programmers, php is an atrocity that most people would rather hit a baby than use. So what should I use instead for serverside/SQL projects?
As I have said in another thread. except it had to do with forum software, choose the language that is "best" for you and your project. At the end of the day it's all about what you know and are comfortable using. What may be the "best" language for you may not be the "best" language for me or someone else to use.
[QUOTE=Wymoree;40459657]As I have said in another thread. except it had to do with forum software, choose the language that is "best" for you and your project. At the end of the day it's all about what you know and are comfortable using. What may be the "best" language for you may not be the "best" language for me or someone else to use.[/QUOTE]
this. just whatever you do, don't use php
[editline]1[/editline]
woop, bad joke I guess
[QUOTE=Wymoree;40459657]As I have said in another thread. except it had to do with forum software, choose the language that is "best" for you and your project. At the end of the day it's all about what you know and are comfortable using. What may be the "best" language for you may not be the "best" language for me or someone else to use.[/QUOTE]
I meant this thread to also be a general debate over commonly used languages to get an idea of what to pick. I started programming with python originally, but I'm just a basic user because I moved on to java and now c++. I know a bit about PHP too (setting up Databases, retrieving tabular data and embedding it into HTML etc.), but again just basic understanding. Feel free to post what language you prefer best and why. Also, learning resources are appreciated as well.
[QUOTE=dr.dray_7;40459352]I'm making a website that relies on MySQL. According to 90% of programmers, php is an atrocity that most people would rather hit a baby than use. So what should I use instead for serverside/SQL projects?[/QUOTE]
Ruby on Rails is a godsend.
[QUOTE=Soleeedus;40459764]this. just whatever you do, don't use php[/QUOTE]
Imo you do not have the right to say that.
Especially not since you said in another thread that you haven't even touched PHP. Sure PHP might not be the best language to use these days for web development. But saying that something is shitty without using it first is just bad.
That's like saying hippos are dangerous and saying this because you've read it in some book - that if they get provoked they might bite your head off.
And still, hippos are not dangerous. Not unless you're an asshole towards them.
As far as I know (AND GODDAMNIT ALL YOU PHP HATERS, get out. It's a language, it can do basic 'easy' depending on the case)
PHP = Light programs
Ruby on Rails = For anything that is gonna be used for more than 75 people at a time or is just in general a 'complicated' project.
[QUOTE=Killervalon;40464184]
PHP = Light programs
[/QUOTE]
Correct, PHP should only be used for "light" programs, like Facebook and Yahoo.
[QUOTE=mechanicalocean;40464856]Correct, PHP should only be used for "light" programs, like Facebook and Yahoo.[/QUOTE]
Just because it's used doesn't mean it's meant to be used.
[QUOTE=Killervalon;40465501]Just because it's used doesn't mean it's meant to be used.[/QUOTE]
Stating that PHP is not a language to use if you want your application to support more than 75 people at a time is just spreading misinformation.
PHP is not a perfect language, but if you write your application properly, use decent hardware, and just generally know what you're doing, it will function wonderfully.
I wouldn't even use PHP for small apps, Ruby and Sinatra would be my go-to there.
[QUOTE=mechanicalocean;40465620]Stating that PHP is not a language to use if you want your application to support more than 75 people at a time is just spreading misinformation.
PHP is not a perfect language, but if you write your application properly, use decent hardware, and just generally know what you're doing, it will function wonderfully.[/QUOTE]
To be fair, facebook had to do some serious shit to get PHP to scale to the size they needed. Like [url=http://en.wikipedia.org/wiki/HipHop_for_PHP]converting it to C++[/url].
No one is denying that PHP will work and can be used to develop good applications. It's still sloppy and janky though, all the inconsistencies (function naming, parameter orders, etc) in the standard library is enough of a reason to not use it. I don't want to have to open the docs constantly just to remember if they decided to do str_to_caps, strtocaps, str2caps, or str_2_caps on whatever function I'm using, and I think it's silly to have to remember naming conventions on a function-by-function basis.
[editline]29th April 2013[/editline]
[QUOTE=dr.dray_7;40459773]I meant this thread to also be a general debate over commonly used languages to get an idea of what to pick. I started programming with python originally, but I'm just a basic user because I moved on to java and now c++. I know a bit about PHP too (setting up Databases, retrieving tabular data and embedding it into HTML etc.), but again just basic understanding. Feel free to post what language you prefer best and why. Also, learning resources are appreciated as well.[/QUOTE]
If you already know python, check out Django and Flask. They're both pretty popular python web frameworks. Flask is more light weight, Django is more powerful.
So what language would you recommend for a project like storing/retrieving game data from gmod (ranks kills playtime etc) in a database hosted on my site. I'm kind of interested in python, because of it's familiar structure. However, I have a few more questions, sorry. Python or PHP for these types of projects? If python, how commonly used is it by other developers? Last, any significant advantages in using python over PHP? Thanks.
[QUOTE=dr.dray_7;40469611]So what language would you recommend for a project like storing/retrieving game data from gmod (ranks kills playtime etc) in a database hosted on my site. I'm kind of interested in python, because of it's familiar structure. However, I have a few more questions, sorry. Python or PHP for these types of projects? If python, how commonly used is it by other developers? Last, any significant advantages in using python over PHP? Thanks.[/QUOTE]
I would use ruby personally, but since you are familiar with python...
[QUOTE=KmartSqrl;40466708]If you already know python, check out Django and Flask. They're both pretty popular python web frameworks. Flask is more light weight, Django is more powerful.[/QUOTE]
Significant advantages are that you aren't writing PHP. Disadvantage is that deploying isn't as easy as just throwing some PHP files on a server. There's a lot of companies that make deploying ruby really easy, not sure about django or flask because I don't use python myself. I know both of those frameworks are fairly popular though.
I'm not shunning ruby, just why does everyone like it so much. The structure is so much different from python, c, java etc. Why do you like it?
[QUOTE=dr.dray_7;40470577]I'm not shunning ruby, just why does everyone like it so much. The structure is so much different from python, c, java etc. Why do you like it?[/QUOTE]
You could say the same about python.
[QUOTE=dr.dray_7;40470577]I'm not shunning ruby, just why does everyone like it so much. The structure is so much different from python, c, java etc. Why do you like it?[/QUOTE]
It's clean and it's really easy to write code that reads almost like english (which I think is a good thing because code is meant to be read by programmers, not computers)
I think the general consensus here is use either Python or Ruby.
[QUOTE=Killervalon;40464184]As far as I know (AND GODDAMNIT ALL YOU PHP HATERS, get out. It's a language, it can do basic 'easy' depending on the case)
PHP = Light programs
Ruby on Rails = For anything that is gonna be used for more than 75 people at a time or is just in general a 'complicated' project.[/QUOTE]
Rails is a framework for Ruby...
[QUOTE=rymn;40471987]Rails is a framework for Ruby...[/QUOTE]
Yes you doofus. The web based programming Ruby is RoR
[QUOTE=Killervalon;40475478]Yes you doofus. The web based programming Ruby is RoR[/QUOTE]
Or Rack or Sinatra or Padrino or Merb or any of these: [url]https://www.ruby-toolbox.com/categories/web_app_frameworks[/url]
[QUOTE=KmartSqrl;40466708]I wouldn't even use PHP for small apps, Ruby and Sinatra would be my go-to there. To be fair, facebook had to do some serious shit to get PHP to scale to the size they needed. Like [url=http://en.wikipedia.org/wiki/HipHop_for_PHP]converting it to C++[/url].No one is denying that PHP will work and can be used to develop good applications. It's still sloppy and janky though, all the inconsistencies (function naming, parameter orders, etc) in the standard library is enough of a reason to not use it. I don't want to have to open the docs constantly just to remember if they decided to do str_to_caps, strtocaps, str2caps, or str_2_caps on whatever function I'm using, and I think it's silly to have to remember naming conventions on a function-by-function basis.[editline]29th April 2013[/editline] If you already know python, check out Django and Flask. They're both pretty popular python web frameworks. Flask is more light weight, Django is more powerful.[/QUOTE] Hiphop does not convert anything to C++ anymore. It is actually a VM that converts it to bytecode and executes it JIT. It works similar to how ASP.NET/C# works in IIS and Mono just not using CIL like they do.Anyway I would look up Ruby on Rails or ASP.NET if you don't want to use PHP. I find Django too slow in comparison for some reason, guess I need to try out some alternative stacks/stackless but the whole whitespace nazi approach to python drives me insane.I tend to prefer ASP.NET to RoR, C# is just a lovely language.
[QUOTE=KmartSqrl;40478300]Or Rack or Sinatra or Padrino or Merb or any of these: [URL]https://www.ruby-toolbox.com/categories/web_app_frameworks[/URL][/QUOTE]
I just meant out of the two. I know there are others. But I should probaly have mentioned that. Sorry.
But really, you can program a website in pretty much everything. One of my friends did a Lua webserver for the heck of it.
So, how would I use ruby/python to retrieve data from a database and integrate it into html/css? I was actually considering using PHP for this, since it would be a small scale thing. However, I ran into this.[URL="http://me.veekun.com/blog/2012/04/09/php-a-fractal-of-bad-design/"]http://me.veekun.com/blog/2012/04/09/php-a-fractal-of-bad-design/[/URL]. So, obviously not going to use that anymore. Anyways, a tutorial or snippet for this would be incredible. Thanks guys.