question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Too much usage of mod.ts

See original GitHub issue

I’m glad we’ve got rid of the usage of index.ts everywhere - however I’m not so happy with the excessive usage of “mod.ts” now. For example, in http/mod.ts: https://github.com/denoland/deno_std/blob/4283c26b8930ca80e5babca3337b5431f16334d0/http/mod.ts#L1-L7 This is just boilerplate. It would be better to have people link to http/http.ts instead.

I would like to do another disruptive rename - sorry - in which we remove the mod.ts usage.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:21 (21 by maintainers)

github_iconTop GitHub Comments

10reactions
rycommented, Jan 18, 2019

@kevinkassimo I’m more or less onboard with your proposal but I want to avoid having source code in the root - so what if we come up with some categories:

//net/http.ts
//net/irc.ts
//util/testing.ts
//util/asserts.ts
//util/datetime.ts
//util/color.ts

I want us to be very thoughtful about our path names - since it’s the public interface. I realize it’s disturbing to continually rename stuff, but it’s important we iterate on this now rather than later.

3reactions
rycommented, Jan 20, 2019

textproto should keep its name (it’s not a http parser) but I’m generally in agreement.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why deps.ts and mod.ts is BAD in Deno - DEV Community ‍ ‍
This article talk about why Deno developers should avoid using deps.ts and mod.ts.
Read more >
Why is main file called "mod.ts"? : r/typescript - Reddit
I'll answer my own question as much as I can. I found that Deno have a Style guide, that says this: "If a...
Read more >
Modulus(%) operator in Typescript not working correctly for ...
What is the reason for this working badly? Tried checking these values in a normal .ts file: console.log(10000000000000000%97); ...
Read more >
THIS makes Modding The Sims 4 SO MUCH BETTER!! (TS4 ...
Hey, boo! I'm checking out a program called Sims 4 (TS4) Mod Manager that makes modding The Sims 4 so much easier!⭐ BECOME...
Read more >
So Much Weather! || Skyrim SE Mods || Modding Monday 3
Playlist | Skyrim SE Mods | https://www.youtube.com/playlist?list=PLlN8weLk86Xgja20hZAIpa9P-noa-P_-c Patreon | Help Me Continue ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found