Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 06-02-2014, 01:32 PM   #51
Klen
 
Klen's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
Quote:
Originally Posted by Bowser Koopa View Post
Weird, I know many mainstream startups in the past 3 years who use PHP. MailChimp for one. Not to mention my own startups.

blog.mailchimp.com/ewww-you-use-php



No, Facebook isn't in PHP because Zuck was a PHP programmer. Zuck was also a perl programmer, but Facebook isn't in perl now is it? Despite all that, after the original PHP code was leaked, they completely rewrote the system from the ground up back in the earlier days, before their current scale... They had some and still do of the best programmers in the world working for them, if they wanted to switch to something else they could have.

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.
Well maybe other programmers which worked with Zuck on facebook were php only ?
Klen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-02-2014, 01:42 PM   #52
edgeprod
Permanently Gone
 
Industry Role:
Join Date: Mar 2004
Posts: 10,019
Quote:
Originally Posted by KlenTelaris View Post
Well maybe other programmers which worked with Zuck on facebook were php only ?
Why are we making wild assumptions here?
edgeprod is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-02-2014, 01:44 PM   #53
Klen
 
Klen's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
Quote:
Originally Posted by edgeprod View Post
Why are we making wild assumptions here?
Nobody can actually know what was real reason anyway so assumption is only thing what you can do.
Klen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-02-2014, 01:48 PM   #54
edgeprod
Permanently Gone
 
Industry Role:
Join Date: Mar 2004
Posts: 10,019
Quote:
Originally Posted by KlenTelaris View Post
Nobody can actually know what was real reason anyway so assumption is only thing what you can do.
Why do you say that? Engineers from Facebook have done interviews about it; search Google. Besides, I still don't see what the point is: are you running a site the size of Facebook? Then it shouldn't be in PHP, unless you implement the technology they have to mitigate PHP's shortcomings when it approaches massive scale. If not, then why does it matter? It's good enough for 80%+ of the web.
edgeprod is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-02-2014, 02:34 PM   #55
dicknipples
Formerly known as Lensman
 
Industry Role:
Join Date: May 2014
Location: Chicago, IL
Posts: 654
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
dicknipples is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-02-2014, 02:36 PM   #56
dicknipples
Formerly known as Lensman
 
Industry Role:
Join Date: May 2014
Location: Chicago, IL
Posts: 654
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.

Last edited by dicknipples; 06-02-2014 at 02:38 PM..
dicknipples is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-02-2014, 02:37 PM   #57
Klen
 
Klen's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
Quote:
Originally Posted by Bowser Koopa View Post
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.
My choice is PHP, dont know for others lol
And here is one funny pic regarding languages :

Last edited by Klen; 06-02-2014 at 02:41 PM..
Klen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-02-2014, 02:49 PM   #58
CaptainHowdy
Too lazy to set a custom title
 
CaptainHowdy's Avatar
 
Industry Role:
Join Date: Dec 2004
Location: Happy in the dark.
Posts: 93,519
Welcome to the zoo, Bowser Koopa ...
__________________
Tjeezers.cam plus all sites $12.000,00.
Transfer within 24 hours.
CaptainHowdy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-02-2014, 06:21 PM   #59
Varius
Confirmed User
 
Industry Role:
Join Date: Jun 2004
Location: New York, NY
Posts: 6,890
Am I the only one annoyed by the fact haystack comes before needle
__________________
Skype variuscr - Email varius AT gmail
Varius is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-02-2014, 06:21 PM   #60
adultmobile
No, I am not banned
 
adultmobile's Avatar
 
Industry Role:
Join Date: Nov 2003
Location: ChatGF.com
Posts: 5,345
Quote:
Originally Posted by Mutt View Post
You sound like you're an expert coder - why did you use off the shelf cam scripts rather than doing it yourself?
Expert people are effective, and so do not re-invent the wheel. Also "coder" is generic, for example the developer of a 3d videogame may be unable to write an easy web site, and vice-versa - it is even hard to find a single person able to write both iOS and Android apps, or a single developer using well 2+ languages, so much different info it needs to be known.

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.
__________________

TubeCamGirl.com
adultmobile is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-02-2014, 06:24 PM   #61
dicknipples
Formerly known as Lensman
 
Industry Role:
Join Date: May 2014
Location: Chicago, IL
Posts: 654
Quote:
Originally Posted by Varius View Post
Am I the only one annoyed by the fact haystack comes before needle
Nope, because I use a proper IDE/Editor that has code completion on both a language and project level.
dicknipples is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-02-2014, 06:24 PM   #62
RyuLion
 
RyuLion's Avatar
 
Industry Role:
Join Date: Mar 2003
Location: San Diego
Posts: 32,243
Only if a monster triggers a trap..
__________________

Adult Biz Consultant A tech head since 1995
RyuLion is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-02-2014, 07:30 PM   #63
edgeprod
Permanently Gone
 
Industry Role:
Join Date: Mar 2004
Posts: 10,019
Quote:
Originally Posted by Varius View Post
Am I the only one annoyed by the fact haystack comes before needle
The annoying part is that it's inconsistent. In other built-in functions, it's reversed. *twitch*
edgeprod is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-02-2014, 07:53 PM   #64
sarettah
see you later, I'm gone
 
Industry Role:
Join Date: Oct 2002
Posts: 14,108
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.



.
__________________
All cookies cleared!
sarettah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-02-2014, 08:33 PM   #65
dicknipples
Formerly known as Lensman
 
Industry Role:
Join Date: May 2014
Location: Chicago, IL
Posts: 654
Quote:
Originally Posted by edgeprod View Post
The annoying part is that it's inconsistent. In other built-in functions, it's reversed. *twitch*
Here's a little tip to help you remember:

Array functions are $needle, $haystack

String functions are $haystack, $needle
dicknipples is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-02-2014, 08:33 PM   #66
sobecash
Confirmed User
 
Industry Role:
Join Date: Jul 2012
Location: Miami
Posts: 285
Quote:
Originally Posted by edgeprod View Post
Interesting; thanks for that article. It definitely gives some food for thought. It's always nice to hear from the "been there, done that" crowd about what decisions they made, and why.
Lengthy thread, well worth the read. There were some points I was waiting for a quote from "The Mythical Man-Month".

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.
__________________
Guillermo
ICQ 46 662 587 / guillermo[at]sobecash[.]com
Sobecash Winner of the "Best Affiliate Program" Award 2015 by Cybersocket

www.sobecash.com
SITES NETWORK:
www.dallasreeves.com
www.zebatlas.com
www.wankthis.com
www.blacknhung.com
www.finestlatinos.com
www.barebacktime.com
sobecash is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-02-2014, 08:43 PM   #67
dicknipples
Formerly known as Lensman
 
Industry Role:
Join Date: May 2014
Location: Chicago, IL
Posts: 654
Quote:
Originally Posted by sobecash View Post
-- 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.
I disagree. Anybody who's anybody worth anything in the PHP development world are firm followers of the PHP-FIG standards, and basically call phptherightway.com their manual. I personally will not work with, or hire anyone to join my team who does not follow those proper rules and guidelines.
dicknipples is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-02-2014, 09:45 PM   #68
edgeprod
Permanently Gone
 
Industry Role:
Join Date: Mar 2004
Posts: 10,019
Quote:
Originally Posted by Bowser Koopa View Post
I disagree. Anybody who's anybody worth anything in the PHP development world are firm followers of the PHP-FIG standards, and basically call phptherightway.com their manual. I personally will not work with, or hire anyone to join my team who does not follow those proper rules and guidelines.
We enforce them at LeadWrench right now.
edgeprod is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-03-2014, 05:07 AM   #69
rowan
Too lazy to set a custom title
 
Join Date: Mar 2002
Location: Australia
Posts: 17,393
Quote:
Originally Posted by Varius View Post
Am I the only one annoyed by the fact haystack comes before needle
IIRC with some functions it's haystack,needle and in others it's needle,haystack. No one ever complimented PHP for being consistent.

edit: I see this has already been pointed out.

Quote:
Originally Posted by edgeprod View Post
The annoying part is that it's inconsistent. In other built-in functions, it's reversed. *twitch*
rowan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-03-2014, 07:36 AM   #70
dicknipples
Formerly known as Lensman
 
Industry Role:
Join Date: May 2014
Location: Chicago, IL
Posts: 654
Quote:
Originally Posted by rowan View Post
IIRC with some functions it's haystack,needle and in others it's needle,haystack. No one ever complimented PHP for being consistent.
Actually, even with that it's still pretty consistent, like I stated before, Array functions are $needle -> $haystack, and String functions are $haystack -> $needle
dicknipples is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-03-2014, 10:50 AM   #71
thumbuilderic
Just some porn guy
 
thumbuilderic's Avatar
 
Industry Role:
Join Date: Aug 2012
Location: LA
Posts: 365
Quote:
Originally Posted by edgeprod View Post
The annoying part is that it's inconsistent. In other built-in functions, it's reversed. *twitch*
Was just going to say, depends on the function. And that's what makes it frustrating! The standard library is replete with examples like that.
thumbuilderic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-03-2014, 10:51 AM   #72
thumbuilderic
Just some porn guy
 
thumbuilderic's Avatar
 
Industry Role:
Join Date: Aug 2012
Location: LA
Posts: 365
Quote:
Originally Posted by edgeprod View Post
We enforce them at LeadWrench right now.
That's a good thing!
thumbuilderic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-03-2014, 10:51 AM   #73
blackmonsters
Making PHP work
 
blackmonsters's Avatar
 
Industry Role:
Join Date: Nov 2002
Location: 🌎🌅🌈🌇
Posts: 20,530
Quote:
Originally Posted by Bowser Koopa View Post
Actually, even with that it's still pretty consistent, like I stated before, Array functions are $needle -> $haystack, and String functions are $haystack -> $needle
Why didn't they let us chose like this :

stripos(needle=$input, haystack=$pile);
stripos(haystack=$pile, needle=$input);



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.

__________________
Make Money with Porn
blackmonsters is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-03-2014, 11:20 AM   #74
thumbuilderic
Just some porn guy
 
thumbuilderic's Avatar
 
Industry Role:
Join Date: Aug 2012
Location: LA
Posts: 365
:tongue

Quote:
Originally Posted by edgeprod View Post
I'm sorry, but that's a ridiculous comparison. Bring me a site doing the volume Facebook is, and we'll talk. Until then, you're over-engineering and making maintenance more of an issue than it needs to be. PHP is widely used and well represented in the development community. Getting another coder to extend or repair your code is very easy. By moving to another language, you unnecessarily narrow your potential candidates and/or raise their average price.

Don't "solve" non-problems; adult isn't that sophisticated, nor are its problems overly-complex to address. PHP scales very well for all but the largest applications, and I won't pretend it doesn't.
I feel like you've all but called me an idiot here. I realize that the opinions about languages can inspire some passionate responses, and that's good.

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.
thumbuilderic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-03-2014, 01:49 PM   #75
edgeprod
Permanently Gone
 
Industry Role:
Join Date: Mar 2004
Posts: 10,019
Quote:
Originally Posted by thumbuilderic View Post
I feel like you've all but called me an idiot here. I realize that the opinions about languages can inspire some passionate responses, and that's good.
Let me start out by saying: absolutely not. I don't punish intelligent opinions with personal attacks. If you didn't have a point, I'd definitely have been less accepting of your argument. My replies are geared toward the people reading your comments, not at you making them. One of the problems with the lack of technical sophistication on GFY is that people see a complex technical point, read about one line of it, and then run with the opinion they immediately form. So, with you making these statements, those of us in development will have to hear "but PHP sucks for all sites!" for a long time. If I don't respond with a very strong statement, that's their take-away. I hope that makes sense, and you aren't offended.


Quote:
Originally Posted by thumbuilderic View Post
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.
Agreed. I enforce these standards in our employees, and deliver them when I am working for a client. It makes the code maintainable, scalable, and extensible. Otherwise, you're just kidding yourself. As you know, a number of well-known projects in adult don't begin to meet proper standards, and are so poorly coded as to be embarrassing to anyone competent. Not naming any names, but I'm sure half a dozen immediately pop into your mind.


Quote:
Originally Posted by thumbuilderic View Post
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.
I'm a programmer, not a web developer, so C++, Python, Java, etc, are my go-to tools for most problems that need solving outside of the web sphere. My point is just that adult does not solve complex (or even interesting) problems in 90% of cases, and PHP *is* the correct language for maintainability and extensibility, if not for scalability (which most projects here don't even need).

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.
edgeprod is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-03-2014, 02:03 PM   #76
mafia_man
Confirmed User
 
mafia_man's Avatar
 
Industry Role:
Join Date: Jul 2005
Location: icq#: 639544261
Posts: 1,965
That's some shitty code...
__________________
I'm out.
mafia_man is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-03-2014, 02:35 PM   #77
KaliC
Sexy Beast
 
KaliC's Avatar
 
Industry Role:
Join Date: Jan 2005
Posts: 617
Wow good stuff, php is growing with it's popularity. Hopefully the coders will grow as well.
__________________
AdultWebHosting.com
KaliC is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-03-2014, 03:38 PM   #78
edgeprod
Permanently Gone
 
Industry Role:
Join Date: Mar 2004
Posts: 10,019
Quote:
Originally Posted by KaliC View Post
Wow good stuff, php is growing with it's popularity. Hopefully the coders will grow as well.
Yeah, pretty soon PHP will be big. Wait, what?
edgeprod is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-04-2014, 09:22 AM   #79
thumbuilderic
Just some porn guy
 
thumbuilderic's Avatar
 
Industry Role:
Join Date: Aug 2012
Location: LA
Posts: 365
Quote:
Originally Posted by edgeprod View Post
Let me start out by saying: absolutely not. I don't punish intelligent opinions with personal attacks. If you didn't have a point, I'd definitely have been less accepting of your argument. My replies are geared toward the people reading your comments, not at you making them. One of the problems with the lack of technical sophistication on GFY is that people see a complex technical point, read about one line of it, and then run with the opinion they immediately form. So, with you making these statements, those of us in development will have to hear "but PHP sucks for all sites!" for a long time. If I don't respond with a very strong statement, that's their take-away. I hope that makes sense, and you aren't offended.

Agreed. I enforce these standards in our employees, and deliver them when I am working for a client. It makes the code maintainable, scalable, and extensible. Otherwise, you're just kidding yourself. As you know, a number of well-known projects in adult don't begin to meet proper standards, and are so poorly coded as to be embarrassing to anyone competent. Not naming any names, but I'm sure half a dozen immediately pop into your mind.

I'm a programmer, not a web developer, so C++, Python, Java, etc, are my go-to tools for most problems that need solving outside of the web sphere. My point is just that adult does not solve complex (or even interesting) problems in 90% of cases, and PHP *is* the correct language for maintainability and extensibility, if not for scalability (which most projects here don't even need).

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.
My bad for taking your commentary so personally. That was kind of lame of me.

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.
thumbuilderic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-04-2014, 09:43 AM   #80
edgeprod
Permanently Gone
 
Industry Role:
Join Date: Mar 2004
Posts: 10,019
Quote:
Originally Posted by thumbuilderic View Post
My bad for taking your commentary so personally. That was kind of lame of me.

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.
No harm, no foul. Like I said, my focus is always on maintainability and extensibility, with scalability being a third concern.
edgeprod is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-04-2014, 09:55 AM   #81
edgeprod
Permanently Gone
 
Industry Role:
Join Date: Mar 2004
Posts: 10,019
I should clarify my last comment for a broader audience: what I mean is that I always focus on how easy it is for the next guy to maintain any code produced, and how easy it is for the next guy to add features to the existing code.

I'm sure a lot of people have heard "fuck, that is awful, we have to rebuild it." Sometimes that's true, and sometimes it's just a lazy or inexperienced developer. I write code to avoid that situation.

By using PHP for your project, you expand the availability of qualified and price-effective engineers available to support and extend your product.
edgeprod is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-04-2014, 10:04 AM   #82
dicknipples
Formerly known as Lensman
 
Industry Role:
Join Date: May 2014
Location: Chicago, IL
Posts: 654
Quote:
Originally Posted by edgeprod View Post
I should clarify my last comment for a broader audience: what I mean is that I always focus on how easy it is for the next guy to maintain any code produced, and how easy it is for the next guy to add features to the existing code.

I'm sure a lot of people have heard "fuck, that is awful, we have to rebuild it." Sometimes that's true, and sometimes it's just a lazy or inexperienced developer. I write code to avoid that situation.

By using PHP for your project, you expand the availability of qualified and price-effective engineers available to support and extend your product.
dicknipples is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-04-2014, 11:48 AM   #83
thumbuilderic
Just some porn guy
 
thumbuilderic's Avatar
 
Industry Role:
Join Date: Aug 2012
Location: LA
Posts: 365
Quote:
Originally Posted by edgeprod View Post
I should clarify my last comment for a broader audience: what I mean is that I always focus on how easy it is for the next guy to maintain any code produced, and how easy it is for the next guy to add features to the existing code.

I'm sure a lot of people have heard "fuck, that is awful, we have to rebuild it." Sometimes that's true, and sometimes it's just a lazy or inexperienced developer. I write code to avoid that situation.

By using PHP for your project, you expand the availability of qualified and price-effective engineers available to support and extend your product.
That's really what matters!
thumbuilderic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-04-2014, 02:29 PM   #84
CPA-Rush
small trip to underworld
 
Industry Role:
Join Date: Mar 2012
Location: first gen intel 80386/nintendo-gb/arcade/ps1/internet person
Posts: 4,927
javascript scare me
java sun and python create good virus
i'm not java
__________________

automatic exchange - paxum , bitcoin,pm, payza

. daizzzy signbucks caution will black-hat black-hat your traffic

ignored forever :zuzana designs
CPA-Rush is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-04-2014, 04:26 PM   #85
Zeiss
Confirmed User
 
Industry Role:
Join Date: May 2012
Location: With your mom
Posts: 5,189

just saying..
__________________


Adult Webmasters Guides
Zeiss is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-05-2014, 12:49 AM   #86
sobecash
Confirmed User
 
Industry Role:
Join Date: Jul 2012
Location: Miami
Posts: 285
Quote:
Originally Posted by thumbuilderic View Post
That's really what matters!
True, but seldom what happens. In most coding environments, validation and QA take up most of the time. In web programming a lot of the code is done by people who did not start out as programmers.

The website works, and every so often the page fails, and then we fix it. Such is life in internet time.
__________________
Guillermo
ICQ 46 662 587 / guillermo[at]sobecash[.]com
Sobecash Winner of the "Best Affiliate Program" Award 2015 by Cybersocket

www.sobecash.com
SITES NETWORK:
www.dallasreeves.com
www.zebatlas.com
www.wankthis.com
www.blacknhung.com
www.finestlatinos.com
www.barebacktime.com
sobecash is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-05-2014, 01:45 PM   #87
edgeprod
Permanently Gone
 
Industry Role:
Join Date: Mar 2004
Posts: 10,019
Quote:
Originally Posted by sobecash View Post
True, but seldom what happens. In most coding environments, validation and QA take up most of the time. In web programming a lot of the code is done by people who did not start out as programmers.

The website works, and every so often the page fails, and then we fix it. Such is life in internet time.
Wow, sorry to hear you have to go through that. Hope things get better. Look into unit testing, if you want to cut out a lot of the BS taking up by validation, QA, etc.
edgeprod is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-05-2014, 02:15 PM   #88
The Hun
Confirmed User
 
The Hun's Avatar
 
Join Date: Jan 2001
Location: The Netherlands
Posts: 1,207
I am a programmer. Started way way back programming 8086's in machine language 'cause that's what was around... Even did some web stuff in assembly 'cause that was the fastest way to do it. These days programmers don't seem to feel the need to make stuff run efficiently. They use resources like they're nothing and when something is slow they use more machines... sure, that's a solution, but in my opinion not a very good one. It makes huge monsters of programs with unreadable code and patches upon patches upon patches...

A web programmer needs to know a server-side scripting and a client side one. Of course, you don't need the client side per se, but the power of thousands of computers ran by the visitors can make a site faster than doing all the math on the server. At the same time doing the same calculations over and over again for every single user when you don't have to doesn't make sense. So it's never easy to decide to do something server/client side. I use PHP for the server, and a combination of MySQL ('cause of it's HUGE flexibility and enormous possibilities in queries) and Redis ('cause of it's mere speed, thehun for instance is ran in PHP using Redis as the Database, life from the DB, no other caching. We also run our banner rotation in PHP/Redis, rotation, geo/device targeting, stats, all live, and all in PHP/Redis). On the client site I use a lot of jQuery, which is basically a layer over JavaScript. Very useful if you use it right.

I'd rather spend 2 days figuring out how to make a program run faster or how to get a query more effective than to spend any time on a new server.

A little example of what strikes me as a programmer these days: sites that server video at 76 times the speed (and higher) of the video... How can someone watch a video at 76 it's original speed? Stuff like that is just stupid to me... People burn resources like they're nothing, and up to a certain point they're right of course, but the real programmers, the codes from the old days that have speed in mind, they're rare these days... people rather play around with WorldPress or whatever, which is great for some things, but not for most...

A simple example from this post, can't remember the exact code, but it came down to this:

$v=7
$retval=($v==7)?true:false;

this is a waste of resources... the ($v==7) already results in a true or false... And this is just a small thing. I used to work on inner-loops of game engines, trying to get rid of for-loops 'cause the 'checking if the counter reached 0 yet' 'caused an extra cache-miss in the CPU... ok, agreed, that was really going very far, but that's probably why we never used more than one machine for thehun...
The Hun is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-05-2014, 02:23 PM   #89
edgeprod
Permanently Gone
 
Industry Role:
Join Date: Mar 2004
Posts: 10,019
Very good post on server resources. Many projects here aren't autoloading, aren't optimizing queries, some don't even have column indexes in their databases! It's .. troubling, at best.
edgeprod is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-05-2014, 03:34 PM   #90
alf6300
Confirmed User
 
Industry Role:
Join Date: Sep 2007
Posts: 765
lot of good points in this thread.

one point to consider: in my experience, a lot of startups fail precisely _because_ the code is too good - rather than because the code sucks.

when you are starting a business, perfectionism kills as much as sloppiness.
many techies will disagree, but truth is that business priorities are never aligned with technical priorities. and unless you are in academia or in a basement, when there is a tradeoff between the two, business takes precedence over better code.

in an online startup, a key to success is to understand where the ideal balance lies. this requires both business and (at least some) technical skills. if you don't have some of both, and you are the boss, you are usually in trouble.
__________________
--
alf6300 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-05-2014, 03:46 PM   #91
The Hun
Confirmed User
 
The Hun's Avatar
 
Join Date: Jan 2001
Location: The Netherlands
Posts: 1,207
If you don't know programming you have to find someone that does. Biggest problem with programmers is that they usually lack any business sense, don't document, dictate what's going on with the software and pretty much make it impossible for anybody to understand what's going on just to make sure they are never kicked out of the loop. That's politics though, I thought this was about the programming side of things
The Hun is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-05-2014, 04:10 PM   #92
edgeprod
Permanently Gone
 
Industry Role:
Join Date: Mar 2004
Posts: 10,019
Quote:
Originally Posted by alf6300 View Post
lot of good points in this thread.

one point to consider: in my experience, a lot of startups fail precisely _because_ the code is too good - rather than because the code sucks.
Minimum Viable Product is all that matters.
edgeprod is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-05-2014, 05:00 PM   #93
blackmonsters
Making PHP work
 
blackmonsters's Avatar
 
Industry Role:
Join Date: Nov 2002
Location: 🌎🌅🌈🌇
Posts: 20,530
Quote:
Originally Posted by The Hun View Post
If you don't know programming you have to find someone that does. Biggest problem with programmers is that they usually lack any business sense, don't document, dictate what's going on with the software and pretty much make it impossible for anybody to understand what's going on just to make sure they are never kicked out of the loop. That's politics though, I thought this was about the programming side of things

I object to the highlighted part because you make it sound like we do that on purpose.

__________________
Make Money with Porn
blackmonsters is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-05-2014, 07:18 PM   #94
edgeprod
Permanently Gone
 
Industry Role:
Join Date: Mar 2004
Posts: 10,019
Quote:
Originally Posted by blackmonsters View Post
I object to the highlighted part because you make it sound like we do that on purpose.
A lot the do.
edgeprod is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-05-2014, 10:50 PM   #95
The Hun
Confirmed User
 
The Hun's Avatar
 
Join Date: Jan 2001
Location: The Netherlands
Posts: 1,207
Al lot do indeed. I see that with a lot of sites that are beyond startup. Sad really. Comes to proof: if you don't have the technical knowledge make a programmer part owner of the company so at least you're both on the same side. Do make sure you find a programmer that understands programming alone doesn't make anybody money. You need more than just good programming. Marketing, good ideas, stuff like that. 1+1=3 so to say...
The Hun is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-06-2014, 02:30 AM   #96
sobecash
Confirmed User
 
Industry Role:
Join Date: Jul 2012
Location: Miami
Posts: 285
Quote:
Originally Posted by blackmonsters View Post
I object to the highlighted part because you make it sound like we do that on purpose.

In my experience, those who are currently programmers who had no prior corporate training and experience, or who did not go through programming courses, have problems with documentation.

On the other hand, I remember the time when IBM was pushing their standards on every big project, where 80% of the time is spent on design and validation, prior to coding.

The fine line right now in webdev is that of getting the project running online, and fixing it as it goes. Kind of like the Yorktown getting fixed at sea while en route from the Battle of the Coral Sea right to the Battle of Midway.
__________________
Guillermo
ICQ 46 662 587 / guillermo[at]sobecash[.]com
Sobecash Winner of the "Best Affiliate Program" Award 2015 by Cybersocket

www.sobecash.com
SITES NETWORK:
www.dallasreeves.com
www.zebatlas.com
www.wankthis.com
www.blacknhung.com
www.finestlatinos.com
www.barebacktime.com
sobecash is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-06-2014, 02:53 AM   #97
The Hun
Confirmed User
 
The Hun's Avatar
 
Join Date: Jan 2001
Location: The Netherlands
Posts: 1,207
Quote:
Originally Posted by sobecash View Post
In my experience, those who are currently programmers who had no prior corporate training and experience, or who did not go through programming courses, have problems with documentation.

On the other hand, I remember the time when IBM was pushing their standards on every big project, where 80% of the time is spent on design and validation, prior to coding.

The fine line right now in webdev is that of getting the project running online, and fixing it as it goes. Kind of like the Yorktown getting fixed at sea while en route from the Battle of the Coral Sea right to the Battle of Midway.
Prototyping is not the most efficient way to program, it is the fastest way to show results though, so 'cause of pressure from anybody that doesn't know programming it's often used as the way to go. Admitted: I also prototype a lot. I'd like to know at an early point whether something works or not, so I make a proof-of-concept to play around with before I build. Not really prototyping, but the next bad thing ...

It works though. Although fixing one thing might mean you're breaking something else. That's why I'm all for documenting right, create API's to enable different programmers can work on the same thing and not mess with the lower layers when they don't have to. Data abstraction is a good thing! It might cause some overhead (and I hate wasting resources usually), but there is the law of diminishing returns which means that it's good to have some overhead if that overhead will be made back by maintainability. Well, actually the law describes the opposite where you shouldn't put more effort in something than it makes back, but it comes down to the same thing...
The Hun is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-06-2014, 03:01 AM   #98
VladS
Available for Coding Work
 
VladS's Avatar
 
Industry Role:
Join Date: Jun 2008
Posts: 1,435
Usually, you also get what you pay for - i daily have a bunch of requests like "hey, i need this done, how cheap can you do it?", well sometimes it can be done cheap, sometimes it cannot, if you're not prepared to invest in your business and want half way solutions, you will usually do get half way solutions.

Coding takes time and if properly done, takes even more time. For most of coders, they cut on quality or documentation or somewhere in between and hurry up projects just to grab a cheque.

Eventually, it's a mix between finding the right coder and the right client. In adult this doesn't happen too often i think.
__________________
<developer> MechBunny / KVS / PHP / MySQL / HTML5 / CSS3 / jQuery
Email: vlad [at] dangerouscoding.com
Telegram: @dangerouscoding
VladS is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-06-2014, 09:38 AM   #99
thumbuilderic
Just some porn guy
 
thumbuilderic's Avatar
 
Industry Role:
Join Date: Aug 2012
Location: LA
Posts: 365
Quote:
Originally Posted by sobecash View Post
True, but seldom what happens. In most coding environments, validation and QA take up most of the time. In web programming a lot of the code is done by people who did not start out as programmers.

The website works, and every so often the page fails, and then we fix it. Such is life in internet time.
I hate to bash on new programmers/scripters. Sometimes people just don't have the occasion to learn PSR standards, etc.

We should try to keep this thread positive and informative for new people learning. I know that there are probably some new people who just haven't learned everything yet (but still want to make things, and that's good!). But these people probably don't know how to use git, write unit tests, manage dependencies, or write even good OO code.

I will agree with Dom, unit testing is amazing and can save a lot of time. You should look into PHPUnit. You can add it as a dependency via Composer. getcomposer.org if you don't have it.

Hopefully that helps you to spend more time writing good quality programs and not debugging and trying to find errors!
thumbuilderic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-06-2014, 09:43 AM   #100
thumbuilderic
Just some porn guy
 
thumbuilderic's Avatar
 
Industry Role:
Join Date: Aug 2012
Location: LA
Posts: 365
Quote:
Originally Posted by edgeprod View Post
A lot the do.
Yeah, a lot do... I have some friends who intentionally do that for job security. Stupid. I'd fire someone if I knew they were intentionally making code difficult or not documenting their work. What good is it to have some cryptic system where nobody can read the source!?
thumbuilderic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.