Advertisement · 728 × 90

Posts by JackNytely

Preview
GitHub - Nytely-Official/T3_Chat_Windows: A Desktop Application for using T3 AI Chat on Windows A Desktop Application for using T3 AI Chat on Windows - Nytely-Official/T3_Chat_Windows

T3 just released an insanely fast AI Chat (like ChatGPT or Gemini) and I made a Desktop app for this to make it easier to access:

@t3.gg #AI

Please give it a try over here:
github.com/Nytely-Offic...

1 year ago 1 0 0 0

Just made my first post, let me know what you all think

@t3.gg #Software #Code #Aesthetics #Clean #Web #Developer #Interface #Enum #Enumeration #Type #TypeScript #JavaScript #NodeJS

1 year ago 2 0 0 0
Post image

And now if we ever have a small change or issue with one of the interfaces or enums, we no longer need to look through 1 file of 100 lines of code, we can now find it in the file structure, change it, and it will be fixed throughout our entire application.

example of using the Types in our app:

1 year ago 0 0 0 0
Post image

Now we finally need to edit our /types/types.ts file to centralize all our split interfaces and enums to make it easier to access in our app:

1 year ago 0 0 1 0
Post image

But now we need a centralized way to get these types, as such we have this folder structure:

1 year ago 0 0 1 0
Post image Post image Post image

Example 3/3:

1 year ago 0 0 1 0
Post image Post image Post image Post image

Example 2/3:

1 year ago 0 0 1 0
Post image Post image Post image Post image

However, our file is now really long, and this is commonly seen throughout big and small projects, I personally think that you should separate interfaces, types, enums, records, etc... into their own folders "/types/{interfaces, types, enums, records}" and in their own files. Example 1/3:

1 year ago 0 0 1 0
Post image

The main problem here is that the Interface has nested interfaces within it, and this is generally not best practice, it is best to first separate all objects into their own interface or type to avoid nesting as seen in the following image:

1 year ago 0 0 1 0
Advertisement
Post image

There are times when I work with code and see this, however, it can be improved quite a bit. Read the replies to see solution

1 year ago 0 0 1 1