by superasn · 7y ago · 0 comments
WordPress and its plugins are most often cited as examples of bad code and to top it off it is written in PHP - a programming language hated by a lot of programmers.
Yet when it comes down to it, WP powers 33.6% of all websites on the internet. Just think for a second how big that number is!
So if the software gets the job done and the end-user can easily understand it, it really doesn't matter if you write it in what language, using what code patterns.
Revenue for the end-user? No way. Wordpress sites are high maintenance due to its enormous attack surface and dubious code quality. I would never even consider it as it will just be a liability I don't want to deal with.
I don't have direct experience with then myself but that's what I've heard most successful wp blogs do
It’s a lot cheaper, and cms using tools like Hugo or Jekyll is really a lot better than WP because let’s face it you’ll end up editing the theme pho files in Wordpress. I now use metalsmith for new sites instead of Hugo as it’s more hackable.
One thing thars a bit harder is Wordpress is nice for a techie working with a non techie content editor. I’m making do with markdown and github for that but a solution to that problem could be a indie hacker idea.
[1]: https://ghost.org
You could say that about any language. PHP is loved by many programmers too.
Sure there's sexier languages like elixir and go and rust, but well designed php code is a pleasure to work w/.
https://fossbytes.com/most-loved-hated-programming-languages...
It's true that programmers hate PHP. It's true that programmers love PHP. It's true that programmers hate other languages. It's true that programmers love other languages.
This isn't very useful, as you seem to imply; but only due to the boolean perspective.
Numerically, PHP is hated far more than other languages, and loved far less (StackOverflow surveys come to mind, but I'm sure there's a whole lot more data on this)
but I can't live without using it as it's pretty much the only option for what it does....
In my fullstack workflow js is way worse than php.
Just to use it properly requires setting up an entire elaborate webpack setup (thank god for laravel mix), then there's a gajillion frameworks to choose from if you go that route, best practices are argued constantly on forums/reddit/hn....
I'd like to build an app on node but I can't ever get past bootstrapping the damn app before I get frustrated at the time it takes just to dive right in.
Very true, unfortunately.
> Just to use it properly requires setting up an entire elaborate webpack setup
This sounds like a self-imposed problem. I've been writing JS for over a decade and never touched webpack (I think it's some sort of compiler/linker)
> there's a gajillion frameworks to choose from if you go that route
Emphasis on the word "if". Frameworks are there to make life easier; if they're making your life harder, don't bother. Most things are easy enough in "Vanilla JS", now that IE6 compatibility is less important.
> best practices are argued constantly on forums/reddit/hn
Arguing over best practices is a sign of a healthy community, which is passionate about quality rather than settling for "it runs". Learning about new ideas can be useful for framing our thinking, even if we don't directly apply those approaches.
Those sort of arguments shouldn't have much impact on how we actually Get Things Done though, since we know more about the engineering requirements of our particular project than random people online, and we'll be more productive using known-good methods which we're experienced with.
> I'd like to build an app on node but I can't ever get past bootstrapping the damn app before I get frustrated at the time it takes just to dive right in.
I've not used Node in years, but again that's a choice; if it makes life harder, dump it and use something easier. Node.js bootstrapping complications aren't really a fault of the JS language; heck, you can use FastCGI if you like (that's how PHP is often run).
An that is the exact reasons why it is hard to address implementing more tests, and addressing technical debt.