Attributes: Defining Your Data

Definition: A quality or characteristic describing an observation, such as colour or size, equivalent to feature in machine learning contexts.

Attributes in Code vs. AI

  • In OOP: An attribute is a property of a class (User.email).
  • In AI/ML: An attribute (or feature) is an input variable (Age, Income).
  • In Vibe Coding: An attribute is a specific detail you want the AI to include.

Prompting for Attributes

When asking AI to generate data or mock objects, you must be explicit about the attributes.

  • Bad Prompt: “Generate some users.”
    • Result: [{name: "John"}, {name: "Jane"}]
  • Good Prompt: “Generate 5 users with attributes: UUID, hashed_password, last_login_iso_date, and subscription_tier (enum: free, pro).”
    • Result: Perfect, production-ready JSON.

Feature Engineering with AI

If you are doing ML, you can ask the AI to “suggest attributes.”

  • Scenario: You want to predict house prices.
  • Prompt: “I have a dataset of houses. What derived attributes (features) should I create to improve my model?”
  • AI Answer: “Create ‘price_per_sqft’, ‘age_of_roof’, and ‘distance_to_school’.”

The “Vibe” of Data

In the vibe coding era, you often deal with unstructured text. You can use AI to Extract Attributes.

  • Prompt: “Read this email and extract the attributes: sender_sentiment, urgency_level, and action_items.”
    This turns messy human text into clean structured data for your code to consume.

Similar Posts

  • Agent Mode: Unlocking Global Context

    Definition: Advanced feature in tools like Cursor and Windsurf where AI actively searches and understands entire codebases for context-aware assistance. What is Agent Mode? Standard AI chat windows are “myopic”—they only see what you paste into them or the current open file. Agent Mode (or “Composer” / “Agent” tab in tools like Cursor) breaks this…

  • Alignment: Keeping the AI on Your Team

    Definition: The extent to which an AI’s goals are in line with its creators’ goals, ensuring safe and beneficial AI behaviour. What is Alignment in Coding? In broad AI safety, Alignment means “don’t destroy humanity.” In Vibe Coding, Alignment means “don’t destroy my repo.” It’s about ensuring the AI adopts Your Style, Your Conventions, and…

  • Algorithmic Bias: The Ghost in the Machine

    Definition: Stereotyping, prejudice, or favouritism toward certain groups, affecting data collection, system design, and user interaction. The “Vibe” Can Be Biased “Vibe” is subjective. AI models are trained on the internet. The internet is biased. Therefore, the “Vibe” is biased. Coding Bias Mitigating Bias in Vibe Coding The Ethical Responsibility As a Vibe Coder, you…

  • Bolt new in Vibe Coding

    Definition: A visual-first vibe coding platform optimized for rapid frontend development with live previews and one-click deploys. Understanding Bolt new in AI-Assisted Development In traditional software development, working with bolt new required deep expertise in rapid web development and deployment platforms. Developers spent hours reading documentation, debugging edge cases, and implementing boilerplate code. Vibe coding…

  • Convergence in Vibe Coding

    Definition: A training state reached when model changes become minimal between iterations. Understanding Convergence in AI-Assisted Development In traditional software development, working with convergence required deep expertise in optimization theory and training dynamics. Developers spent hours reading documentation, debugging edge cases, and implementing boilerplate code. Vibe coding transforms this workflow entirely. With tools like Cursor…

  • Broadcasting in Vibe Coding

    Definition: Expanding operand shapes in matrix operations to compatible dimensions for computation. Understanding Broadcasting in AI-Assisted Development In traditional software development, working with broadcasting required deep expertise in numerical computing and tensor operations. Developers spent hours reading documentation, debugging edge cases, and implementing boilerplate code. Vibe coding transforms this workflow entirely. With tools like Cursor…

Leave a Reply