RSSAmplifier

Blog

ronjeffries.com

This is RonJeffries.com, the combination of new articles, XProgramming, SameElephant, and perhaps even some new items never before contemplated. Copyright © 1998-forever Ronald E Jeffries

ronjeffries.comRSS feed ↗10 posts

Latest posts

First Things First

--> Hello, loves! Before working out that validation idea, let’s commit the good bits. Surprise Idea: The search for joy for everyone must never be abandoned. Note Down toward the end, musing about how we can always improve code, I followed my nose into more philosophical terrain. If you wish, skip directly there. Despite the need to be awake, or the inability not to be, I’m not really at my best…

State Machine Classes

--> Hello, loves! Again with the weird hours! Elaborating an idea from a more civilized hour yesterday. Tout le monde déteste l’IA. Yesterday, the code for the QuestGiverDenizen included this definition of its state machine: self . transitions = dict ( seeking = dict ( has_item = dict ( to = 'satisfied' , hook = self . giving_action ), no_item = dict ( to = 'seeking' , hook = self . seeking_action…

State Table

--> Hello, loves! Weird hours again, but very interesting spike. Have a look! Tout le monde déteste l’IA. So last night, instead of waking up early, I couldn’t get to sleep, which rarely happens. Nothing really bugging me, just couldn’t drop off, so I got up at 0050 or something and came to the computer. I set out to make a state table for the QuestGiverDenizen. I thought the table should be a…

Too Early

--> Hello, loves! Regrettably awake at 0445, I look for something to code. Tout le monde déteste l’IA. It happens. Probably shouldn’t have eaten that granola bar right before bed. Anyway, I’m a morning person so let’s see what we can do about our QuestGiver and the bee version thereof. Like everything in the Dungeon except Dot (who is thus far nothing at all), Buzz the Bee is a kind of Content:…

Calming the Bee Code

--> Hello, loves! I entertain myself by seeing how to improve the bee ContentFactory method. Tout le monde déteste l’IA. The bee is a bit of a mess: class ContentFactory : def bee ( self , * , name , initial_sayings ): gift_sentences = [ 'Oh, thank you!' , 'I am most grateful!' , 'Here \' s something you may need.' , ] initial_sayer = NameSayer . cycle ( name , initial_sayings ) gift_sayer =…

An Idea

--> Hello, loves! As I dozed off, I had an Idea. We’ll think about that and then find something to do. LLM note. Important(?) closing. Tout le monde déteste l’IA. When I go to bed, I often think about whatever I’m programming, as such thoughts are rarely negative or troubling, so it’s not hard to get to sleep. There is a small risk that I’ll get back up to try them, but usually I just drop off.…

And Finally ...

--> Hello, loves! In a few more steps, let’s provide some class methods, and the one-time-thru version of Sayer. Added P.S. Tout le monde déteste l’IA. Here’s Sayer now: class Sayer : def __init__ ( self , messages , indexing = '' ): self . update_index = self . define_indexing ( indexing ) self . messages = messages self . index = 0 def __iter__ ( self ): return self def __next__ ( self ): m =…

Just Fiddling

--> Hello, loves! I was fiddling with the Denizen. I have a small need and a small idea. Small steps to nice outcome. Tout le monde déteste l’IA. Here’s Denizen, a bit changed from when you last saw it, I think. I changed it to use Sayers throughout: class Denizen : def __init__ ( self , * , name , initial_sayings = None , gift = None ): self . name = name if initial_sayings is None :…

Trying Something

--> Hello, loves! A small idea about the Denizen state machine. Tout le monde déteste l’IA. Here’s Denizen: class Denizen : def __init__ ( self , * , name , initial_sayings = None , gift = None ): if initial_sayings is None : initial_sayings = [ 'Hmm...' ] self . name = name self . initial_sayings = NameSayer . cycle ( self . name , initial_sayings ) self . gift = gift self . say = 0 self . gift =…

Owning It

--> Hello, loves! Tout le monde déteste l’IA. My moral principles were called into question yesterday. After cooling down, I think I should, well, think about them. Not sure I like the answer. I had tooted this little cri de cœur a bit ago: Damn. DAMN. I was researching FSMs, as one does. The cursed AI overview offered an example. Very trivial, nothing like what I need. It has that question area.…