Skip to content

Programming

Writing software: JavaScript, Node.js, web development, visual programming, Linux, tools and tutorials.

447 posts · page 10 of 19

The Mouse Whisperer: On Dragging A Cat With A Mouse; Or The DeltaX And Why Of Programming A Mouse

When you want to drag an element (like the cat image in the example), you start by attaching a `mousedown` listener that installs a `mousemove` handler and, when the user releases the button, removes it with a `mouseup`. The `mousemove` event fires on a timer, not for every pixel move, so you calculate the delta between the current cursor position and the previous one (`deltaX = current.x‑prevX`, `deltaY = current.y‑prevY`) and apply those deltas to the element’s CSS coordinates. After moving it you update the previous values for the next tick; if your interface is zoomed or panned, divide the deltas by the scale factor so the movement stays consistent. This relative‑delta approach keeps the dragged object in sync with the cursor without needing absolute positions of the click point on the element.

Say "No" To Balanced Education: It is A Flimsy Concept That Will Jeopardize Your Future

The post argues that a genuine school must be honest and results‑driven, criticizes the misleading notion of “balanced” education and the spread of lies that hinder learning, highlights state funding complications and the need to consider costs such as mental health and loans, then proposes learning modern JavaScript as a practical tool to build web, desktop, server, and AI‑based subscription businesses; it contrasts teaching biology facts with building games or simulations to explore real‑world contexts, urges continuous learning without jumping between subjects treating programming as a foundational skill akin to reading and arithmetic, and finally suggests starting with JavaScript tutorials and using the resulting applications for further projects.

Super Nerd; Or, A Fistful Of Code And The Age Of Enlightenment

I grew up playing arcade games, learning early programming on machines like the Commodore 64 and Atari, and spent years mastering BASIC before developing my own projects; recently I built a lightweight Svelte-like framework using Web Components that achieves bi‑directional data binding with minimal code, demonstrating how low‑level components can simplify UI development and enable visual programming tools for end users.

Programming Teaches Like A Mother

The post describes how beginners can start learning JavaScript simply by watching video tutorials and exploring existing modules before moving on to writing their own. It highlights the usefulness of creating small helper libraries—such as the author’s “one‑of” module that picks a random element from an array—and encourages using established utilities like lodash for efficient coding. By repeatedly reconstructing familiar programs, developers can deepen their understanding, refine their style, and gain confidence, turning practice into mastery and ultimately producing elegant, powerful code that feels almost artistic.

Learning Programming Is Easy, You Just Have To Put Your Foot In The Door

The author opens by declaring a single‑language focus and then walks through the very first steps of learning JavaScript: writing a “Hello World” in the console with `console.log`, executing it in Chrome’s DevTools, and then moving on to richer tutorials. They recommend starting with practical projects such as an Electron Fiddle desktop app, then exploring p5.js for creative graphics, and finally adding Node/Express or NativeScript for more complex applications. Alongside these tutorials they suggest browsing JavaScript libraries, awesome lists, and Git repositories, while favoring lightweight editors like Pulsar or zed over Visual Studio Code. The post emphasizes hands‑on practice, planning with paper diagrams for larger projects, and watching tutorial videos until something clicks. Finally it stresses that mastering programming is a powerful multiplier skill—much like language, reading, or math—and can elevate any other interest when applied through automation, simulation, visualization, or AI scripting.

Programmers! Don't Just Use Plain Variables, Oh No!

In this post the author explains how to replace simple variable assignments with reactive “Signal” objects in web applications: a Signal has get/set/subscribe methods so that when its value changes all subscribers are notified automatically. They then describe extending this idea into a signal tree—an ordinary JavaScript object whose properties (including a children array) are turned into Signals, allowing nested state to propagate through the UI via custom web components such as <loop> and <bind>. In short, server‑driven or user‑input data is inserted once into the tree, and any bound UI element updates automatically whenever that data changes.

The Future Is Always Bright, Once You Learn Programming

The author recounts their journey through programming languages—starting with ActionScript to solve early browser quirks, then shifting to JavaScript when Node.js enabled server‑side scripting; they note how PHP and Perl fell behind while JavaScript gained dominance. They touch on learning other languages (Python, Rust, C/C++), remarking that each offers its own strengths, but JavaScript’s ubiquity remains key. The post also reflects on object‑oriented design in Java versus the more lightweight approach of JavaScript, and concludes with a practical suggestion: use Electron Fiddle to build a simple desktop environment (taskbar, windows, apps) as a learning exercise for combining HTML/CSS/JS into a cohesive UI.

So You Have Learned Programming... What Do?

Electron is a lightweight framework that lets developers build desktop applications using web technologies—just launching a browser window that runs HTML, CSS and JavaScript locally on the user’s machine, eliminating the need for server-side infrastructure; by creating simple browsers and an application‑oriented OS in Electron you can quickly prototype tools, generate code, and bundle standalone apps that run entirely offline, while still enjoying the power of web APIs and signal‑based data binding to simplify UI rendering—making desktop apps both inexpensive to host and easy to distribute via secure payment gateways.

Learn Programming First! Don’t Let Ghouls And Ineffective Education Trick You Out Of Your Future

The post celebrates the power of self‑directed learning and coding as a path to future success, urging readers to rise above traditional schooling, memorization, and the fear some “ghouls” (old thinkers) feel toward new technologies. It claims that AI will replace programmers only if they let it; by mastering programming on their own terms—creating custom functions, loops, objects, reactive UI, and browser apps—the reader can outpace those who cling to outdated methods. The poem invites the audience to build on giants’ shoulders, keep learning “functional knowledge,” and grow until becoming a great being in this future‑oriented world of innovation.

Codename Mephistopheles; Or, How Computer Programming Changes Everything

Mephistopheles is a visual programming language built on a signal‑tree architecture that uses Web Components and a box‑and‑cable interface to let users—especially young developers—to create UI kits, website templates, and full applications with minimal code. By binding loops, prints, and other logic to signals, the system automatically updates DOM attributes and supports recursive nesting of custom elements, while AI assists in generating both code and images. The author envisions a marketplace for these components (akin to Envato or WrapBootstrap) and a simple framework that rivals heavier tools like Svelte or Angular, all driven by minimalism and simplicity.

Why Is Learning Programming So Unfriendly?

Online code editors such as CodePen, JSBin and the p5.js editor provide great environments for learning and quick experiments, but they still require you to write raw JavaScript by hand; visual programming systems like Apple Automator or the classic Alice IDE give a higher‑level view in which code is generated from a tree of UI components and actions. The post argues that building an application in this way involves three core concepts: (1) a tree of nested user‑interface elements whose events trigger “Automator‑style” actions on a data model; (2) state machines that manage program lifecycles, expose state changes

Are Programmers Scientists Or Just Really Weird Wizards?

I attended a company “swag” event that handed out free pens and other trinkets while watching salespeople in cubicles act friendly; this sparked my interest in programming, which I’ve been doing since childhood. After experimenting with HTML, Svelte, and React—seeing how even simple loops can build reactive interfaces—I decided to create my own visual programming framework where components are dragged and dropped into a data‑flow graph that automatically updates the UI when variables change. My design envisions a minimalist, zooming interface without taskbars, instead using connected windows like lab equipment so developers can repurpose tools at each stage. I conclude that learning JavaScript and open‑source web tech is essential, as it lets anyone build small applications or even a desktop environment capable of deploying web services.

Svelte, Vue, React, Angular Considered Evil: Just Loop Over Signals With A Signal Loop Web Component

I’m a developer who’s tried everything from C to JavaScript to Svelte, and I’ve grown tired of the bloated runtimes and frameworks that keep adding layers of abstraction. In particular, TypeScript feels like another “typed” version of an untyped language that only adds complexity; similarly, React’s JSX is clunky and hard‑to‑port because it forces you to weave array mappings into custom syntax. Instead of sprinkling a few dozen libraries onto a page, I propose using native Web Components with a lightweight signal system: just a handful of lines can give you a component that subscribes/unsubscribes to signals in its lifecycle, supports nested loops via dotted paths, and even offers two‑way data binding by scanning for `data-bind` attributes. With this minimal approach you get the benefits of reactivity—loops, dynamic instantiation, type mapping—without the mental overhead of casting or ad‑hoc parsers; it’s a “Swiss army knife” that returns code to plain, portable HTML while still keeping the structure and lifecycle advantages of components.

Multiversal Travel; Or, Life After A Neat Nap

I started my journey in America by embracing my “inner animal” – a muscular house‑cat that inspires me to nap deeply and dream up creative ideas – and this habit of mine has guided my recent work on a personal web‑development framework that uses loops, signals, and a tree structure to manage component state; the system I’m building lets you organize signals in a folder‑like hierarchy so they automatically update UI elements when data changes, much like JSX, Angular, React, Vue or Svelte but with a simpler template tag that reduces boilerplate, while my visual programming language allows me to wire components together and use actions that trigger multiple signal changes; all of this is driven by the belief that naps are not only rest but also creativity, rebellion and reward for hard work, so I keep exploring new tools, building an audiobook series called “cat‑pea” that will be published in many languages, and continue to let my inner cat guide me toward inventive solutions.

Hominus Noctrurna; Or, What Is Late Night Programming, Anywho?

Late‑night coding adventures are described in a single, vivid paragraph: the author recounts fixing MySQL crashes, writing PHP for large‑scale reports, and debugging Unicode path exploits on IIS servers; he also recalls sysadmins wrestling with misconfigured routers at AOL and small ISPs, and a frantic night when a period in an email address brought down a Postfix mail server. These stories illustrate how programmers often work long hours to solve puzzling problems—whether it’s restoring a broken postfix service or hunting down a rogue process that ate CPU on a shared host. The narrative concludes with reflections on the value of those late nights: they sharpen skills, reward learning, and reinforce good practices such as using GUID passwords and externalizing user accounts, so that one can build reliable systems while enjoying the thrill of solving problems in the quiet hours.

Programming Data Structures; Or, Inventing A Machine That Is Already Old And Wrong

A post describing how to build a tree‑like data structure in JavaScript that emits simple “changed” events from tables (e.g., a people list) and folders so that a UI framework such as Svelte can efficiently re‑render only the affected parts, and it ends by inviting readers to ask an AI for a minimal signals implementation.

Programming Has Teeth

The post argues that all teenagers should learn programming—especially JavaScript—and highlights beginner-friendly tools such as Node‑RED, p5.js, and Electron Fiddle to provide a powerful web‑based introduction. The author then describes their own visual programming language, which uses draggable windows, wires, gradient manipulation, and an automatic “bubbling signal tree” that updates UI elements when files are added or removed; they envision a lightweight file system within the browser that enables rapid prototyping on single‑board computers. Finally, they claim that mastering programming gives intellectual independence, accelerates learning, and offers a fast route out of poverty, making it a vital tool for personal empowerment and creative problem solving.

The Future Of Programming, Where Everyone Can Create Beautiful Applications

The post argues that the rise of AI tools is reshaping programming, making it more vibrant and accessible, especially for web applications where UI design has moved beyond flat, boring designs to dynamic, visually driven interfaces. It highlights visual programming as a game‑like, block‑based approach that lets users assemble apps by dragging UI components onto grids, binding them to data trees that automatically update the interface whenever database objects change—so actions like adding songs or creating playlists instantly refresh lists and trigger further updates. By treating database relations as simple connected boxes (e.g., account → profile, playlist → song), visual programming turns coding into a puzzle of linking concepts rather than writing syntax. The author stresses that this approach not only simplifies development but also opens up side projects for many, while noting security benefits of lightweight, open‑source browser frameworks over slow‑updating web stacks. In short, the future of app building is vision‑driven: an endless desktop of small, interconnectable machines that can be assembled by anyone through intuitive visual tools.

Programming All The Things

The post argues that programming is a creative art form that extends its creator’s vision, and it champions visual programming languages (VPLs) as a way to build complex workflows with simple commands such as run‑query, filter, map and reduce; it stresses creating a static skeleton file tree, then adding UI components that trigger commands via state machines to manage transitions between states like initial→logged‑in. It contrasts “commands” and “applications,” claiming the former should be simple and focused while the latter provide a shell for executing them. The author encourages using Electron as a bridge between web tech and OS access, suggests starting with VPLs or open‑source tools, and concludes that mastering these concepts will transform beginners into great programmers.

Programmers, Inventors, and Wizards; Or, Life After Learning Programming

After mastering modern JavaScript, you’ll start to see spreadsheets not just as static tables but as a simple visual‑programming language, and this new perspective will spark a chain of experiments that deepen your understanding across many domains. Your diagrams become ubiquitous, and you’ll invent and reinvent tools—factories, assembly lines, warehouses—in a single afternoon, while also building text‑adventure games with AI‑generated art and interactive doors, or visual music languages that animate pixel art as songs play. By the time you’re in seventh grade you could already be selling your game‑creation platform to a worldwide audience, proving that programming is not just code but a superpower that lets you create entire universes from imagination alone.

JavaScript Starting Points; Or, Before You Program Your First Hello World

JavaScript—officially ECMAScript—is the modern language that powers web applications from client to server, offering uniformity and ease of maintenance across browsers and back‑ends; other languages may duplicate its capabilities but lack its widespread adoption. For cross‑platform desktop apps, frameworks such as Electron or NW.js (both Chromium‑based) are recommended, while native OS apps should use the platform’s own language. Beginners can start with simple projects like opening an empty window or building a note‑taking app, experimenting with tools like the p5.js editor, and exploring video tutorials or resources like nexe for executables and NativeScript for mobile. Curated “awesome” lists (e.g., awesome-nodejs, awesome-electron) provide further learning paths, while books such as *Eloquent JavaScript* or *You Don’t Know JS Yet* supply concise code examples to solidify syntax understanding.

What Is It Like Inside A Computer Program?

The post explains how to tame program complexity by treating code as a hierarchy of “rooms” or hollow spaces that can be nested and compartmentalized. It illustrates this idea first with a video‑sharpening pipeline that breaks a movie into frames, sharpens each frame separately, and then recombines them—showing how processing in small chunks saves memory and speeds execution. Next it introduces the metaphor of a `Room` object containing a list of sub‑rooms, which can be generalized to a recursive `Location` structure, enabling models like maps or text adventures. Finally it describes an actual UI example: a pannable/zoomable desktop with windows that contain title bars, each having a selectable feature; clicking and Ctrl‑click logic is encapsulated inside this nested structure. The key point is that the language need not prescribe the layout—developers should consciously build these recursive, self‑similar layers so that new ideas stay within their appropriate “room” and don’t leak into unrelated parts of the program.

Easy PZ And The Kludge; Or, The Big Mistake That Programmers Should Unmake

The poem celebrates a pan‑and‑zoom user interface in which new windows open beside the current ones instead of overlaying them, giving the user an overview that can be explored with pinch or scroll gestures on phone and desktop alike. It argues that this simple layout eliminates the need for complex responsive design, allowing consistent X‑and‑Y positioning across devices while letting users drag and drop UI elements to personalize their experience and even build apps themselves.

A Day Of Debugging

The author argues that even simple command‑line tools can benefit from an explicit life‑cycle when they are built with object‑oriented programming, but the real advantage shows up in GUI applications where widgets need clear initialize‑open‑close‑destroy stages to manage event listeners and avoid memory leaks. He explains how attaching a click listener on every open creates dozens of duplicates unless it is removed on close, and that a well‑structured life‑cycle makes debugging and refactoring easier. The post recounts his own experience adding custom properties (zoom, scroll, etc.) via proxies, noticing repeated code, and introducing long‑named life‑cycle functions to improve readability. He then describes a bug caused by initializing UI elements before the UI is ready, illustrating how improper ordering can break the cycle. Overall, he stresses that a consistent object‑oriented approach, even if unconventional, keeps complex GUI systems manageable and reduces bugs.