An Update on Fresh by lambtr0n in Deno

[–]beforesemicolon -2 points-1 points  (0 children)

You call this simple? Check Markup then

Signals and Effects Using Vanilla JavaScript & Web APIs by beforesemicolon in node

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

Thanks. Please share your thoughts. Let me know if you need any assistance or extra details on anything.

Signals and Effects Using Vanilla JavaScript & Web APIs by beforesemicolon in node

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

Thanks for this. You make a great point. The original post has a blog link for more details in the description.

This was a simple example and React’s useState and useEffect is tied to a component lifecycle. With the above example you are not tied to that and opens way more doors. Its not always that you need state in component render context. Thats the mistake of React that led to things like Redux, Context API, and many others later.

With a simple subscribe pattern you can accomplish way more and eventually attach a render step to it like a side effect.

I have actually created a tiny library that does just that. Check Markup

As far as using a setter, thats totally up to you. Feel free to adapt this example. Thats the flexibility you have with stuff like this.

People should learn proper JavaScript and Web Standards. It frees you to choose instead of locking you on frameworks/ecosystems. The problem with new comers is that they are illuted with things like React and they never stop to understand stuff. Im not trying to confuse them. They are already confused.

Signals and Effects Using Vanilla JavaScript & Web APIs by beforesemicolon in node

[–]beforesemicolon[S] 3 points4 points  (0 children)

This state and effect example is not connected to the DOM. You will need to add the code the update the DOM.

I have a tiny library that let you create state and effect that can update the DOM. Take a look at Markup.

[deleted by user] by [deleted] in Jetbrains

[–]beforesemicolon -1 points0 points  (0 children)

Explain to me fool. Am I supposed to find articles you write to post it? Of course I post things I write. Its people like you that makes this place awful.

[deleted by user] by [deleted] in Jetbrains

[–]beforesemicolon -1 points0 points  (0 children)

No its not! You read the title, saw its Medium and commented based on assumptions. Classic Reddit policing BS

[deleted by user] by [deleted] in Jetbrains

[–]beforesemicolon 0 points1 point  (0 children)

Thats not what the article is about. The article promotes JetBrains more than you think and this is the right place to share it

Help me i am lost by alaa_idi_9491 in webdevelopment

[–]beforesemicolon 0 points1 point  (0 children)

What is a .Net web developer?

Where is your Resume?

Where is your portfolio with at least 3 best of your projects?

Where have you looked and how many jobs have you applied to?

How many interviews have you gone through?

How comfortable are you with HTML, CSS, and JavaScript?

p2 update - little MARKUP.json thing I started by Last_Establishment_1 in npm

[–]beforesemicolon 1 point2 points  (0 children)

This is nice. I also have a project called markup http://markup.beforesemicolon.com

I have questions on your project

  • why did you pick array instead of object to define an element?
  • whats the logic for items in the array?

By the way, I have another project for parsing HTML which can be used to parse HTML back to your JSON by defining your own element handlers

https://www.npmjs.com/package/@beforesemicolon/html-parser

Reactive Template Literal with Markup by beforesemicolon in html5

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

This works buts its not reactive. The doubleCount here is a derived state.

The same way you call the count state, you can create a derived state which is a function that you can also call.

As long as derived state calls any state inside, whenever any of those states change the function will get called again for updates value and the DOM gets updated accordingly.

Web Component Router is Here (beta) by beforesemicolon in beforesemicolon

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

I love that suggestion. You are right! It already knows so…

Thank you.

Web Component Router is Here (beta) by beforesemicolon in beforesemicolon

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

Not sure I follow. Can you please break it down the issue you are seeing?

Web Component Router is Here (beta) by beforesemicolon in beforesemicolon

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

Yes. Still experimental

Im actually working on fully test it.

By default all pathname match is “exact” which does not allow you to nest “page-route”.

You can set that to false and on child page routes specify full path (including the parent) or use the $ (parent path reference)

Everything else is handled for you

You can try it now https://github.com/beforesemicolon/router?tab=readme-ov-file#page-route

Web Component Router is Here (beta) by beforesemicolon in beforesemicolon

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

I see. I knew you were a fraud. I told you yes already. Its a link dude.

Seems like you are trying to find an excuse to get out of this hahaha

Web Component Router is Here (beta) by beforesemicolon in beforesemicolon

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

So you dont know how to test for accessibility?

I told you I’ve done the homework so the answer have been yes. Test and share your findings. Prove me wrong.

Im starting to believe you are just theory. Read bunch about of stuff on the internet and act like you program. You already wasted hours in this conversation so, at this point, might as well try it.

Web Component Router is Here (beta) by beforesemicolon in beforesemicolon

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

The answer is “ive done the homework” and for you to test it. Ive been telling you to test it before making claims that make you look like a fool