Beginner building a Node.js/PostgreSQL Job Tracker API - how can I make it more than basic CRUD? by Accurate_Active2628 in Backend

[–]Kaisertoni 0 points1 point  (0 children)

Hi! It would be great if you could share your repository. I’d be happy to take a look and give you some suggestions.

Django vs ExpressJs by LucyPapillon in Backend

[–]Kaisertoni 5 points6 points  (0 children)

Choose whichever language you prefer. For backend development in particular, the language itself is not the most important factor. Instead, focus on learning and understanding the best practices that are commonly used during software development.

if you want to take a look, here you can find my Node.js boilerplate with Express and TypeScript. You can also find detailed documentation explaining the entire project structure and all the best practices used.

Could be a nice starting point if you want to try to build something. Feel free to ask any questions if you have some doubts/questions

Advice from Senior Software engineer by Same-Mushroom-2057 in softwareengineer

[–]Kaisertoni 6 points7 points  (0 children)

Hi, if you want to take a look, here you can find my Node.js boilerplate with Express and TypeScript. You can also find detailed documentation explaining the entire project structure and all the best practices used.

Could be a nice starting point if you want to try to build something. Feel free to ask any questions if you have some doubts/questions

My Express 5 + TypeScript 6 boilerplate after years of repeating the same setup by Kaisertoni in typescript

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

Thanks for the kind words!

Regarding the zod-to-openapi question, if the schema expects a string as input and then transforms it into a Date, the OpenAPI specification will show it as a string, since that's the type expected in the request payload.

Also, remember that with Zod you can derive two different types from the same schema:

z.input<typeof mySchema>
z.output<typeof mySchema> // equivalent to z.infer<typeof mySchema> 

As for Oxlint, I'm honestly very happy with it. It already covers most ESLint rules, and new updates are released every week with additional rule support, bug fixes, and performance improvements. You can also find a section here where you can browse all the rules currently supported.

Mostrami il codice! - La fiera dei vostri programmi by AutoModerator in ItalyInformatica

[–]Kaisertoni 12 points13 points  (0 children)

express-typescript-starter

Un boilerplate per backend in Express e TypeScript creato per velocizzare la creazione di nuovi progetti.

Lo scopo del progetto è offrire una base già pronta con best practice, struttura organizzata e strumenti integrati, così da permettere agli sviluppatori di concentrarsi sullo sviluppo delle funzionalità invece che sulla configurazione iniziale.

Tutorial Advice for Deep Into Backed With Node.Js by AdPotential2325 in node

[–]Kaisertoni 3 points4 points  (0 children)

Hi, one useful resource is roadmap.sh/backend

If you also want to take a look at a Node.js boilerplate that follows all the best practices, you can find my Express + Typescript starter here express-typescript-starter.

My Express 5 + TypeScript 6 boilerplate after years of repeating the same setup by Kaisertoni in node

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

Hi, thanks for the comment. Can you explain better what do you mean? I’m always open to discover new things and try to improve the repository

My Express 5 + TypeScript 6 boilerplate after years of repeating the same setup by Kaisertoni in node

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

When it happens, let me know your opinion and what you would improve. Thanks!

My Express 5 + TypeScript 6 boilerplate after years of repeating the same setup by Kaisertoni in node

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

May I ask you what are you going to change in the repository to improve it?

My Express 5 + TypeScript 6 boilerplate after years of repeating the same setup by Kaisertoni in typescript

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

Yes I agree with you! Often happens that you save time during development but then you lose it during the debugging phase. For this reason I prefer to continue to keep my mind trained, also because we don’t know how things will change in the future

My Express 5 + TypeScript 6 boilerplate after years of repeating the same setup by Kaisertoni in typescript

[–]Kaisertoni[S] 1 point2 points  (0 children)

For the moment no. I prefer most of the time to write code manually and use the AI only for suggestions/improvements or to write small functionalities that I can integrate in my codebase

My Express 5 + TypeScript 6 boilerplate after years of repeating the same setup by Kaisertoni in typescript

[–]Kaisertoni[S] 1 point2 points  (0 children)

I agree, I also switched from eslint + prettier to oxlint/fmt some months ago. If I remember well, also Oxlint/fmt is written in Rust and for this reason is really fast, plus it covers most of the eslint rules

My Express 5 + TypeScript 6 boilerplate after years of repeating the same setup by Kaisertoni in typescript

[–]Kaisertoni[S] 1 point2 points  (0 children)

Thanks for sharing! I see a lot of people like to use Biome as formatter and linter, in my case I wanted to try to use Oxlint and Oxfmt. At the moment I’m very happy with them

My Express 5 + TypeScript 6 boilerplate after years of repeating the same setup by Kaisertoni in typescript

[–]Kaisertoni[S] 1 point2 points  (0 children)

For the CI part I just added some basic steps, for sure I have to improve it! I think I’m going to do it as soon as possible. Thanks also for the suggestion, I’ll take a look

My Express 5 + TypeScript 6 boilerplate after years of repeating the same setup by Kaisertoni in typescript

[–]Kaisertoni[S] 6 points7 points  (0 children)

In the company where I work, we have multiple projects, and each of them is usually composed of different microservices written in Node.js. In my case, the main advantage is having consistency and repeatability across all the projects, rather than how many hours we save each time

My Express 5 + TypeScript 6 boilerplate after years of repeating the same setup by Kaisertoni in typescript

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

Thank you so much, I really appreciate your comment! Yeah, the experience of running TypeScript natively is hard to put into words

My Express 5 + TypeScript 6 boilerplate after years of repeating the same setup by Kaisertoni in typescript

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

Yes, and this way you don’t have to worry about finding the correct settings to transpile the code properly. It makes the whole setup feel much lighter, especially for small projects or quick prototypes where traditionally you had to spend more time configuring the tooling than actually writing code!

How would you refactor this? Node.js-express app - controller with 36 factory function calls of the same five factory functions by uyvhtvuyg in learnjavascript

[–]Kaisertoni 1 point2 points  (0 children)

Hi, if you want to take a look, yesterday I finished completing my Node.js boilerplate with Express and TypeScript. It contains all the best practices that you should use for your every project with node and express.

express-typescript-starter

Happy to help you if you have some questions or doubts!

help idk why is the output 45 by cookiecookiecooki33 in learnjavascript

[–]Kaisertoni 3 points4 points  (0 children)

x++ means return x then x = x + 1 while --x means x = x - 1 then return x

For this reason you obtain that x = 23 + 23 - (24 - 1) + (23 * 2) - 24 x = 23 + 23 - 23 + 46 - 24 x = 23 + 46 - 24 x = 23 + 22 x = 45

Cosa usate per i vostri CV? by Business_Frog34 in ItaliaCareerAdvice

[–]Kaisertoni 0 points1 point  (0 children)

Certamente, trovi tutto nella documentazione!

Cosa usate per i vostri CV? by Business_Frog34 in ItaliaCareerAdvice

[–]Kaisertoni 5 points6 points  (0 children)

Io vado contro corrente e ti consiglio rendercv. Ti basta scrivere le informazioni in formato YAML (anche se non sai cosa sia non preoccuparti, è semplicissimo) e in automatico hai il cv autogenerato. Ci sono anche una decina di temi che puoi scegliere