Skip to content
tezvyn:

All bites

The whole library, newest first. Filter by what you are here for, or pick a topic if you already know.

8667 bites

Page 283

Python Enums: Give Names to Magic Numbers
Python & FastAPI2 min read

Python Enums: Give Names to Magic Numbers

Python's Enum gives meaningful names to "magic numbers" or strings. Use it for fixed sets of options like statuses or categories to make code self-documenting. The footgun: don't compare members to raw values; compare member to member for type safety.

Python Packages: Grouping Modules with __init__.py
Python & FastAPI2 min read

Python Packages: Grouping Modules with __init__.py

A Python package is a folder of modules treated as one unit. The __init__.py file marks the folder as a package and can run setup code. Use it to organize large codebases.

Python Data Classes: Write Less Boilerplate
Python & FastAPI2 min read

Python Data Classes: Write Less Boilerplate

Python's @dataclass decorator writes boilerplate code like __init__ and __repr__ for you, turning a class with type hints into a data container. Use it for API payloads or simple records.

Python Type Hints: Documentation Your Linter Can Read
Python & FastAPI2 min read

Python Type Hints: Documentation Your Linter Can Read

Type hints describe expected values, but Python itself does not enforce them while running. Static checkers and IDEs use the annotations before execution; libraries such as FastAPI can also inspect them for validation and API documentation.

Objection Handling: Turning Customer 'No's into Trust
Product Strategy2 min read

Objection Handling: Turning Customer 'No's into Trust

Objection handling turns customer feedback into trust, even when you say 'no.' Instead of just rejecting a feature request, you explain the 'why' behind your roadmap.

Influence Without Authority: Earn Your Influence Capital
Product Strategy2 min read

Influence Without Authority: Earn Your Influence Capital

Influence isn't rank; it's 'influence capital' you earn. Product managers use this to lead teams they don't manage by building expertise, strong relationships, and compelling data. The footgun is trying to make big asks before you've made these deposits.

Platform Governance: Enabling Scale Without Chaos
Product Strategy1 min read

Platform Governance: Enabling Scale Without Chaos

Platform governance provides guardrails for internal tools, letting teams build safely and quickly. It's crucial when a platform's growth creates security risks or duplicated effort. The footgun is reactive governance—only making rules after an incident.

Product Cannibalization: Eat Your Own Lunch
Product Strategy2 min read

Product Cannibalization: Eat Your Own Lunch

Product cannibalization means competing with yourself before someone else does. Apple famously did this with the iPhone, knowing it would kill the iPod. The footgun is accidentally shrinking your total market share instead of growing it with new offerings.

Product Launch Tiers: Right-Sizing Your Go-to-Market
Product Strategy2 min read

Product Launch Tiers: Right-Sizing Your Go-to-Market

Product launch tiers match marketing effort to business impact. Instead of a one-size-fits-all approach, you classify releases to allocate resources rationally, preventing burnout on minor updates while focusing big efforts on major products.

Repositioning: Changing Minds, Not Just Products
Product Strategy2 min read

Repositioning: Changing Minds, Not Just Products

Repositioning changes how customers perceive your existing product. Netflix did this by moving from DVDs to streaming to meet new demand. Don't mistake it for rebranding—repositioning alters the core promise, not just the logo or colors.

Product Strategy2 min read

Category Design: Don't Compete, Create the Game

Instead of fighting for a slice of the pie, bake a new one. Category design creates a new market you can dominate, rather than competing in an existing one. The footgun is thinking a new feature makes a new category; it requires teaching the market.

Product Strategy2 min read

Brand Positioning: Owning a Spot in Your Customer's Mind

Brand positioning is about owning a specific idea in your customer's mind. It's achieved through product differentiation and advertising to make your brand the default answer for a specific need, like Volvo for 'safety.'

Strategic Intent: Winning with Resourcefulness, Not Resources
Product Strategy2 min read

Strategic Intent: Winning with Resourcefulness, Not Resources

Strategic Intent is a long-term goal that outstrips your current resources, forcing resourcefulness. Instead of matching resources to opportunities, you set an ambitious target like 'Beat Xerox' and rally the organization to close the gap.

Product Strategy2 min read

Working Backwards: Start with the Press Release

Start product development by writing the press release for its launch. This forces you to define the customer benefit first, ensuring a new idea is customer-obsessed before you build. The footgun is starting with tech capabilities, not customer needs.

The Golden Circle: Leading with Why
Product Strategy2 min read

The Golden Circle: Leading with Why

The Golden Circle is a framework for inspiring action by communicating from the inside out: starting with your purpose (Why), then your process (How), and finally your product (What). It's used to build loyalty by connecting on belief, not just features.

Product Strategy2 min read

Principle of Charity: Argue the Strongest Case

The Principle of Charity means engaging with the strongest possible version of a colleague's argument, not the weakest. Use it in design reviews to find the best idea, not just to win the debate. The footgun is straw-manning an idea to easily knock it down.

Product Strategy2 min read

Executive Presence: The Ability to Inspire Confidence

Executive presence is the ability to inspire confidence in your team, peers, and superiors. It's the 'X-factor' that gets you chosen for senior roles and high-stakes projects.

Principled Negotiation: Focus on Interests, Not Positions
Product Strategy2 min read

Principled Negotiation: Focus on Interests, Not Positions

Principled negotiation avoids a battle of wills by focusing on shared interests, not rigid positions. It's a method for finding mutually acceptable agreements in conflicts. Use it in business deals or team disagreements.

Product Strategy2 min read

Force-Field Analysis: Map the Tug-of-War of Change

Force-Field Analysis visualizes a decision by mapping 'driving forces' (pros) against 'restraining forces' (cons). Use it to gauge the viability of a change, like a new project. The main footgun is listing forces without scoring their relative strengths.

Strategic Narrative: Your Company's Source Code for Story
Product Strategy2 min read

Strategic Narrative: Your Company's Source Code for Story

A strategic narrative is the source code for your company's story, defining its unique value. It's the blueprint for marketing, sales, and internal decisions, ensuring everyone tells the same story.