PHP Refugees
What language did you move to?
|
You mean from PHP to or to PHP from ?
|
I'm rather fond of Python these days, but most of our stuff is PHP.
|
I've been doing less and less PHP over the last couple of years. Most of my backend stuff is Perl and my new frontend stuff is Pyton/Django.
|
PHP is a very popular script. A lot of people sure use it on the internet. Many traffic trading scripts are PHP.
|
Quote:
wow, sounds great! where can I buy PHP ? |
It looks like PHP 6.0 might not suck. Still, PHP 5.0 sucks enough that we do most things in Perl if not C. The Perl 6.0 design is awesome, but we'll se if it's ever released.
|
I do like this quote:
"“Recalling the exact syntax for the built-in stab() function, you make a sane assumption and call shoot(GUN, FOOT); The foot shoots your gun.” — Some user who calls theirself “plams” on the Something Awful Forums" |
Why does pHp suck? Just curious... I know it because most shit out there is php so its good to know...
|
ruby/rails.
|
Moving to python myself. So much more powerful, and not that hard to learn coming from PHP. :2 cents:
Although I'll keep using PHP as well most likely, as it works well for simpler projects. |
Quote:
|
Quote:
Hmm I think you may be too new to GFY to know that though? |
Use PHP and ColdFusion.
I prefer coldfusion but php is more popular withblogs, commerce, etc. There is a custom tag where you can mix the two together which would be cool. |
Was picking up some Ruby skills (not Rails), and enjoyed it. Going to get familiar with Python.
|
Quote:
I love Python, the Django framework is great , applications are superfast to develop. However most of our stuff is written in PHP simply for legacy reasons, there's no good reason to go and rewrite everything in another language so we don't. |
Well if i would have to use other language then it would be java.
|
Quote:
|
Perl. learned perl long before php and while I do use php for certain things, 90% of what I do, I do in perl.
|
Quote:
|
Quote:
|
Quote:
|
Quote:
I like Rails more than Django because the template system (ERB) is cleaner and Ruby gems makes development easier. Django has an admin but I'm usually doing maintenance in a terminal. When I do Python web development these days I'll use Web2Py. |
Quote:
|
Quote:
|
Quote:
There are some things that PHP can do with four different functions that all do the same thing, do_it(), DoIt(), itDoto(), and it.do(), which Perl just uses one operator for. |
Quote:
There's WHY it sucks, and HOW it sucks. For HOW it sucks, Google will bring up a million good pages. As to WHY it sucks, it sucks because it was never supposed to be a programming language from the beginning. It was designed as a blog/templating system, written in Perl. It wasn't designed as a good programming language because it wasn't designed as a programming language at all. When people starting using it as if it were a programming language, they started adding programming-like functions, but skipped the design step. That resulted in things like cat_walk() and dog_walk(), but personWalk(). ( Perl would just have walk(). ) An exerpt from the PHP documentation is illustrative: Quote:
|
PHP with jquery works just fine...
|
perl, FTW.
Oh, and I'm loving using jquery for front-end stuff. |
|
Quote:
|
Quote:
|
Quote:
|
Compiled EMCA.
|
well I only know html, css and php all self taught mind you and I build some cool ass shit! so blah... thinking about ruby/rails though but its not on w3schools and their shit is soooo easy to follow.
|
Quote:
http://railsforzombies.org/ |
I still use PHP for the majority of my websites, although I've recently started using C for non realtime / backend stuff.
Over the past few months I recoded an application that needed 400 different PHP processes consuming a total of about 2GB of RAM, into a single internally threaded C app that consumes <100MB. Internet bandwidth is now the limiting factor, rather than RAM and CPU utilisation. |
Quote:
|
Quote:
|
Quote:
|
I really respect people who learn new skills. Learning complex subjects like computer science takes a lot of dedication, so I do respect those who say:
Quote:
It's awesome when people learn a bit of PHP so they can solve simple problems for themselves. It's bad when those people pretend to be qualified software engineers and sell really crappy software for complex systems to others. |
People who go to school will always rag on those who don't... Don't hate...
|
Quote:
http://ruby.learncodethehardway.org/book/ |
Quote:
What I am saying is simply that PHP has allowed a lot of people to do a little scripting and the web and adult in particular doesn't always distinguish between people who picked up some PHP vs qualified software engineers. To design software well, you almost have to have experience with at least one high level language and one low level. To design scalable software, you need to know systems. Database architecture is a science itself, which includes relational algebra and calculus as subcomponents. If you're self taught, cool. I'm largely self taught in that I read the books and I speak with the experts independent of any college class. The books I read include the works of Codd and Date because in order to use relational databases PROFESSIONALLY, you need to understand relational algebra. To design them correctly, you need to know relational calculus. How you learn it doesn't matter, but these things make the difference between a professional and an amateur. PHP reminds me of Lego. Like PHP, Lego is easy and you can build cool stuff with Lego, without knowing much about mechanical engineering. Just don't confuse a Lego device with a professionally fabricated item. |
i like how people who know "low level" stuff always try to rip on php coders. how many of the web's largest sites are written in pure C, or Perl, rather then PHP. how many of the most used web apps are written in php? wordpress, drupal, joomla, this forum, nats, flickr... the list is endless, so much of whats on the web most people use all day is in PHP. i believe LAMP is landing more hits a day and servicing more requests then any other stack out there.
PHP is a perfectly fine language as long as you learn to secure it properly and optimize it. I remember a day when Perl was considered easy and lots of people wrote really bad form mailer scripts they picked up on the web somewhere... this led to trillions of unsolicited emails due to poor security. ;) @raymor, i agree that high end math skills help, when you are writing code for companies like google. most web companies do not require such skills, lets be realistic. as for php having multiple ways to do things... i dont really see that as an issue. i think these arguments go both ways... its not he bike, its the rider. to each his own, i like PHP, Perl and shell script, but I believe they all have their own place. |
Quote:
There's nothing wrong with PHP (well I'm not a big fan of $ and -> syntax) but there's everything wrong with the programmers who use it. PHP is far too easy to start using. <?php and ?> in a .php file and through it on a server, run it, that's it. Django and Rails on the other hand are much harder to use. Sure there are build a blog in 5 mins screencasts, but deploying those in a production environment isn't as simple as uploading the files to the server. Finally, the internet is polluted with awful PHP tutorials and snippets that allow SQL injection and XSS. Not that you can't do that in Rails and Django. |
Quote:
|
|
Quote:
|
Quote:
As far as low level versus high level, I said a professional programer should know at least one high level language and one low level. The big sites that use PHP use PHP written by programmers who understand what it's doing at a low level. That is, they could translate the PHP to C, they picture what the C or assembler would look like, and therefore know WHY some algorithms are good and others bad. For example, I have a function in a very high level language - a rewrite rule in .htaccess. I know that rule only calls the stat() system call, and I know what stat() does in assembly, so I know it's fast. I write efficient .htaccess by understanding how that's translated to assembler. If I had no experience in C or assembler, my .htaccess wouldn't be nearly as efficient. Regarding high level math, a relational database management system such as MySQL is a calculator for doing relational algebra. That's all MySQL is - a calculator. If you have no understanding of what relational algebra is, you won't be very good at doing relational algebra using MySQL. How many PHP scripters don't know that MySQL in a RDMS? If you don't even know what it IS, how well are you going to design schemas for it? Not well at all, obviously. MySQL is a tool for managing relational databases, but many scripts create things in MySQL that are not in fact re relational databases, so the scripts suck and break in various ways. Trying to design a MySQL database without knowing what a relational database IS is like designing a CMS without knowing what a web site is. |
All times are GMT -7. The time now is 10:16 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc