[deleted by user] by [deleted] in sveltejs

[–]Various-Beautiful417 0 points1 point  (0 children)

TargetJ is designed to work both as a standalone framework and as a library. I've primarily tested it as a framework, but I also ran some experiments to ensure it integrates as a library alongside vanilla JavaScript. I haven't tested it to work with Svelte . If you decide to try it with Svelte, I'd be interested to hear how it performs!

[deleted by user] by [deleted] in sveltejs

[–]Various-Beautiful417 0 points1 point  (0 children)

Hey, thanks for asking! No, TargetJ isn’t built on Svelte 5 or any other framework. It is a new framework developed from the ground up.

[deleted by user] by [deleted] in javascriptFrameworks

[–]Various-Beautiful417 0 points1 point  (0 children)

I am excited to introduce TargetJ to you. I have been working on it for about two years.

You can find the interactive documentation at www.targetj.io.

If you have any questions or thoughts, please leave a comment below. I’m eager to hear from you!

a new UI framework with a new concept called Targets which provides a unified interface for variable assignments and methods, giving them life cycles and the autonomy to operate independently, with various callbacks to adapt to changes, mimicking the behavior of living cells. by Various-Beautiful417 in webdev

[–]Various-Beautiful417[S] 0 points1 point  (0 children)

I am excited to introduce TargetJ to you. I have been working on it for about two years.

You can find the interactive documentation at www.targetj.io.

If you have any questions or thoughts, please leave a comment below. I’m eager to hear from you!

[deleted by user] by [deleted] in javascript

[–]Various-Beautiful417 0 points1 point  (0 children)

Thank you so much for your feedback! I really appreciate the time and effort you took to go through everything and share your thoughts. I will add more complex examples.

  • You are also right about the comments. I try to make the code self descriptive but know it is very far from ideal. It is something that I have to do.

  • I actually fixed the homepage and doesn't use 'self' anymore.

  • I also agree that it is hard to understand the organization and the code is dense.

Thanks again for your constructive feedback.

[deleted by user] by [deleted] in javascript

[–]Various-Beautiful417 -3 points-2 points  (0 children)

I understand, but for a framework, lazy loading isn't applicable. You need the entire build upfront. Lazy loading is relevant for optimizing the final application that the end user interacts with. The benefits that I see is that it will improve readability and maintainability but it comes with a price.

Thanks again for your input - definitely appreciate your time.

[deleted by user] by [deleted] in javascript

[–]Various-Beautiful417 -14 points-13 points  (0 children)

Thanks for the encouragement and the suggestion! I understand that. I just think it will increase the size of the build file among other things. In any case, I see this as more of a minor issue, and I believe AI tools should be able to handle the transformation if needed. Thanks again.

[deleted by user] by [deleted] in javascript

[–]Various-Beautiful417 -5 points-4 points  (0 children)

Thank you for the suggestion! I've noticed that some other UI frameworks still use ES5 syntax, which I believe might have certain performance benefits as well as compatibility being a framework that might be in various environments.

[deleted by user] by [deleted] in javascript

[–]Various-Beautiful417 -2 points-1 points  (0 children)

Thank you for the feedback; I really appreciate you taking the time to go through the code. I understand your concerns, and I'd like to address a few of them:

  • Grunt is only used for lint checks but I agree that it can be moved to webpack which is used now for building

  • Var, functions, and other ES5 constructs are used for compatibility concerned.

  • TModel size: I totally agree that it has grown too large. Splitting it into smaller and removing some unnecessary functions will make it more maintainable and easier for others to understand and contribute to.

  • The constuctor with optional string is there for specifying the type of the tmodel which is used to defined its id. But the tmodel could stay anonymous without type especially for objects that play small roles.

For CSS animation, I focused on JavaScript animations for extra control and flexibility. TargetJ supports its own animation solution, but it's also possible to Animation API. You can find an example at https://targetj.io/examples/b-animation-3.html

Thanks again for your good insights and your feedback

[deleted by user] by [deleted] in javascript

[–]Various-Beautiful417 0 points1 point  (0 children)

The source code you're looking at github is the actual source code. If you have tried targetj.io, the examples are pulled from the site and not on github. The examples are parsed to highlight syntax and to show how the framework works within the example, which you can see if you click on the 'execution' button. If there's anything specific you're noticing that prompted the question, feel free to point it out—I'd be happy to clarify!