![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#51 | |
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#52 |
Permanently Gone
Industry Role:
Join Date: Mar 2004
Posts: 10,019
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#53 |
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#54 |
Permanently Gone
Industry Role:
Join Date: Mar 2004
Posts: 10,019
|
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.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#55 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#56 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#57 | |
Industry Role:
Join Date: Aug 2006
Location: Little Vienna
Posts: 32,235
|
Quote:
And here is one funny pic regarding languages : ![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#58 |
Too lazy to set a custom title
Industry Role:
Join Date: Dec 2004
Location: Happy in the dark.
Posts: 93,519
|
Welcome to the zoo, Bowser Koopa ...
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#59 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#60 | |
No, I am not banned
Industry Role:
Join Date: Nov 2003
Location: ChatGF.com
Posts: 5,345
|
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.
__________________
TubeCamGirl.com |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#61 |
Formerly known as Lensman
Industry Role:
Join Date: May 2014
Location: Chicago, IL
Posts: 654
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#62 |
Industry Role:
Join Date: Mar 2003
Location: San Diego
Posts: 32,243
|
Only if a monster triggers a trap..
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#63 |
Permanently Gone
Industry Role:
Join Date: Mar 2004
Posts: 10,019
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#64 |
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! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#65 |
Formerly known as Lensman
Industry Role:
Join Date: May 2014
Location: Chicago, IL
Posts: 654
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#66 | |
Confirmed User
Industry Role:
Join Date: Jul 2012
Location: Miami
Posts: 285
|
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.
__________________
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 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#67 |
Formerly known as Lensman
Industry Role:
Join Date: May 2014
Location: Chicago, IL
Posts: 654
|
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.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#68 | |
Permanently Gone
Industry Role:
Join Date: Mar 2004
Posts: 10,019
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#69 | |
Too lazy to set a custom title
Join Date: Mar 2002
Location: Australia
Posts: 17,393
|
Quote:
![]() edit: I see this has already been pointed out. ![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#70 |
Formerly known as Lensman
Industry Role:
Join Date: May 2014
Location: Chicago, IL
Posts: 654
|
Actually, even with that it's still pretty consistent, like I stated before, Array functions are $needle -> $haystack, and String functions are $haystack -> $needle
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#71 |
Just some porn guy
Industry Role:
Join Date: Aug 2012
Location: LA
Posts: 365
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#72 |
Just some porn guy
Industry Role:
Join Date: Aug 2012
Location: LA
Posts: 365
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#73 | |
Making PHP work
Industry Role:
Join Date: Nov 2002
Location: 🌎🌅🌈🌇
Posts: 20,530
|
Quote:
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 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#74 | |
Just some porn guy
Industry Role:
Join Date: Aug 2012
Location: LA
Posts: 365
|
![]() 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. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#75 | |||
Permanently Gone
Industry Role:
Join Date: Mar 2004
Posts: 10,019
|
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. |
|||
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#76 |
Confirmed User
Industry Role:
Join Date: Jul 2005
Location: icq#: 639544261
Posts: 1,965
|
That's some shitty code...
__________________
I'm out. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#77 |
Sexy Beast
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 ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#78 |
Permanently Gone
Industry Role:
Join Date: Mar 2004
Posts: 10,019
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#79 | |
Just some porn guy
Industry Role:
Join Date: Aug 2012
Location: LA
Posts: 365
|
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. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#80 | |
Permanently Gone
Industry Role:
Join Date: Mar 2004
Posts: 10,019
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#81 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#82 | |
Formerly known as Lensman
Industry Role:
Join Date: May 2014
Location: Chicago, IL
Posts: 654
|
Quote:
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#83 | |
Just some porn guy
Industry Role:
Join Date: Aug 2012
Location: LA
Posts: 365
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#84 |
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
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#85 |
Confirmed User
Industry Role:
Join Date: May 2012
Location: With your mom
Posts: 5,189
|
![]() just saying.. ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#86 |
Confirmed User
Industry Role:
Join Date: Jul 2012
Location: Miami
Posts: 285
|
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#87 | |
Permanently Gone
Industry Role:
Join Date: Mar 2004
Posts: 10,019
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#88 |
Confirmed User
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... |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#89 |
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.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#90 |
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.
__________________
-- |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#91 |
Confirmed User
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
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#92 |
Permanently Gone
Industry Role:
Join Date: Mar 2004
Posts: 10,019
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#93 | |
Making PHP work
Industry Role:
Join Date: Nov 2002
Location: 🌎🌅🌈🌇
Posts: 20,530
|
Quote:
I object to the highlighted part because you make it sound like we do that on purpose. ![]()
__________________
Make Money with Porn |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#94 |
Permanently Gone
Industry Role:
Join Date: Mar 2004
Posts: 10,019
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#95 |
Confirmed User
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...
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#96 | |
Confirmed User
Industry Role:
Join Date: Jul 2012
Location: Miami
Posts: 285
|
Quote:
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 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#97 | |
Confirmed User
Join Date: Jan 2001
Location: The Netherlands
Posts: 1,207
|
Quote:
![]() 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... |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#98 |
Available for Coding Work
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 ![]() ![]() Email: vlad [at] dangerouscoding.com Telegram: @dangerouscoding |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#99 | |
Just some porn guy
Industry Role:
Join Date: Aug 2012
Location: LA
Posts: 365
|
Quote:
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! |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#100 |
Just some porn guy
Industry Role:
Join Date: Aug 2012
Location: LA
Posts: 365
|
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!?
|
![]() |
![]() ![]() ![]() ![]() ![]() |