• Technology Consultant.
  • Software Developer.
  • Musician.
  • Burner.
  • Game Master.
  • Non-theistic Pagan.
  • Cishet White Male Feminist.
  • Father.
  • Fountain Maker.
  • Aquarium Builder.
  • Hamster Daddy.
  • Resident of Colorado.
  • Anti-Capitalist.
  • Hackerspace Regular.
  • Traveler of the American West.
  • 38 Posts
  • 1K Comments
Joined 3 years ago
cake
Cake day: June 7th, 2023

help-circle







  • I fail to understand why people think a bunch of rational corporatists who primarily want economic stability and who’s party contains a number of very progressive voices, some of them QUITE loud and influential are substantially the SAME as a bunch of INSANE RELIGIOUS MANIACS who think the End Times are coming and are literally stripping rights away from trans people, non-white people and women as fast as they can while looting the world around them as quickly as possible.

    I’m so fed up with it. Are you guys self destructively nuts? Your apathy and “both sides are the samisms” have SUBSTANTIALLY enabled our slide into fascism. I don’t care if you disagree. I hold you partially responsible and I’m not gonna stay quiet about it,

    I grew up around the donor class and they are NOT a monolith. Yeah, they’re shitty, out of touch and their wealth makes them crazy, but some of them are just VERY problematic while others are FUCKING NUTS. They ARE NOT THE SAME. I promise you. I know them very well, some of them personally.

    You know what? I’m wrong, because I DO understand. The right wing media LOVE to say things they know will trickle down to people like you and get you to stay disengaged and not voting. The defeatist attitude and lazy thinking lead to a self sabotaging apathy that helps the Overton window get dragged further right. You’re not going to get anything kinder from me than a “Shame on you, sir or madam, for falling for it and DOUBLE shame on you for amplifying it.”

    so tl:dr; STFU cantchangemymind.













  • 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);