56

WordPress needs no introduction, it powers a significant portion of the web while having some of the most nightmare inducing code i have seen in all my years as a developer.

Just look at the API, i mean what the actual fuck is that?

get_fucked();

Comments
  • 0
    @Letmecode You will be surprised just how often it is used.

    I have toned down the statement but still it was at 18.9% last time i checked, which is still not a small number.
  • 0
    @Letmecode Granted that was a while ago but this site will have the figures based on what is known: @Letmecode" style="color: #54556e;">https://w3techs.com/technologies/...
  • 3
    I don't know if it's still true, but it used to have 2 nice metho... functions in a huge freakin file of thousands of lines of code called functions.php, that looked like this:

    function get_false() {
    //returns a boolean false value
    return false;
    }

    function get_true() {
    //returns a boolean true value
    return true;
    }
  • 0
    @Zennoe It's fine, check it again and you will see what happened.
  • 1
    It's also a popular CMS to practice hacking... Err, I mean pentesting.
  • 0
    @Zennoe Check the link...it's really obvious
  • 1
    @Zennoe Looking at the URI, you will see something post-fixed to the end of it that clearly shouldn't be there.

    https://w3techs.com/technologies/...
  • 0
    @Zennoe No, the URl was fine. The fact the mention was detected as part of that was not of my doing.
  • 0
    DISCLAIMER I seem to be on a WP defense kick tonight... could change by sun up.

    I honestly think that people who complain the most about WP really just don't know it as well as they do other platforms. And honestly I think most complainers haven't even done any real development on it(really leveraging what the platform does give you) and are more complaining about shit themes and plugins...

    @apisarenco - for instance your comment is regarding a "theme" file

    You can treat WP like you would any other framework and build your app how you want while leveraging the "magic"...

    The more I think about it, it's not that different from Django...
  • 0
    @Treighton "@apisarenco - for instance your comment is regarding a "theme" file" - no dude. It's not.
  • 0
    @Treighton "The more I think about it, it's not that different from Django..." - holy smoke!
    Dude, no. Just no. Why would you even compare them? They're COMPLETELY different.
    The amount of acrobatics required to turn WP into anything more than a blogging site, is tremendous. Compared to something that's just a framework, where extensibility is as good as you can make it, where nothing is set in stone.
  • 0
    @Treighton Seriously just go here:

    https://wordpress.org/download/...

    Download, say, 3.7.20
    Go to wp-includes/functions.php
    Because that's how much it sucks.

    Then scroll down to line, I shit you not, 3782. No, it's not even the end of that fucking shit of a file full of global functions.

    Now now, I know what you must think:
    "This guy knows nothing, he confuses themes with actual WP, and now uses an old ass version from before I was born to prove his point"

    Right?

    Download 4.8. I dare you. Download it.

    Now go to wp-includes/functions.php

    Has it gotten any smaller? Maybe they have moved some of that shit to better structures? Maybe separate concern to not have everything in hundreds of global shit functions?

    Scroll down to line 4849. Yep. It's further now. No. Still not the end of the file.

    And there we found our little shitty friend

    function __return_false() {
    return false;
    }

    Next time I advise you to check before accusing people of not knowing their stuff.
  • 2
    OMG I feel so dirty now. I touched Wordpress. I feel like I need a shower in antidepressant goo. I was planning to go for a nice medium rare burger for lunch but now I lost my appetite.
  • 0
    @apisarenco WordPress was designed to be a blog engine, it was never meant to be anything more than that.
  • 2
    @nblackburn yet people use it for everything else.
  • 0
    @apisarenco Yes, it's stupid but they have had to adapt to survive.
  • 0
    @apisarenco I concede, you're right about the wp-includes/functions.php
  • 0
    Tfw you need work practice hours for university (official employment only), and the only jobs offered deal with Wordpress.
Add Comment