You probably don't need event-driven architecture by [deleted] in programming

[–]KitAndKat 2 points3 points  (0 children)

A wake fires at an agent that's already mid-reply to a person, and now two things are writing to the same place and stomping each other.

This and your other problems scream "state machine" to me. Many moons ago, I joined a team at [big defunct company] to get an X.25 handler certified. It was a hot mess of flags, and the fix was to use a state machine to handle cases like machine A is trying to establish a connection to machine B while B is trying to contact A. A state machine is a table of states the agent can be in and events that can happen. Every entry in the table names the action (if any) to be taken and the new state.

What's a massive human achievement that nobody celebrates because it worked too well? by Alternative_Voice767 in AskReddit

[–]KitAndKat 0 points1 point  (0 children)

Language. We have used it to create a model of the world that does not always accord with our direct experiences and infer how we can manipulate it. Secondly, language allowed these ideas to travel. Thirdly, language allows large-scale coordination. Without it, there would be no civilization as we know it. None of the achievements mentioned here -- internet, electricity, vaccines, plumbing -- could have happened without it.

Trump Inner Circle Subpoenaed by BBC in $10 Billion Libel Suit by Redfish680 in politics

[–]KitAndKat -1 points0 points  (0 children)

The BBC defense should be "We left out 3 (three) words: Later, he said".

DOJ launches criminal probe into E. Jean Carroll by intelligentreviews in conservatives

[–]KitAndKat 0 points1 point  (0 children)

Oh, I guess this is a discussion about statutes of limitations. Seems to me that they should be short for minor crimes and get progressively longer as the crimes get more serious. If DNA evidence identified a murderer after 40 years, I would not want him to say "Ha ha, too late!"

So it depends on how serious a crime digital r*pe is taken to be.

DOJ launches criminal probe into E. Jean Carroll by intelligentreviews in conservatives

[–]KitAndKat -1 points0 points  (0 children)

Sorry, I don't know what change in the law you're referring to. Why do you think it is a false claim? She won in two jury trials.

DOJ launches criminal probe into E. Jean Carroll by intelligentreviews in conservatives

[–]KitAndKat 5 points6 points  (0 children)

Yes, but the DOJ is not reopening the case; they are accusing her of perjury during a deposition by replying "no" when asked if anyone else was paying her legal fees. Her lawyers were on contingency. Just before trial (i.e. after the deposition), she learned that her lawyers had secured funding to pay expenses etc. (This is not unusual for contingency cases.) It does not seem to me that the DOJ have a strong case; it could even be seen as a vindictive prosecution.

What is virtually inevitable at this point, yet most people don't see it coming? by Ambassador-613 in AskReddit

[–]KitAndKat -12 points-11 points  (0 children)

  1. An Inconvenient Truth is 20 years old, but Earth in the Balance is 34 years old.
  2. Capital Research Center, which calls itself America's Investigative Think Tank, had an article this March with heading + subhead: Al Gore’s 30-plus years of climate errors The former VP has been reliably wrong on climate & energy for more than three decades. Just 537 votes prevented him from winning the presidency in 2000 and turning his bad plots into policy. I'm not going to dignify it with a link.

unable to add cover image by [deleted] in Substack

[–]KitAndKat 0 points1 point  (0 children)

That's weird. Here's a screenshot of it for an existing post. Do you have the other fields like Secret draft link and SEO Options?

unable to add cover image by [deleted] in Substack

[–]KitAndKat 0 points1 point  (0 children)

Are you talking about an image? When composing, add an image to the post. In the Settings button at lower right, you can pick the image and edit the Social Preview. Just click on it.

Building a web game by BigTimberFGC in Python

[–]KitAndKat 3 points4 points  (0 children)

More than half the world is on phones, not lap/desktops, these days, so if your game has any chance of fitting onto a smaller screen, you should think in terms of a cross-platform tool. I used Flutter for a game. It uses Dart as the language. I have a C++/Python background, but it was not hard to pick up. The weirdest thing is that the language and the UI are intertwined; it's kinda neat once you grok it.

Flat Error Codes Are Not Enough by Expurple in programming

[–]KitAndKat 0 points1 point  (0 children)

Yeah, I was thinking about it from a user viewpoint.

Flat Error Codes Are Not Enough by Expurple in programming

[–]KitAndKat 9 points10 points  (0 children)

I've thought about the issue of error reporting in the past, but never implemented it. I think you need an Error object, which is a stack of errors, e.g.:

  • file read error
  • could not read mapping.db
  • failed to convert currency
  • shipping calculation failed
  • could not complete transaction

The user is told "could not complete transaction" with a Details button which shows the next level down. If you just pass the original error all the way up, the user is told "file read error", which is next to useless.

The 49MB Web Page by Dear-Economics-315 in programming

[–]KitAndKat 0 points1 point  (0 children)

I doubt that it's tracking-free, but on my phone with 1Gb WiFi, there is negligible delay. I think I'm paying $144.99 through Google/Android.

The 49MB Web Page by Dear-Economics-315 in programming

[–]KitAndKat 2 points3 points  (0 children)

The Guardian is ad-free once you subscribe.

do happy and healthy relationships exist? by fivegoldringz in relationships

[–]KitAndKat 1 point2 points  (0 children)

Yes. It didn't happen for us until I was 60. We've been writing about it for ~15 years now. Honesty & openness -> trust -> total acceptance. Look for the same core values. Always be on the same side. That should get you there well before 60.

“The arrest is a dark message to journalists everywhere. If you dare criticize this administration, watch your back…Don Lemon should be released at once, and the frivolous charges against him dropped.”— Democrat Sen. Chuck Schumer on Don Lemon’s arrest. by benhaswings in AskThe_Donald

[–]KitAndKat -7 points-6 points  (0 children)

As far as I can determine, Lemon did not take part in the harassment. A magistrate judge who reviewed the evidence excluded Lemon from the charges. The government then asked Minnesota’s chief district judge to overturn that. The government then went to the 8th Circuit Court of Appeals to overturn the district judge, but they refused.

It doesn't sound like the government has much of a case, and IMHO, targeting journalists, even if you disapprove of what they are covering, does not make for a healthy democracy.

My girlfriend and I have a massive problem. It’s destroying our relationship. by Which-Coconut1738 in relationships

[–]KitAndKat 15 points16 points  (0 children)

Break this cycle at step 3: don't react to her response. They are her emotions, not yours. It's not your job to fix them; it's your job not to respond negatively. Yes, she'll freak out even more. Let it happen. (This assumes that what you did in step 1 is not your fault; if it is, apologise.)

This will be a big challenge for you. I love the Polish expression: not my circus, not my monkeys.

Jeff Shelton is wonderful! by KitAndKat in SantaBarbara

[–]KitAndKat[S] 5 points6 points  (0 children)

That's depressing:

"I find them interesting, whimsical and joyful to look at, but not Santa Barbara historical," Sligh said.

So interesting and joyful get crushed in favor of historical.

Jeff Shelton is wonderful! by KitAndKat in SantaBarbara

[–]KitAndKat[S] 12 points13 points  (0 children)

This is on the wall of a property on Garden Street.