

Don’t talk about your mental health with an AI seems like pretty basic common sense to me, as someone who interacts with them constantly.
This article seems like it was written by a PR firm for big AI.


Don’t talk about your mental health with an AI seems like pretty basic common sense to me, as someone who interacts with them constantly.
This article seems like it was written by a PR firm for big AI.


You’re actually 100% right, I despise coffee.


Honey, the proprietary operating systems are quarreling again!
*sips coffee in exclusive Linux user land.


Oh, Android does this to me too. It constantly suggests I want to call my old boss from 13 years ago who I honestly hope I never see again.


I was seeing a whole bunch of Oracle people I know suddenly “open to work” on LinkedIn, posting about how they were all “ready for my next opportunity” or “excited to discover my next project” and immediately correctly guessed what had happened.


This is the way.


As someone who doesn’t usually connect with modern Trek, I’ve really been enjoying Academy and Life Of The Stars was one of my favorite Trek episodes of all time. Not many Trek episodes have made me cry like a little girl.
Disco was blessed with a bunch of very talented actors, but constantly plagued with terrible writing. It was lovely to see Wiseman on Academy.


Very rarely, but probably only in situations where you would too. No, usually I put my HTML in HTML files. They’re usually building blocks… page components, not a full page. I regulate the page flow in PHP, and I don’t like it cluttered up with tons of HTML, inside or outside of echos. I have been known to do stuff like this though:
echo “<div class=‘whatever-container’>”.$Page->pagecomponents[‘contents_of_some_html_file’].“</div>”;
If I go and look at $Page, it will show that $this->pagecomponents is set by reading my template files in so I can grab HTML structures dynamically. If the contents of pagecomponents[‘component’] are set dynamically (they usually are), there won’t be some ugly <php ?> tag in the HTML file, but my $Page class will handle populating it somehow. The architecture I usually use is $Validator is instantiated for a page load, then $Data, so whatever user activity $Validator has detected and cleaned up tells $Data what to do with the data backend (which is usually a combination of Maria and Redis) then $Data gets fed into $Page which figures out what page to build, looks at all my HTML building blocks and figures out how to put them together and populate whatever it needs to. So it will usually be something like (very simplistically)
$Validator = new Validator($_GET, $_POST);
$Data = new Data($Validator);
$Page = new Page($Data);
renderPage($Page->Page);


I don’t like reading it captain pedantic. Deal with it. :)


On the one hand, you do have good reasons to use classes.
Rather than piecemeal loading all these functions from every page where a bunch of them aren’t being used, you can create three classes.
has all your database interactions in it and then you can treat all database interactions as an object. My queries are usually all executed with $Data->runQuery();
Since you’re working in raw PHP with no frameworks or libraries, you NEED to validate every input users send, or bots are going to spam the shit out of your database. The way you have things now, you’re probably either calling some function(s) on every form submit (every time $_SERVER[‘request_method’]===‘POST’) OR you’re just not doing it. When working in raw PHP, I always write a Validator class which sits in between every $_GET and $_POST and makes damn sure what ever is coming in meets a set of criteria that I expect. I’m happy to go into the architecture of this with you if that would be helpful.
I’m assuming you might have something for each page like
include(‘header.php’);
<my page specific PHP is here>
include(‘footer.php’);
Instead, I like to write a page builder class that constructs my pages dynamically based on routing. So then any given page becomes and instance of $Page and you populate it with various methods (like $Page->renderForm(‘form’);) You can also then base the routing logic on your form submissions.
On the other hand… it’s probably fine at this stage to just not use classes and if it works, why fix it?
You probably feel like you don’t have a need for classes because you’re just not comfortable working with them yet, and need more experience thinking through architecture. This is fine. This is normal. This is exactly where you should be, given what you say about your experience level.
SQL injection probably didn’t work because PDO protects you from that to some extent. Doesn’t mean you shouldn’t account for it in your input processing.
Most of my HTML comes from echo.
Good, it should. I effing HATE reading through code where people are tagging in and out of PHP all the time. It looks so ugly. That’s not a standard best practice, just MY personal practice. IMHO, for HUMAN readability purposes, HTML should either be in echos or template files.
I fricken hate this:
<a> <bunch> <of> <html> <php? run_some_php('here'); />
Don’t effing make me read that. I co-run an independent coding shop and whenever we work in PHP, I tell people please not to do that.


Steve Rogers, when the monkeys flew.


mander.xyz for science articles and memes. startrek.website and tenforward@lemmy.world for star trek memes. cybersecurity@sh.itjust.works for cybersecurity news, but not a lot of discussion.
The self hosting communities on lemmy.ml and lemmy.world are pretty active and good at answering questions.


I have kind of the opposite experience. When I go on reddit, I feel depressed and angry, when I go on Lemmy I laugh and learn stuff. Probably the communities I subscribe to though. I get political and regional news from Reddit (and don’t have an actual reddit account anymore). I get funny science and Star Trek memes from Lemmy and cyber security and tech news.


Effing thank you!


Valkyrien Skies. Then you can bring your base with you.
Not in a million years on that server though.
In all seriousness, second the guy who said Minecolonies. It turns Minecraft into SimCity. I really enjoy combining it with the Lost Cities. I like reclaiming ruined cities and repopulating them.
Years ago, I played on a server that had a bunch of mods that added more hostile mobs to the point that you had until the first night to build some kind of a basic shelter and then you just couldn’t leave until you had full diamond armor and weapons (even then it was iffy). There were like goblins and ogres and tigers and bears and stuff wandering around outside. The chat was just “<so and so> was killed by <weird hostile mob>” for days. It wasn’t very fun though.


Back a week later because I thought of this discussion when I read about this. https://mander.xyz/post/44801437


I’ve always thought this was a really cool idea. There are a few examples in Sci-Fi, other than Star Wars (Bespin). The Bobiverse for instance hints at such a thing (Odin) without getting at all into the mechanics of it.
The biggest problem is relative weights. Oxygen is going to sink into the planet while hydrogen and other light elements float to the top. Gas giants are mostly hydrogen.
How could a gas giant be made of mostly heavier elements so that there’s a layer of oxygen near the top (with survivable pressure)?
In all of these, storms are an interesting (very dangerous) problem. On Jupiter and Saturn, storms transfer material from deeper in the planet’s atmosphere into higher atmospheric levels (leading to color changes like the Great Red Spot). Storms will dredge up unbreathable material which the very least would require the cities to seal up and ride them out. And storms on gas giants can last for decades or centuries (Great Red Spot) so your cities need to be able to navigate away from them. But this circulation of material is likely critically important for any biosphere maintaining the oxygen atmosphere.


Thank you. You saved me a Google search.
I mean… in 2026, this is probably a viable business strategy tbh.