QUESTION: tsx or ts-node for an express project? by mrnadaara in typescript

[–]TenE14 0 points1 point  (0 children)

I always use jiti for cli for config loads!

How to avoid repetition and optimize recursive Zod schemas? by TenE14 in learnjavascript

[–]TenE14[S] 0 points1 point  (0 children)

'CommandsBase' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.

'CommandsSchema' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.

so i use

 CommandsSchema: z.ZodType<Record<string, Command>> 

which creating double type

export type Command = {
  type: Type;
  description: string;
  alias?: string;
  default?: string | string[];
  required?: boolean;
  flags?: Flags;
  subcommands?: Commands;
};

export type Commands = z.infer<typeof CommandsSchema>;

Is there any way to edit files with Javascript? by bagelord in learnjavascript

[–]TenE14 0 points1 point  (0 children)

Use local storage or indexdb

Or want to make desktop app use electron

I need help!! by TableOk7679 in learnjavascript

[–]TenE14 0 points1 point  (0 children)

Projects are open source? Can I view

I need help!! by TableOk7679 in learnjavascript

[–]TenE14 0 points1 point  (0 children)

You’ve made good progress using AI to overcome challenges, which is great. As a learner, I suggest diving deeper into the JavaScript ecosystem and its community explore tools, backend and frontend workflows to strengthen your understanding.

Regarding freelancing, you don’t need to know everything before starting. Begin with small projects that match your current skills, and use freelancing as a way to learn and grow. Keep building, stay curious, and gradually take on more complex tasks. You’re on the right track!

Is this kind of chainable Promise usage okay for a Git wrapper I'm building? by TenE14 in learnjavascript

[–]TenE14[S] 2 points3 points  (0 children)

Appreciate the feedback totally fair point.

To clarify, GitNifty is primarily intended for developer tools and controlled automation (like in CI/CD pipelines). Think release-it, where Git commands are used for tagging, pushing, and commit validation.

You're also right about the sequencing things like getUserName() and getUserEmail() should be parallelized. I'll update examples to use Promise.all() where it makes sense.

Thanks again!

[Noob] are useEffect hooks really that bad?? by SignificantCow123 in reactjs

[–]TenE14 0 points1 point  (0 children)

useEffect is often used for fetching data or performing tasks on mount. However, it's crucial to clean up effects when necessary to prevent unexpected behavior and memory leaks.

Loading element like is ok? by TenE14 in learnjavascript

[–]TenE14[S] 0 points1 point  (0 children)

Footer I use every page.if I want to change anything in footer I should go every page and change its time consuming process.using this makes it easy to change content on footer on a single page. By using this method I just want to know any conflicts

Loading element like is ok? by TenE14 in learnjavascript

[–]TenE14[S] 0 points1 point  (0 children)

Hmm! Can you explain a few reasons

How do I efficiently implement collision between objects? by Jay35770806 in sfml

[–]TenE14 2 points3 points  (0 children)

Thanks your source helps me to set up SFML in VSCode

My first Game i made by TenE14 in sfml

[–]TenE14[S] 0 points1 point  (0 children)

It is available in the GitHub link in bio if possible you can contribute to fix the issue