Posts

OOP

 OOP 1) Abstraction: H id es complexity (ex: volume button on remote) 2) Encapsulation: H id e and secur e data Types:   member variable (hide state; ex: private or protected), function (hide behavior steps, ex: expression-bodied method ), class (hide domain responsibility, ex: internal) 3) Polymorphism: EX: man = father, husband, and employee 4) Inheritance

AI: The Ralph Loop

AI: The Ralph Loop "Ralph Loop" (or Ralph Wiggum Loop) is an architectural pattern where an AI coding agent is wrapped in an infinite while loop to execute tasks autonomously over long periods.   How a "Ralph Loop" Works Task: You feed the loop a structured backlog, like a local Product Requirements Document (prd.json) or a checklist. Fresh Instance: The loop spawns a brand-new AI agent session (using tools like Claude Code or Gemini CLI) with a clean context window. Execution & Memory: The agent reads the checklist, picks the highest-priority task, edits the code, and runs your compiler, linter, or test suite. Stop Hook Intercept: When the AI attempts to exit, a custom script or hook intercepts it and verifies if the code compiled and if tests passed. Next Iteration: If the task failed, the script launches a fresh agent instance. Because the previous agent modified files and left notes on disk, the new agent picks up right where the last one left off. The loo...

Aaron Stannard's AI Tools

Aaron Stannard's AI Tools   openclaw simon Crop - verify library SlopWatch - detect reward hacking behavior Opus 4.6 & Sonnet 4.6 Copilot OpenCode Claude Code Codex 5.3 model for debugging Qwen2.5 27B llama.cpp local. tmux - Terminal multiplexer suo apt install -y tmux Ralph LLM loop Akka.NET (should use immutable record types when deal with actor messages) StirTrek, May 1 in Ohio NDC Copenhagen in June SQL (prefer Dapper and parameterized SQL)

AI Commands

 AI Commands AI commands are commands run in the AI coding tool that start with slash \ or "at" @.  Common  AI commands in AI Coding Tools (GitHub Copilot, Cursor, VS Code) are: /explain : Analyzes the selected code block and explains its logic in plain English. /fix : Scans the selected code for bugs, errors, or security vulnerabilities and proposes a corrected version. /tests : Automatically generates unit tests for the active function or class. /docs : Generates standardized documentation comments (like JSDoc or Docstrings) for a piece of code. @workspace : Tells the AI to look at the entire project repository for context, rather than just the active file. @file:index.js : Pinpoints a specific file in the project to include in the AI's prompt context. Slash commands in AI Coding Tools (Claude Code) are : /compact : Compresses a long chat history into a dense summary to save context window tokens. /clear : Wipes the active conversation completely so you can start a bran...

AI Factory Engineering Coding

 AI Factory Engineering Coding AI software factories: https://factoryengineering.dev/ AI-assisted Development - Michael Perry:  https://www.youtube.com/watch?v=t13OH8TmeRk Roo Code extension is now Cline extension in VS Code Had Roo models fire off Playwright for testing rsync - remote sync utility tool - puts into shared area on network  Orchestrator (workflow),      planner - happy path, edge cases     Loop       test-writer       code-writer       refactor     End Loop     planner - recheck that plan done IMPORTANT - All must escalate to Orchestator on problems Docker Compose with one YAML file Software Factory - Factory Engineering (team) Skills = team preferences or coding standard applied to certain type of tech   used when AI builds code for you.   Cursor - ran against all SQL script data and create skill that captures that info. Most modern development is ...

ML Exam Prep: 10 - Misc

  ML Exam Prep Misc Search Types 1) Lexical search: matches exact words 2) Semantic search: understands concept   3) Contextual search: adapts results using user data or surrounding conversation Cross-account IAM roles   For S3 access, to give user access (the ML startup's account) to resources in another AWS account (the company's account), create IAM role in the company's account with permissions and specify the ML startup account's ID.  

ML Exam Prep - 9 - Parameter Tuning

Image
  ML Exam Prep Parameter Tuning