Gajus Profile picture
Mar 17 4 tweets 2 min read
After publishing near 100 #TypeScript packages, I just realized that I am doing it wrong, and so are you (probably) 🧵
I looked at dozens of popular TypeScript libraries and virtually all of them have the same developer experience problem:

If you try to command+click the dependency in your IDE, it will take you to the .d.ts file... In this example, it is going to load index.d.ts of Turbowatch Notice that the path is tak...
...which is useless if you are trying to understand how module works b/c this file does not contain the actual source code.

Turns out, the fix is super simple! Just add "declarationMap"

github.com/gajus/slonik/c…

(No clue why this isn't true by default!)
With this simple change, now you can command+click on the dependency and it will take you straight to the source code 🤯, which is a _massive_ developer-experience improvement.

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Gajus

Gajus Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @kuizinas

Mar 21
Sent my family a few photos generated using @dannypostmaa's HeadshotPro and they didn't pick up on the fact that they are AI generated... Not sure how to feel about this, but the future is going to be wild 🤯 ImageImageImageImage
It is definitely a numbers game though. There are those that look convincing... ImageImageImageImage
And then there are these... 😂 ImageImageImageImage
Read 4 tweets
Jun 27, 2022
What makes a good / bad commit (message) 🧵:

First, the main goal of a commit is to introduce an atomic change.

Atomic changes contain only one feature, refactor, fix, etc.

A good commit allows to evaluate one change at a time and it contains only/all the changes necessary.
Bad commits happen because of a bad workflow.

Your workflow is rarely a reflection of what should be contained in a good commit, i.e.

9 times out of 10, if you commit using `git commit -a` you are making it a 💩 commit.
The workflow should be:

* finish developing the feature and test it
* think back through all the changes you had to make and how you would want to present them
* stage selected lines/rebase to create commits that introduce them in logical chunks/order
Read 15 tweets
Apr 28, 2022
We really have come a full circle.

Early 2000s: LimeWire, eMule, Shareaza
Now: Plex, Sonarr, Radarr

What’s in between? Netflix

And whats next… (hint: back to piracy)
For the longest time, we all liked Netflix.

They were the first to the market.

They had a ton of content.

They were easy to use.

Even studios liked it because its popularity reduced piracy.
However, Netflix success was evident, and studios took notice.

It became harder for Netflix to secure licensing deals.

Seeing where this is going, Netflix started producing content and studios started building their VOD platforms.
Read 11 tweets
Sep 22, 2021
I am paying increasingly more attention to what kind of nonverbal cues I display when doing video calls.

Is it 🤩🙂😐🤨or 😡. It matters.
Even if you are not in the center of attention, how you react to what is being discussed affects people on the call.

A deep thought may be misconstrued as disappointment or disagreement etc
It is not easy though. A lot of the times we do this without realizing.

Asking your peers to give feedback or a nudge if you slip helps.
Read 4 tweets
Sep 21, 2021
Equity for software engineers explained in layman's terms. 👇

(Personal opinions. Founder's perspective. Not a legal advice.)
First things first, equity issued at different stages of venture backed companies is hard to compare.

USD 100k worth of equity at an early stage company (pre-seed, Series A) might increase 5x-1,000x in value over time.

At later stages (Series D, [..]), it is unlikely to 2x.
For an employee of an early stage VC backed company, this means that while their salary is likely to only gradually increase, their equity value might increase several times in just the first year,

i.e. 100k worth of equity at Series A company ≠ 100k worth at Series D company.
Read 18 tweets
Sep 21, 2021
Giving out inflated titles does as much harm to the company as it does to the individual.
For a company, it leads to a culture of entitlement, politics, and artificial aspirations not attached to the evolving goals of the business.
As an individual, an inflated title with nothing to show for signals either that you weren't successful or bad culture. Focus on articulating your accomplishments.
Read 4 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(