Navigate Select ESC Close

Migrating 3.7 Million Lines Of Code

2024-01-30 Science & Technology
158.5k
3.9k
266
ThePrimeTime
ThePrimeTime
1.1m subscribers

Unlock all features

FREE: Get instant access to 10 AI summaries, chats, or transcripts per day.

Description

Recorded live on twitch, GET IN https://twitch.tv/ThePrimeagen Become a backend engineer. Its my favorite site https://boot.dev/?promo=PRIMEYT This is also the best way to support me is to support yourself becoming a better backend engineer. Reviewed article: https://stripe.com/blog/migrating-to-typescript By: Andrew Lunny | https://twitter.com/alunny MY MAIN YT CHANNEL: Has well edited engineering videos https://youtube.com/ThePrimeagen Discord https://discord.gg/ThePrimeagen Have something for me to read or react to?: https://www.reddit.com/r/ThePrimeagenReact/ Kinesis Advantage 360: https://bit.ly/Prime-Kinesis Hey I am sponsored by Turso, an edge database. I think they are pretty neet. Give them a try for free and if you want you can get a decent amount off (the free tier is the best (better than planetscale or any other)) https://turso.tech/deeznuts

Top Comments (10)

@atiedebee1020 2024-01-30

The fact that 3.7 million lines of JavaScript exist in a project scares me

924 21 replies
@vladventura1928 2024-01-30

1:43 We still use Cobol at my current job (it's also my first soft dev job). When I have to work with it, I feel like an archeologist digging through fossils of the past

272 11 replies
@NuncNuncNuncNunc 2024-01-30

The other day I ordered two burritos from a local shop and the guy behind the counter stuffed fillings for both into same wrap. He tried to fold it but made a complete mess. It just overflowed everywhere. I asked what's up with that. He replied, "Don't ask me. I'm just an endofunctor following arrows." Lesson learned: don't go to Mona D's Burritos.

149
@JaredFL 2024-01-30

bro does the jest test memory thing every chance he gets

38
@dereklugowski 2024-01-30

21:34 "What's a monad? A monad is a burrito." Thanks for leaving this in 😂

94 5 replies
@georgehelyar 2024-01-30

One minor reason to order imports is to reduce merge problems. e.g. if you add an import in one place and someone else adds the same import somewhere else in the same file you might end up with it there twice after a merge, but if you both add it in the same place it just disappears from the diff. It should always be the work of a tool though, nobody should ever have to think about it.

47 2 replies
@eduantech 2024-02-15

16:35 reordering imports' purpose is to help Git not create conflicts just because two people added their imports at the end of the list, even though one starts with b and the other with u. Keeping them ordered avoids such conflicts.

4
@awesomedavid2012 2024-01-30

One of my favorite parts of using Go with nvim is the golines formatter which uses goimports/gofmt to automatically remove and organize imports for me. I like that it's organized in a consistent way, but above all that, I like that I don't have to think about organizing them at all. For those curious, goimports is gofmt with the additional import stuff. Golines is goimports but it limits lines to a certain size

16
@jp263 2024-01-30

Re-ordering imports (or anything) listed alphabetically is super helpful when scanning code to ensure no duplicates or just to see if something you expect to be imported is or not

24 1 replies
@antonpieper 2024-01-30

16:24 So that no one removes an import, adds it to the bottom and now git recognizes that as a change. It makes git gistory more consistent

21 1 replies

Unlock the Data Inside
Turn Videos into Knowledge

  • Get FREE 10/day: transcripts, summaries, chats
  • Chat with videos, export text & PDF
  • $1 free API credit for RAG, chatbots & research

Free forever plan • All features unlocked

App screenshot