• zack_overflow Profile Picture

    zack (in SF) @zack_overflow

    3 months ago

    One uncommon style convention we have in the Bun codebase is putting imports at the bottom of the file instead of the top of the file No one wants to see 100 lines of imports before seeing the actual meat of the code

    33 6 232 64K 22
  • sasuke___420 Profile Picture

    sasuke⚡420 @sasuke___420

    3 months ago

    @zack_overflow well, I think it's uncommon because it doesn't even work in most languages

    0 0 57 3K 0
  • AndersonAndrue Profile Picture

    Storm @AndersonAndrue

    3 months ago

    @zack_overflow 100 lines of imports.. surely that’s a modularity code smell?

    1 0 19 2K 0
  • KennethCassel Profile Picture

    Kenneth Cassel @KennethCassel

    3 months ago

    @zack_overflow wait this makes so much sense

    0 0 7 2K 0
  • SIGKITTEN Profile Picture

    SIGKITTEN @SIGKITTEN

    3 months ago

    @zack_overflow sir, "import statements must be at the top"

    0 0 3 1K 0
  • juzybits Profile Picture

    juzy @juzybits

    3 months ago

    @zack_overflow i like it

    0 0 2 1K 0
  • turing_hamster Profile Picture

    turing_hamster @turing_hamster

    3 months ago

    @zack_overflow someone should try one of those LLM coding benchmarks and see if they do better if they're prompted to put imports at the bottom

    1 0 2 583 0
  • Talor_A Profile Picture

    Talor @Talor_A

    3 months ago

    @zack_overflow illegal

    0 0 0 59 0
  • n4v1g8 Profile Picture

    Chris Malloy @n4v1g8

    3 months ago

    @zack_overflow Maybe you can put them in a separate header file ending in .ts.h

    0 0 11 1K 1
  • GeorgeLutas1 Profile Picture

    George Lutas @GeorgeLutas1

    3 months ago

    @zack_overflow Those that work in languages that can't do this must be a bit miffed about it. Also, 100 lines of imports is a lot of imports to have in a single file. I really hope this is gross exaggeration, for the sake of the developers.

    0 0 8 1K 0
  • LottoLabs Profile Picture

    Lotto @LottoLabs

    3 months ago

    @zack_overflow I like to know what I’m getting into tho

    0 0 5 726 0
  • rovert_snikle Profile Picture

    Trevor Elkins @rovert_snikle

    3 months ago

    @zack_overflow why do so few languages have the concept of import modules (like Swift)?

    1 0 4 2K 1
  • TylerCLaprade Profile Picture

    Tyler C. Laprade, CFA @TylerCLaprade

    3 months ago

    @zack_overflow I jump to symbol definition rather than directly opening a file, so I never see the top of a file.

    1 0 2 388 0
  • dan_ddyo Profile Picture

    ddyo @dan_ddyo

    3 months ago

    @zack_overflow this is insane. I love it.

    0 0 2 422 0
  • 01xNithin Profile Picture

    Nithin @01xNithin

    3 months ago

    @zack_overflow eughhh

    0 0 2 532 0
  • jakeissnt Profile Picture

    Jake @jakeissnt

    3 months ago

    @zack_overflow Where do exports belong?

    0 0 2 138 0
  • mikegiannulis Profile Picture

    Michael Giannulis @mikegiannulis

    3 months ago

    @zack_overflow I know an engineer who worked on a massive java project and they moved all imports to a separate file to make the codebase more readable. team's productivity shot up like 30% after that change 🔥

    mikegiannulis tweet picture

    0 0 1 228 0
    Download Image
  • nem035 Profile Picture

    Nemanja Stojanovic @nem035

    3 months ago

    @zack_overflow Functions can also be written in execution order, top down, instead of bottom up like in most languages.

    nem035 Profile Picture

    Nemanja Stojanovic @nem035

    2 years ago

    @zack_overflow Functions can also be written in execution order, top down, instead of bottom up like in most languages.

    nem035 tweet picture

    1 0 0 532 0
    Download Image

    0 0 1 971 1
  • molleweide Profile Picture

    molleweide @molleweide

    3 months ago

    @zack_overflow why would no one want to see what tools a file consumens at the top?

    0 0 1 219 0
  • Getror1 Profile Picture

    Masán @Getror1

    3 months ago

    @zack_overflow That's dumb. You should see what is coming before accessing meat. Gotta know the spices you have before starting to cook

    0 0 1 60 0
  • NickGideo Profile Picture

    Engid @NickGideo

    3 months ago

    @zack_overflow is this illegal? it feels illegal..

    0 0 0 81 0
  • felipebueno Profile Picture

    Felipe Bueno 🇧🇷🇺🇸 @felipebueno

    3 months ago

    @zack_overflow this is stoopid

    0 0 0 116 0
    Download Gif
  • loadingalias Profile Picture

    alias @loadingalias

    3 months ago

    @zack_overflow Why would we have 100 lines of imports in any codebase today? Honestly, this is a quirk that is antithetical to productivity. A smart guy once said smart engineers optimize for things that shouldn’t exist…

    0 0 0 165 0
  • anonthedev Profile Picture

    Anon 2.0 @anonthedev

    3 months ago

    @zack_overflow This makes so much more sense 😭

    0 0 0 98 0
  • andrewrno Profile Picture

    Andrew Noble @andrewrno

    3 months ago

    @zack_overflow Wait is this in JS? Don’t the imports have to be at the top?

    1 0 0 740 0
  • noslugg Profile Picture

    noslugg @noslugg

    3 months ago

    @zack_overflow 🤔

    0 0 0 133 0
  • gundam_wign Profile Picture

    Smooty @gundam_wign

    3 months ago

    @zack_overflow I read my files from the bottom to top

    0 0 0 97 0
  • steckzats Profile Picture

    STECKZAT'S @steckzats

    3 months ago

    @zack_overflow I’m with you

    0 0 0 257 0
  • prime_31 Profile Picture

    prime31 - mike @prime_31

    3 months ago

    @zack_overflow I like the way Odin handles imports personally. Just the module is imported and modules are much larger than zig’s where each struct is a module. Massively reduced import cruft.

    0 0 0 142 0
  • SyamaMishra Profile Picture

    Syama Mishra @SyamaMishra

    2 months ago

    @zack_overflow I feel code editors need sections that are dynamically resortable

    0 0 0 40 0
  • SheltonLouisX Profile Picture

    Shelton Louis @SheltonLouisX

    3 months ago

    @zack_overflow Wtf I thought that was illegal!

    0 0 0 54 0
  • suppyben Profile Picture

    ben @suppyben

    3 months ago

    @zack_overflow

    0 0 0 209 0
    Download Gif
  • yousaf_sbr Profile Picture

    Yousaf 🇵🇸 @yousaf_sbr

    3 months ago

    @zack_overflow Great!

    0 0 0 36 0
  • gizmocloud_ark Profile Picture

    0xGC | ARK @gizmocloud_ark

    3 months ago

    @zack_overflow I’ve actually started doing this too, especially for scripts and smaller modules. Top heavy imports kill flow when you’re scanning for logic. Let me grok the control flow first, dependencies can come after. Makes way more sense when you’re reading than writing.

    0 0 1 91 1
  • Download Image
    • Privacy
    • Term and Conditions
    • About
    • Contact Us
    • TwStalker is not affiliated with X™. All Rights Reserved. 2024 www.instalker.org

    twitter web viewer x profile viewer bayigram.com instagram takipçi satın al instagram takipçi hilesi twitter takipçi satın al tiktok takipçi satın al tiktok beğeni satın al tiktok izlenme satın al beğeni satın al instagram beğeni satın al youtube abone satın al youtube izlenme satın al sosyalgram takipçi satın al instagram ücretsiz takipçi twitter takipçi satın al tiktok takipçi satın al tiktok beğeni satın al tiktok izlenme satın al beğeni satın al instagram beğeni satın al youtube abone satın al youtube izlenme satın al metin2 metin2 wiki metin2 ep metin2 dragon coins metin2 forum metin2 board popigram instagram takipçi satın al takipçi hilesi twitter takipçi satın al tiktok takipçi satın al tiktok beğeni satın al tiktok izlenme satın al beğeni satın al instagram beğeni satın al youtube abone satın al youtube izlenme satın al buyfans buy instagram followers buy instagram likes buy instagram views buy tiktok followers buy tiktok likes buy tiktok views buy twitter followers buy telegram members Buy Youtube Subscribers Buy Youtube Views Buy Youtube Likes forstalk postegro web postegro x profile viewer