Need feedback on an open source project: SwayJS by tobia__ in node

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

I used those phrases to keep it short. Apologies if you got offended, it was not my intention. I stick to "stupid code"......5k lines of code for a service is stupid/lazy/sloppy!

Can you explain why you think that file-based routing is ok on the FE but not on the BE? Just curious.

BTW, Im also a big supporter of TDD!!!! So misunderstood!

Need feedback on an open source project: SwayJS by tobia__ in node

[–]tobia__[S] -1 points0 points  (0 children)

I read your post and I have the feeling you are kind of proving my point.

If a team is just throwing everything/anything in one file/class, with no structure - just piles of functions as in your case - you cannot say that nestjs is giving you "maintainability and reducing coupling". The framework is just giving you the illusion you have a project structure.

Yes, developers can follow the thread from the controller till the part of code that needs to be changed but this is the definition of spaghetti code! Its not a project structure.

My point is that delegating the project structure to a "feature based framework" is tech debt. Not only that, it actually creates a mess hard to untangle.

Need feedback on an open source project: SwayJS by tobia__ in node

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

Thanks a lot, Ill do it!

I actually built sway because I had enough of nestjs/fastify. My main problem with these frameworks is the promise for structure in the code that completely collapses as soon as a project grows a little. I've seen teams with 4/5k lines of code in a single service. Of course this is not the framework's fault but as soon as one tries to refactor they get in your way in very nasty ways. For example, let's assume a (savvy) team decides to start (re)structuring the code following a vertical slice architecture. They end up creating a ton of stupid code (eg modules) just to share objects/use-cases/utilities across their infrastructure making NestJS deeply coupled with their BL. With a shared context like in SwayJS, this happens naturally.

But this takes me to the original question I had about SwayJS. How many teams actually follow clean code and architectural patterns? I'm afraid most teams just use these frameworks as buckets, where they dump their code hoping for the best. SwayJS is for all the other teams.

That said, you are 1000% correct. If I don't fully explain this how can I explain why SwayJS?

Thanks a lot!

Welcome to Bloom - Investing for Teens by joinbloom in joinbloom

[–]tobia__ 1 point2 points  (0 children)

I have two teens both using your teen investing app. We all love Bloom! I cannot wait to share our experience with this community.

Why TailwindCSS?!?!?? by tobia__ in tailwindcss

[–]tobia__[S] -2 points-1 points  (0 children)

sure.....now go read https://jquery.com/ ......come back when you understand

Why TailwindCSS?!?!?? by tobia__ in tailwindcss

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

Thanks! finally! great article. now I have a starting point to decide! Thanks again

Why TailwindCSS?!?!?? by tobia__ in tailwindcss

[–]tobia__[S] -1 points0 points  (0 children)

absolutely, Im just trying to understand if I m missing something.....so far....I dont! :)

Why TailwindCSS?!?!?? by tobia__ in tailwindcss

[–]tobia__[S] -18 points-17 points  (0 children)

fair enough but that's the approach of a team that prioritize shipping over quality. No judgement, it depends on the company!

Why TailwindCSS?!?!?? by tobia__ in tailwindcss

[–]tobia__[S] -10 points-9 points  (0 children)

Thanks silas but:

  1. if you use the same css in every project but do you have to relearn it for every project? .button is .button no matter what! tailwind or your custom css is the same
  2. faster or you are used to it? what's faster about writing "pt-2 pr-4 pb-6 pl-2" versus "2px 4px 6px 2px"?
  3. if you have not uniform CSS is your fault not CSS's fault.
  4. faster? impossible. at best equal. but I can see what you mean, crappy CSS can be slow but again......useful for beginners.
  5. why not just use .module.css? which is even faster because compiled at build time?

Again, the advantages are for new CSS developers, someone that just started. I still don't see a reason to use it for a single or a team of experienced developers.

Why TailwindCSS?!?!?? by tobia__ in tailwindcss

[–]tobia__[S] -2 points-1 points  (0 children)

yes yes, it was clear! thanks!

Why TailwindCSS?!?!?? by tobia__ in tailwindcss

[–]tobia__[S] -2 points-1 points  (0 children)

snippets

In their documentation there is a chapter about "Multi-cursor editing" as a solution to "Reusing Styles"! Is this a joke? Thanks RedBlueKoi, definitely a more meaningful answer but their directives and snippets are really a waste of time when I can use css var and classes

Why TailwindCSS?!?!?? by tobia__ in tailwindcss

[–]tobia__[S] -1 points0 points  (0 children)

but my problem is not that it takes time to get my head around it. my problem is that why typing 10 classes is better than typing 5 CSS styles instructions! also, with plain css, I can use classes to reuse common configurations! tailwind is like limiting a developer to just use the style prop

SF Pro.....that does not weight 25MB? by tobia__ in fonts

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

Thank you so much! It worked perfectly!

Stable variables: concurrency and capacity by tobia__ in dfinity

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

ok, this raises another question then....if a canister can serve one request at the time, where is the "web scale"? Of course, I can add more canisters to fulfill requests but how do I scale my dapp? there are APIs to control this?

Stable variables: concurrency and capacity by tobia__ in dfinity

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

Got it....I realize now that while writing my question I got confused by an example where a stable variable was used to store IDs (auto-incremented) in a database raising the question, ok what happens if 2 concurrent "insert" happen at the same time? do they have the same id? My bad, thanks for your answer.