Skip to content

Instantly share code, notes, and snippets.

View artfwo's full-sized avatar
💭
Patterns are meant to be broken.

Artem Popov artfwo

💭
Patterns are meant to be broken.
View GitHub Profile

The Devil's Dictionary of Vibe Coding

Inspired by Ambrose Bierce

Vibe Coding (n.) The noble art of describing what you vaguely want in natural language and hoping the silicon oracle doesn’t hallucinate something that will get you fired. Once known as “programming.” Now a sophisticated form of cargo-culting with better autocomplete.

Agent (n.) A fancy name for a loop that keeps calling itself until the credit card screams. Marketed as autonomous intelligence. In practice, an overconfident intern that never sleeps and occasionally books your flights to the wrong continent.

#! /usr/bin/env python3
def get_scale_note(scale, step, offset=0):
octave, scale_index = divmod(step, len(scale))
result = scale[scale_index]
offset_step = -1 if offset < 0 else 1
while offset != 0:
while True:
@artfwo
artfwo / property.py
Created January 15, 2021 20:27
Pure Python runtime property to expression binding example using descriptors
#! /usr/bin/env python3
#
# Pure Python runtime property to expression binding example using descriptors
# (see below for usage example).
#
# This Property implementation allows setting a value using lambda expressions.
# The value will be recalculated if any property accessed during lambda evaluation
# changes its value.
class Property:
-- clock test
--
-- adjust mul/div
-- with e2/e3
--
-- change clock settings
-- from parameters menu
--
engine.name = 'PolyPerc'
-- clock test
--
-- ...
-- .
engine.name = 'PolyPerc'
local dividers = { 1, 2 }
local led_states = { false, false }
local tasks = { nil, nil }

Keybase proof

I hereby claim:

  • I am artfwo on github.
  • I am artfwo (https://keybase.io/artfwo) on keybase.
  • I have a public key whose fingerprint is AD0A A61E AF4E 58A0 CFE0 6003 ACA5 5732 FAF5 1E4F

To claim this, I am signing this object: