š¬ Unblocked ā answer questions about your codebase
Over the last few months I have been researching how teams are using AI into their workflows.
It turns out one of the best use cases is to accelerate shared understanding.
Finding the context needed to write code is often time-consuming, as people wait for responses from coworkers, dig through PRs, Slack, bug trackers, and docs.
So, today I am happy to promote Unblocked, which provides helpful and accurate answers to questions about your codebase, in seconds.
Unblocked tailors answers by complementing your source code with relevant knowledge across GitHub, Slack, Notion, JIRA and more. So you can spend less time digging for answers and more time writing code.
Back to this weekās ideas! š
1) š¤ Self-hosting LLMs vs using APIs
Speaking of AI, one of the most frequent questions I hear about integrating LLMs is whether to go the OpenAI route (or the likes), using their APIs, or hosting an open-source system yourself (e.g. Llama).
APIs of course win theĀ ease of useĀ andĀ time to marketĀ arguments, but what about other factors?
A few months ago I surveyed various people in the AI engineering space, and here is the consensus:
šø Cost & Skills
Counterintuitively,Ā self-hosting LLMs doesnāt typically save you moneyĀ over using APIs. OpenAIās pricing is extremely aggressive, and their team is world-class at optimizing the use of hardware.
For example, hosting a Llama node on a suitable AWS instance would likely cost you aroundĀ $8-10 / hour, which means it would lose money on anything but high-load workflows.
And even in high-load cases, the cost upside is unclear when you factor in maintenance, which requires strong technical expertise. If you donāt have such expertise in-house, self-hosting is out of the question.
šPrivacy & Security
Solid arguments for self-hosting are, instead,Ā privacy and securityĀ concerns.
While you can opt out of letting OpenAI use your conversationsā data for future training, I completely understand companies who are uneasy atĀ firehosingĀ vast amounts of private information (possibly including their customersā) to an aggressive startup.
So, if privacy matters to you, self-hosting an LLM may be worth the hassle.
You can find the full piece about how to integrate LLMs into tech stack below š
2) ā Eisenhower Decision Matrix
The Eisenhower Decision Matrix is one of the most famous management frameworks out there. It helps you prioritize tasks based onĀ urgencyĀ andĀ importance.
The matrix is divided into four quadrants:
ā Urgent and Important ā Do FirstĀ ā tasks that need immediate attention and contribute significantly to long-term goals. E.g. fixing a critical bug that's affecting a large number of users.
ā±ļø Important but Not Urgent ā ScheduleĀ ā tasks that are important for long-term goals but do not need immediate attention. E.g. planning for a new feature.
š Urgent but Not Important ā DelegateĀ ā tasks that need to be done quickly but do not contribute significantly to long-term goals. They can be delegated to others. E.g. routine administrative tasks, or responding to non-critical emails.
āĀ Not Urgent and Not Important ā Don't DoĀ ā tasks that do not contribute to long-term goals and do not need immediate attention, so they can be eliminated. Examples could be attending non-essential meetings or browsing the internet aimlessly.
The Eisenhower matrix is a fantastic starting point to reflect on how you spend your time, but it is also pretty basic. Here are a couple of doubts:
Urgent tasksĀ are often hard to delegate. Delegation is a long-term play; in the short-term it may require more time/effort than doing the thing yourself.
Non-important tasksĀ are ok, but they are often trivial, so if you only delegate those, you are limiting peopleās growth. It doesnāt help that non-important tasks are also oftenĀ small, which makes the ROI of delegation dubious.
I wrote a full piece about delegationĀ where I try to give the matrix more nuance and make it more useful for daily work š
3) šŖĀ Scope projects like IKEA
Over time I have realized that when somebody ā a product person, a CEO, whoever ā comes up with a product idea, they probably have a rough timeframe already in the back of their mind.
They donāt think their idea is worth atĀ anyĀ cost ā they think it would be e.g. a nice experiment if delivered in three months. Three months isnāt just a time here, it is a cost: it is three months multiplied by the salaries of the people on the team.
Projects only make sense if they fit a budget ā which the Basecamp guys callĀ appetite. The appetite for a project largely exists upfront, and is inseparable from the idea itself.
I have found that most issues with estimates, negotiations, and fighting between stakeholders, arise from such an appetite not beingĀ visibleĀ to the team, and not being treated for what it is: aĀ constraint.
Famously, IKEA designs furnitureĀ by creating the price tag upfront. They donāt design a chair first and ask manufacture what it would cost later. Instead, they know e.g. that there arenāt many good office chairs for <ā¬200, and that there are people in the market for those. So they ask: what can we ship at that price point? What can we include? What can we give up?
You can treat software projects like IKEA chairs. How can we solve this problem in one month? How can we design a solution that works within this tight scope?
Now, forĀ small-ish initiativesĀ that take up to a few weeks, I have found that getting this conversation right is 80% of the work. You align peopleās expectations, make constraints visible, figure out a reasonable scope, and go for it.
ForĀ large projects, instead, things are trickier.
Appetite might be unclear. Sure, if we are right about the need/demand for this, a year of development might be well spent, but 1) weĀ donāt knowĀ if we are right, and 2) is a full year really needed?
I wrote a full guide about planning and executing projects earlier this year š
And thatās it for today! If you are finding this newsletter valuable, consider doing any of these:
1) āļø Subscribe to the newsletterĀ ā if you arenāt already, consider becoming a paid subscriber. 1500+ engineers and managers have joined already! Learn more about theĀ benefits of the paid plan here.
2)Ā š»Ā Read with your friendsĀ ā Refactoring lives thanks to word of mouth. Share the article with your with someone who would like it, and get a free membership through the new referral program.
I wish you aĀ great week! āļø
Luca







I also have a doubts about Eisenhower Decision Matrix.
When do we have to use this matrix? every day, every week, when we are lost?