“Don’t you have a suit, old man?”
Open-Source evangelist. Boycotts large corpos. Free speech absolutist (very unpopular around here, I know).
“Don’t you have a suit, old man?”
Intermingling PHP and HTML is one of PHP strengths
Eeeh, no. It’s a bad practice in 2025. That was a good thing a decade ago.
Trying to modify this blocked CSS is going to be wayyyyyyyyyyyyyyyyyyyy easier than trying to modify a bunch of printed HTML strings broken up by multiple nested conditionals. Plus it’s just straight-up easier to read and straight-forward to understand what the function does right away.
True. But I was just looking at the source code of wordpress for 30 seconds. I could probably find worse.
To harp on this even more, one of the benefits of blocking HTML in this way is IDE highlighting.
Which isn’t a problem if you use a template engine - as you should in modern applications.
I can’t think of a single system that doesn’t “stop PHP executing” at some point to output HTML in some way.
Not a single modern system does that. It’s terrible practice and won’t even pass automated code reviews with sane settings.
Your opinion was correct like 10 years ago. PHP7 made a lot of fixes to many of the problems it had and PHP8 improved on it even more. And if you slap a framework on top of it, like laravel, PHP looks awesome.
but oh man in a much better, cleaner, and more sparingly way
I don’t think we’re looking at the same source code. The first thing I see in wp-activate.php:
function wpmu_activate_stylesheet() {
?>
<style type="text/css">
.wp-activate-container { width: 90%; margin: 0 auto; }
.wp-activate-container form { margin-top: 2em; }
#submit, #key { width: 100%; font-size: 24px; box-sizing: border-box; }
#language { margin-top: 0.5em; }
.wp-activate-container .error { background: #f66; color: #333; }
span.h3 { padding: 0 8px; font-size: 1.3em; font-weight: 600; }
</style>
<?php
}
This isn’t better nor cleaner. This is a disaster. A function that stops PHP execution halfway-through, outputs some text and then restarts PHP execution? Hell, I’ve been in the PHP ecosystem for over a decade now and I didn’t even know this was possible and I wish that knowledge was still hidden from me.
Maybe I was wrong by saying that the 4chan source code is better than wordpress, fair. Maybe I should just say both are abominations, I will not judge which one is better and both should be discarded and forgotten.
I can upload a new one. Ping me tomorrow when I’m awake again.
Haven’t really thought about it, it’s more a “I played 600 hours of project zomboid” lmao.
But ye, depends on a lot of factors - if we assume slow moving zombies that tend to be at the same locations, a large car like a dodge ram would be awesome ngl.
Skip the peas and it probably slaps ngl.
I mean, the source code looks a lot cleaner than WordPress, which is an incredibly sad statement.
Kill WordPress now.
Oh I wouldn’t. The Dodge Ram would most likely serve as an excellent vehicle for transporting stuff. I’d do it as in project zomboid - drive the car to the border of the city, loot, bring loot back to the car, rinse and repeat until the car is full, then it goes back to base.
On top of that, the dodge ram has significantly more horsepower and can waltz through small and medium-sized zombie hordes without slowing down too much.
Well, if I had such a car, I’d probably make it my mission to take over a petrol station or something similar so I have a steady supply for now.
Great car for the first few weeks of a zombie apocalypse.
Not great for any other situation.
In that case, it would make sense why they are so pro-life - more child slaves to make products. Reminds me of that one family guy episode … https://www.youtube.com/watch?v=Xd6Shxz9UUs
Probably not a fantasy, but it’s gonna cost like 3k bucks lmao
Not sure where you’re from, but in germany and austria, christians are definitely doing good. Churches here have a lot of support networks for everyone, especially elderly and people in need. In germany, we also have the “diakonie”, a service of the … protestant church? (idk how to translate that properly into english, the opposites of catholics here lmao), which is a major part of elderly care. And in many villages or smaller cities, the churches are open during the night for the homeless to take shelter, if they want to.
While I’m really not a big fan of religions in general, I feel like it’s unfair to claim that christians don’t do anything for society at large. At least from my european perspective.
AI is being pushed into war machines big time. America and China are both working on it. With ukraine showing how incredibly effective drones are in warfare, just imagine the damage and destruction a swarm of drones controlled by an AI could cause.
Not sure if I’d agree here. I think that used properly, AI definitely has great use-cases, especially in areas of science, like medicine.
As with any new “invention”, there is the tech-bros that jump at it first chance they get and try to push it into anything. We had that with blockchain, we had that with crypto, we had it with web3 and now we have it with AI.
The tech isn’t bad at all, it’s actually extremely useful, but the use-cases it’s put to work at aren’t.
Ye why make money by learning languages.
???
I would appreciate it if we could just get rid of this dumbass “hate speech” rule.
Which is the prime example for gendered language not doing shit for inclusivity.