and carefully took notes, I suddenly realized that what President Yuan mentioned during the dinner was actually the other co-founder of CursorArvid Lunnemark:because I couldn't find the "digging tunnels" anecdote that President Yuan kept talking about in Aman's blog.
I quickly turned to read Arvid's blog, the "real person" as President Yuan put it.
This big brother is thinking about two questions:
Why is teleportation so hard to achieve?
Why is the cost of digging tunnels so high?
This is the question cited by Yuan Zong.
Arvid's working principles
Face chaos, deal with chaos
Allow things to remain different
Always use UUID (Universally Unique Identifier)
Delay Serialization
Observe things in person
Never name as
(including the endpoint), to avoid ambiguity.
Danger label
, clearly indicating the reason for the risk. Make the potential consequences clear to subsequent developers.
Good tools are essential.
For any task, ask the most senior engineer you know what their favorite tools are. If they're not around, you can consult the best language models (which may lack precision but surprisingly recall a broad range). If there aren't good tools available, then develop one yourself.
Aman Sanger's Commonplace Book
Can't help but marvel: it's like one foot in the sky and one on the ground.
Class 1 problems are caused by imperfect technology and can usually be solved by the market; Class 2 problems, however, are caused by the inherent complexity of the technology itself.
The online version of the book "Open Source Applications Design," which explores the design principles, practices, and cases of open-source software.
What is this 👻? Various pieces of information about plants. But after checking out the webpage, I found it quite interesting.
Tweet post recommending obscure books📚.
A magazine about novel and underrated ideas for improving the world.
In addition, there are music playlists, Makefile resource collections, bookstores specializing in rare books, homomorphic encryption references, famous quotes, the only book Yuan Zong has ever listened to, "The Little Prince," practical advice for mathematical writing, English writing guides, enhancing research taste, Google Maps for Middle Eastern flavored Laffer restaurants, a football player's Wikipedia page, a global typing (literally) competition website, and the Github for command-line fuzzy finders.
After going through all these things, some relevant and some not, my thought💡 was: doesn't this guy have any normal hobbies? Isn't playing games more enjoyable?
Article
I read an article he wrote last year titled "Prompt Design". Here's a rough summary:
Prompt Design: Designing prompts like designing websites
Prompting is not just an engineering issue, but a design problem, so it should be called Prompt Design, not Prompt Engineering.
The core definition of Prompt Design
What is Prompting?
By using clear and high-quality instructions, Prompt can enhance the performance of language models (LLM), which is analogous to how clear communication helps humans better understand information.
The challenge of dynamic input
Prompting is not just static writing; it needs to handle various input variables and dynamically adapt content, similar to dynamic data presentation in web design.
Similarities between Prompting and Web Design
Whether it's Prompting or Web design, clear communication is at the core, ensuring that the audience (or model) can quickly understand the content.
Prompting requires dynamically generating content based on input variables, while Web design needs to respond to dynamic data.
Adapt to different sizes or contexts
Prompting must adapt content within the context window of an LLM; Web design needs to be optimized for different screen sizes.
Development practices of Prompt Design and Web Design
The importance of previewing effects
The author emphasizes that whether designing a website or a Prompt, checking the actual rendering effect is crucial. For example:
It appears logically correct but may cause problems after rendering due to confusion between the username and the message.
Composable components
Both Prompting and Web design can simplify the implementation of complex scenarios through componentization.
Declarative is better than imperative
It is more readable and maintainable. This can improve readability and maintainability.
Pursuing "pixel-perfect precision"
When conducting Prompting, especially for lower-performance models (such as GPT-3.5), it is necessary to ensure precise formatting without extra line breaks or formatting errors. Similarly, sometimes every pixel adjustment is crucial in Web design.
Further analogies of Prompting Agents
The prompting of LLM Agents is analogous to interactive websites: Agents can "click buttons" by calling functions; The Prompt will re-render like a website, responding to these function calls.
The Difference Between Prompt Design and Web Design
Difference in Medium
Prompting currently only handles text (at that time, this was an article from last year); Web design involves multiple media (images, videos, interactions).
Cache Optimization
Cache optimization in prompting mainly focuses on reducing the cost of re-rendering; Web design places greater emphasis on page loading speed.
From Prompt Engineering to Prompt Design: The Birth of Priompt
a Prompt design library based on React and JSX, aiming to provide a more elegant Prompt design experience.
For more content, you can check out the original article 😊