toad.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Mastodon server operated by David Troy, a tech pioneer and investigative journalist addressing threats to democracy. Thoughtful participation and discussion welcome.

Administered by:

Server stats:

240
active users

#comments

1 post1 participant0 posts today

Code review with me: WP-multicomment-threads

I was searching for a very specific set of features in a WordPress plugin. As searching on search engines was not helping, I asked ChatGPT to interactively ask me questions about my requirements and suggest a free plugin.

The WP-multicomment-threads I wanted

Those of you who remember Squidoo will remember the side-by-side debate module. Comments could be added to one column or the other to make the case for or against something.

I wanted that. I was thinking a page with two child pages to hold the for and against comments. That way, it could also take WebMentions with a target for each side.

As a plugin, ideally. Something already tested.

The WP-multicomment-threads I got

Chat did not know of anything that matched. So it gave me some code.

I’ve created a repository on GitHub and plan to review and refine the code. Please join me as we code review ChatGPT.

Read more to see the code and find out what happened next. (Mastodon users might see some ugly code view on the original page to see nicely formatted code).

WP-multicomment-threads Version 1 – ChatGPT’s draft

<?php/** * Plugin Name: Comments of Another Post * Description: Provides a shortcode [comments_of post_id=123] to embed comments from another post or page. * Version: 1.0 * Author: ChatGPT and me */function coa_render_comments($atts) {    $atts = shortcode_atts([        'post_id' => 0,        'show_form' => false,    ], $atts);    $post_id = intval($atts['post_id']);    if (!$post_id || get_post_status($post_id) !== 'publish') {        return '<p>Invalid or unpublished post ID.</p>';    }    // Setup global $post    global $post;    $old_post = $post;    $post = get_post($post_id);    setup_postdata($post);    // Start output buffering    ob_start();    // Output comments    if (comments_open($post_id) || get_comments_number($post_id)) {        comments_template('/comments.php', true);    } else {        echo '<p>No comments yet.</p>';    }    // Optional form    if ($atts['show_form'] && comments_open($post_id)) {        comment_form(['comment_notes_after' => ''], $post_id);    }    // Reset global $post    wp_reset_postdata();    $post = $old_post;    return ob_get_clean();}add_shortcode('comments_of', 'coa_render_comments');

WP-multicomment-threads Version 2 – edited by humans with better features

I am having a painful headache day. Clearly, my reviewed and refined version might not happen today.

I will post an update once I have made changes.

You can see the most recent version on GitHub.

Vision for the future

I’d like to end up with a WP-multicomment-threads that is robust, works with the block editor, and is easy to use. This will probably mean that I have to roll up my leaves and get my hands dirty with the JavaScript monster that is part of the block editor. I call it a monster because I find it super off-putting. I’d rather not touch it but will probably have to do so.

All help is appreciated.

Other blue sky wishes include:

  • Object Oriented
  • Good class abstraction
  • Easy to maintain
  • Developer friendly
  • End user-friendly
  • Not just maintained by me
  • Fun to play with

Let the code review begin. Fork me on GitHub.

Syndicated to:

en.wikipedia.orgSquidoo - Wikipedia

Really happy I'm adding more functionality to my tech blog: integrated Mastodon comments! Here's a preview of how it looks after some layout mods.

I'll need a Mastodon post ID in order to reference it in the Hugo front matter... so you might see me post a few toots of my older posts. :blobcatwinktongue:

Thanks to @carlschwan and his post/guide: carlschwan.eu/2020/12/29/addin

#mastodon #hugo #hugossg #ssg #comments #blog #isso #giscus #utterances #disqus #blogging

➡️ burgeonlab.com

#LLM tech is about to kill anything where people are able to contribute:

The Future of #Comments is Lies, I Guess
aphyr.com/posts/388-the-future

"I strongly suspect the only reason #Mastodon hasn’t been eaten alive by LLM #spambots is because we’re just not big enough to be lucrative. But those economics are shifting, and even obscure ecological niches can be worth filling."

Back to Web 1.0? 🤨😞

aphyr.comThe Future of Comments is Lies, I Guess

As of today (May 21, 2025) through tomorrow, the #FDA is taking public #comments on the proposed rule change for #covid #vaccine #boosters. I have no idea who will read these comments or if they'll do any good. But it seems like we have to try. Please add your voice at regulations.gov/commenton/FDA-

Note that you have to choose a category for your submission. I picked "#Drug industry" since that's where most of my work is these days. Those still in patient care should choose "#Health professional. For everyone else, "Individual consumer" is probably appropriate. My letter appears below.

Good morning, and good luck.

===

Recently announced plans to change the covid vaccination approval process will, if implemented in their current form, make it difficult to impossible for people under aged 65 without serious medical conditions to receive vaccine boosters.

This proposed change seems to be rooted in the idea that covid is a serious threat only to certain groups. Nothing could be further from the truth. Of course older people, and those with underlying medical conditions, are at greater risk of morbidity and mortality from covid infection. However, healthy younger people do can and do die from the disease.

Consider that as of July 2022, about 8,000 people in the US aged 18 to 30 had died of the disease. This is greater than the number of US military deaths in the Afghanistan and Iraq wars, over a much shorter period: two and a half years for covid, vs. eight years for Iraq and twenty for Afghanistan.

The idea that vaccination and boosters should be restricted is a lethal myth. As a biomedical researcher and former military medic, I consider this change deeply unwise, and urge the FDA to continue using current approval protocols.

Daniel Dvorkin
Ph.D., Bioinformatics, University of Colorado, 2013
M.S., Biostatistics, University of Minnesota, 2007
Medical Service Technician, United States Air Force, 1989-1997

www.regulations.govRegulations.gov

What’s interesting parsing #tiktok is the amount of pro-Russia #comments in relation to pro-Russia content.

That ratio being something like 10000 to 1 or more.

Which leads to a pretty suspicious condition, that the platform’s comment section on topics #russia considers important is being driven by #bots / #trollfarms.

Probably true of US tiktok too, where MAGA is probably loaning firepower from Putin.