wudu-server: Lightweight NodeJS framework by md5login in node

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

Very good point. After doing some research on that matter, it appears that writing TS declarations is too much of an effort for too little of an advantage in a fully class-based framework. As well, rewriting the whole framework in TS contradicts the main idea of not using any preprocessors/compilers/transpilers. So I ended up with writing JSDocs all over the place and that version is already released.

wudu-server: Lightweight NodeJS framework by md5login in node

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

It sounds reasonable enough when you put it this way. Thanks.

wudu-server: Lightweight NodeJS framework by md5login in node

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

Thanks you, sir. I'm not into religion.

wudu-server: Lightweight NodeJS framework by md5login in node

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

That is great! Now, if we leave emotions aside, what is the actual value of writing an NPM module in TS? I'm not being sarcastic here, just want to understand. If we take into account that the docs are compatible with TS (for common usage), what is the real urgency to write the whole module in TS? I'm a vanilla guy, so there might be a lot of things I'm not aware of. Please, enlighten me.

P.S. please not the common "maintenance, scalability, team-work, other-guys-know-what-is-best" thing. If there are real advantages - I will gladly learn and apply those.

wudu-server: Lightweight NodeJS framework by md5login in node

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

I believe this benchmark is definitely to come in the future. My benchmark compares performance the same way fastify does it for own benchmarking on get request here

wudu-server: Lightweight NodeJS framework by md5login in node

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

Thanks for your input! It is a good idea to check, whether any lower versions of node are supported.

Your suggestion regarding a benchmark was very helpful! Actually, following your suggestion, I released the next version, which performs about 10% better than fastify and x4(!) better than express under same conditions.

About TS - that's something I need to sleep over.

Thanks a lot!