0:00 / 0:00
Cursor@tembrasdevposted Jun 24, 202652s
Cursor UGC showcase: “For today's software engineering interview design cursor…”
Performance
2,371× reach
20.5M views from the creator’s 8.6K followers
- likes
- 63K
- likes
- comments
- 138
- comments
- shares
- 969
- shares
- saves
- 3.3K
- saves
- Estimated ad value
- ≈ $102.3K
- est. ad value
Hook & transcript · 52s
ShowcaseTalking head
- 0:00For today's software engineering interview
- 0:01design cursor for auto complete.Hook
- 0:03I capture a small snippet
- 0:04around the user's current position in the code base.
- 0:06Then we make an API call, sending the data over to the back end.
- 0:09There we'd be running a model like composer,
- 0:11which would generate a suggestion
- 0:12which would then return to our current app.
- 0:14Okay, good.
- 0:15But that only explains a current file.
- 0:16What if I wanted to ask something like,
- 0:18where's authentication handled in this repo?
- 0:20Right, so in that case,
- 0:20we would need code based indexing.
- 0:22We chunk the repo into logical pieces like functions and classes
- 0:25using something like tree sitter.
- 0:26These chunks would be sent to and processed by an embedding model,
- 0:29which would return a vector representation
- 0:30capturing the code's meaning.
- 0:32Then we'd set the embeddings and chunk metadata to a vector database
- 0:35like Turbo Puffer. But code bases constantly change,
- 0:37so how do you keep up with that?
- 0:38This is where we'd use a data searcher,
- 0:40like a miracle tree.
- 0:41The client keeps a history of the repo and the server does as well.
- 0:43Every few minutes, we'll make a comparison.
- 0:45If there's any differences,
- 0:46then we can assume that there's been a change to the code base.
- 0:48And only if something changes do we reindex anything. Nice job.
Hook = the first 3 seconds. Hook type and style are tagged by us.
Caption
This is just a little bit of the clever system design that goes behind making @trycursor, which you can try for free by visiting https://cursor.com! 💻 #Cursor #CursorCreator #systemdesign #softwareengineer #cs
#cursor #cursorcreator #systemdesign #softwareengineer #cs
♪ original sound - tembrasdev - tembrasdev
Creator
More like this
Same hook: Showcase






