![]() |
Quote:
. |
Yay I'm good, used !== FALSE even in some code from 2006 I checked. :thumbsup
Given the range of values functions can return it is always best to do proper checking. One huge problem that isn't as common but that I still see from time to time, is failing to prevent code injection. |
Quote:
Humans write in the language they know better, it is a fact that lots of 30+ years old adult site developers know PHP best, so they will use PHP, either good or bad way, depends by the human. MtGox was a PHP masterpiece :) If you ask me, I know C, C++, Java, Python and even Assembly better than PHP, in fact when I have to edit Konrad's PHP's (I will not comment lol), I need google and stackoverflow access "to be sure", or ping him in ICQ. If I have to do a web scraper, chat bot or mass mailer, I use Python - just because in PHP I would be slow and include bugs. I know also C, but it would be overkill, I wrote sites in C cgi's in 1990s just because I was lazy to learn Perl as I knew C from before: Perl guy in the company joked on my 10 pages of C code to make a web form, but for me it was easier than write 3 lines of Perl at the time. Arabic people find easier to write in Arabic than English, it depends by humans. If you ask most of the people in this thread, they'll use PHP for doing the same stuff I do in Python (and before I done in C). So who knows more Ruby will use Ruby and so on, my point it was on the future, long term, adult kept achored to PHP legacy code and developers. Do we have so many new young developers joining new adult business, except a few PHP guys hired to maintain old PHP code of old adult companies? The statement about 80% of sites use PHP it may be true, but of these, 1% are really custom new sites and 99% are very old sites or Joomla, WordPress, Drupal installs. My adult sites are in PHP, because based on older PHP cam scripts or tubes, but most of mine (and friend's) mainstream stuff is not PHP. My point it was: taking in consideration only the 100% custom new sites done from scratch, no simple CMS installs... ask a younger geek, wanting to do his cool stuff for free, or being funded some million dollar by venture capital guys, he (and his banker) may wish to use Ruby on rails, Node.js and fancy Scala, perhaps Python, all other than PHP. We talk of web development. If you take the TIOBE index: http://www.tiobe.com/index.php/content/paperinfo/tpci/ that is in general, include apps, in fact Objective C and C++ is high, that's not web sites - not good data source. A more web-oriented stat, also more young-oriented, it is github: https://github.com/search?q=NOT+bigboobs 545,532 JavaScript (that's lots of node.js on server) 444,109 Ruby 392,490 Java 275,635 Python 271,465 PHP (there C# is low for political reasons, but C# is actually cool and used in web). This is the mainstream ranking; PHP is the least used web language. Compare with adult (99% PHP, 1% C like CJ's and trafficholders), something is wrong. We all agree trained humans can write good PHP code (even if PHP it calls for bugs as it is conceinved), still in mainstream there is a real discussion "what language we use", while in adult there isn't. |
PS: A someone may have noted, I hate editing PHP myself. If you are a PHP guy making no bugs and available for hourly remote work, I may have some task to give. Anyone interested please write to info [at] tubecamgirl or info [at] chatgf . Understanding one or more of: wowza , node.js , Flash actionscript it is a plus. I don't pay in bitcoins.
|
Quote:
Quote:
Quote:
Quote:
Quote:
|
Quote:
ref : https://www.google.com/#q=find+string+in+variable+php 1st result: http://stackoverflow.com/a/10920750/1642018 2nd result: http://stackoverflow.com/a/4366748/1642018 |
Quote:
Correct is related to the questions asked though. If you use the code for something different than the question then you have to consider what may be different. |
Quote:
|
Quote:
blog.mailchimp.com/ewww-you-use-php Quote:
In fact, they're so dead set on using PHP that they're creating some of the best stuff to come out for PHP, HipHop VM, which is amazing, and more recently better type hinting and that in Hack, their PHP language. |
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Not to mention the next biggest site running on PHP is Wikipedia. And they don't use HHVM or Hack. All they use is a typical LAMP based stack.
mediawiki.org/wiki/Manual:Installation_requirements |
Basically what I am getting at here is: Don't discredit a perfectly good language because of a bunch of asinine developers who don't even make up 1% of the community, let alone the professional ones.
All languages have their strengths and weaknesses. It's all about picking the best one for your project and going with it. PHP, Python, Ruby, Lisp, Haskell, Java, JavaScript, or Brainfuck. The choice is yours. Make a smart decision. For the record I am a professional PHP developer working on a multi-million dollar company who's whole technology is built on top of the latest standards and best practices of PHP. Our system handles hundreds of thousands of dollars a month in transactions without so much as a hiccup. |
Quote:
And here is one funny pic regarding languages : http://vintage-digital.com/hefner/mi...rogrammers.jpg |
Welcome to the zoo, Bowser Koopa ...
|
Am I the only one annoyed by the fact haystack comes before needle :upsidedow
|
Quote:
Really, my sites was based on existing scripts, but ended up 80% different: one started from a tube script and ended as a cam site! This is starting from template (for ex. users db and backoffice admin), to build an unique product quicker. Time to market, want you launch a few sites now or one only years later? The main point of programming it is the code reuse, i.e. to produce the most results in least effort and time. You may write from scratch small specific tasks (you not find done by others with google search), but if there's a ready open source code, use it. Especially a cam site is product of teams of developers across years, hardly a single one, unless recycled pieces. If there's commercial code with source license for less $$ than the worth of you rewriting it, buy the code, and you're more smart than wanting to rewrite all from scratch. A guy can still demonstrate he can rewrite all from scratch, but this a no-profit activity, like "demo scene" or hack compos, the opposite of what commercial developer are supposed to do. More LEGO blocks a developer knows and compose together, quicker (cheaper) you solve problems, because you write the least code lines, just few glue between blocks others provided and tested: http://en.wikipedia.org/wiki/Code_reuse Why use Wordpress when you can rewrite it in PHP, and why to use PHP when you could use C. So 80% of the sites run wordpress, joomla, drupal, in turn made in PHP, in turn made in C, in turn calling libs calling OS (linux etc.) which calls firmwares calling assembly opcodes, in turn easier representation of binary numbers, ran by processor and chips. So the guy who write "all from scratch" should really send own binary opcodes to a CPU and hardware to simulate an operating system and web server and apps on top of it; anyone? While this example looks obviously silly, it helps to figure the "why don't you write all yourself" question: because it is not effective, but instead more expensive, at least in 2014, given there's so much free ready code you can't even keep updated on all of it. That was not the case in 1995 when I was writing sites, indeed, in C language, already was a big improvement from assembly I used before, but while this is cool to talk about in retrocomputing meetings, if you do sites as real job, you more likely do quick and cheap with PHP on the web, as long as you know PHP (and its frameworks), than in other ways. And in adult that's PHP-only due to historical reasons, in mainstream it is diversified. Said this, web development itself it is a mess, not just PHP, but for ex. Javascript (see: http://wtfjs.com ), Internet Explorer vs Firefox vs Chrome versions, and google SEO. SO in all this mess you can well overlook an !== FALSE or so. |
Quote:
|
Only if a monster triggers a trap..
|
Quote:
|
It really all depends on whether you are looking for a needle in a haystack or looking in a haystack for a needle.
It really does make perfect sense. Seriously. :helpme . |
Quote:
Array functions are $needle, $haystack String functions are $haystack, $needle |
Quote:
Several things which were not raised included: -- porn industry introduced a lot of innovations which are now used by other internet marketers; -- most PHP are self-taught, with almost no programming background other than HTML, Javascript and CSS (which are interpreted or script languages); -- most startups are small and remain small, and don't have the manpower, skill and training to go to any other language other than what is readily available; and -- and yes, most PHP code have errors due to the inherent weakness of the language, and then coded by people who don't know what happens when there's no validation. Bottom line people will still use PHP because they don't know anything else. Again, thanks for the heads up. Will keep that in mind when I'm debugging PHP code. |
Quote:
|
Quote:
|
Quote:
edit: I see this has already been pointed out.:thumbsup Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
stripos(needle=$input, haystack=$pile); stripos(haystack=$pile, needle=$input); :1orglaugh Or why not just make something that regular people understand like Find $this in $that; Too much like COBOL I guess, tech people feel too "untechy" when using COBOL. :1orglaugh |
Quote:
It's very obvious to me that you are one of the few out there who believes in doing things the right away, according to style guides, PSR, etc. That's awesome, and I sincerely applaud you for that. These are things I also care about, and it frustrates me when I read others' code which is inconsistent, messy, or overly complicated without reason. However, Scala and Java have their own pros and cons, and my experience has been positive. We are working on some large-scale applications and the decision to use Scala has been paying off. The JRE is portable, eliminates (in many cases) some extra overhead (web server, e.g. massive .htaccess files), and gives us almost out of the box a very scalable, stateless environment that can expand and contract effortlessly. It's really about using the best tool for the job. I still write a lot of PHP and I still endorse it for certain projects. |
Quote:
Quote:
Quote:
Often, it's more important that someone else can work with your code, than the language being a better choice for X, Y, or Z reason. |
That's some shitty code...
|
Wow good stuff, php is growing with it's popularity. Hopefully the coders will grow as well.
|
Quote:
|
Quote:
My convictions for one language over another are limited to the scope of the project. PHP's ubiquity makes it the most attractive language in many cases, but not all, at least for my needs. My caution to anyone looking to begin a project is to pick the best language/platform/environment for the job and consider all the variables. You're right that adult doesn't handle interesting problems most of the time. Pretty much anything can be done in the LAMP stack. |
Quote:
|
All times are GMT -7. The time now is 05:15 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123