r/learnjavascript • • Sep 26 '23

Frameworkless, functional javascript discord/matrix community?

I created a community for those web developers who aren't satisfied with the state of the industry piling frameworks over frameworks to produce simple http servers, document layouts and event systems (and feel like doing more than just complaining about it, not as if the criticism alone wasn't valuable). It's tiring that all "javascript" discussion is about implementation details of NextJS/webpack/React/Angular/Vue, as if they were the platforms we are developing against and not just libraries with oversized scopes, and i have to talk with senior programmers who don't even know what XML namespaces are, or never seen flatMap before because they never had to implement more complicated algorythms than setting state and passing component properties.
If you would like to talk about optimal solutions in practice, in the abstract, or even in pseudocode, for routing, server-side rendering, stylesheet/script compilation, AST parsing/serialization, persistence/IO, continuation, hydration, state management, general traversal algorythms, function composition, god forbid "category theory", etc., then you are welcome to join fellow curious minds in our discord/matrix community (discord has more thematic channels, only the main one is bridged with matrix):
https://discord.gg/GvSxsZ3d35
https://matrix.to/#/!ipeUUPpfQbqxqMxDZD:matrix.org?via=matrix.org&via=t2bot.io
the fact that we've had a peak member count of 20 over 2 years i think speaks of a dreadful state of the mainstream web development mindset, so it should motivate you to join even more. Hope to see you there!
Javascript isn't the problem that needs to be solved, but the tool to solve the problem of html and css.

0 Upvotes

48 comments sorted by

View all comments

Show parent comment

0

u/guest271314 Sep 27 '23

You are expressing the erroneous assumption that using DOM methods without a library or framwork takes more time than without.

That's not the case.

All libraries and frameworks must ultimately use DOM methods.

Since I know the DOM methods I just skip the unnecessary middle man.

2

u/[deleted] Sep 27 '23

[removed] — view removed comment

1

u/guest271314 Sep 27 '23

I don't know why you erroneously think loading an entire library, e.g., jQuery, to do $('div') is faster than document.querySelectorAll('div')?

You must not know how to use the DOM directly and are not counting the time taken to load the library you depend on.

2

u/[deleted] Sep 27 '23

[removed] — view removed comment

2

u/guest271314 Sep 27 '23

I'm talking about developer time

Where do you get the idea that using a framework takes less total time than just using HTML, DOM methods, CSSOM for Web development?

2

u/[deleted] Sep 27 '23

[removed] — view removed comment

-1

u/guest271314 Sep 27 '23

My years of tech experience reveal otherwise.

You are just making stuff up. There is no way you loading a library then running a wrapper around DOM methods is faster than me just using the native DOM methods.

1

u/[deleted] Sep 27 '23

All two of them?

0

u/guest271314 Sep 27 '23

You have no clue.

More erroneous assumptions.

One day of testing native DOM methods vs. frameworks and libraries will provide all the evidence one needs to make an informed decision based on the irrefutable fact that native DOM methods are faster than using libraries or frameworks.

1

u/[deleted] Sep 28 '23

Oh, one year then?

From most of your comments I have not seen a basic understanding of what frameworks do. Moreover you are hellbent on maintaining your misunderstanding. You can understand my low estimate.

→ More replies

0

u/guest271314 Sep 27 '23

So let's see, you have to load your framework and/or library because native DOM methods are too complicated for you.

That takes time.

The native DOM methods that I use are already executing code, where applicable, by the time you library and/or framework loads.

Then your framework and/or library MUST use native DOM methods to manipulate the Web page.

All because you erroneously think native DOM methods are too complicated for you to understand. Yet that's not all. You for some reason erroneously think it takes more time to develop using the native DOM methods!

1

u/[deleted] Sep 27 '23

Ah jQuery, it's been a while. You're right, loading jQuery just for the selector would be less than smart, but that's not all the jQuery does. It managed a host of common UI tasks. You may also not remember the dark days of supporting Internet Explorer, but it was helpful there as well.

0

u/guest271314 Sep 27 '23

I read jQuery source code.

JQuery is mostly just a wrapper around native DOM methods.

Just using the native DOM methods is what I do.

Now, if you think DOM method are too complicated for you to use, then yes, you need to depend on a library. I don't.

1

u/[deleted] Sep 27 '23

Now it doesn't have as much value, which is why it faded in popularity. Back in the day though, it was a god send. It also had simplified ajax calls before promises were anything, polished animations, a variety of plugins available for other little widgets and doodads you might need to build a billion times over. Better tools for managing CSS classes than we're available during the time when it was popular and most importantly, it worked across all browsers without having to jump through extra hoops.

0

u/guest271314 Sep 27 '23

I'm talking about any library of framework.

None of them are going to be faster than me using native DOM methods.

Your frameworks and libraries will still be loading while the native DOM methods I use will be executing code.

Then your framework and/or library will wrap the native DOM methods and execute code already executed when using native DOM methods.

1

u/[deleted] Sep 27 '23

And you will thrash the DOM reducing your application to a janky mess because you didn't bother to optimize updates. And the next developer will come along look at your unmaintainable mounds of spaghetti and throw it out.

1

u/guest271314 Sep 27 '23

And you will thrash the DOM

optimize updates

What the hell are you talking about?

Your framework or library MUST use the DOM, but because the DOM is too complicted for you you don't actually write code, you depend on third-party code to wrap the native DOM I use.

You are just making stuff up.

1

u/[deleted] Sep 28 '23

The slowest part of JavaScript is updating the DOM. If you're not careful about when and how often you do it, you can hurt your performance.

The other challenge is in a complex application the number of things that can change is large. When something that causes a change happens, you need an efficient way to figure out what to change. That's one of the jobs frameworks perform.

From a developer perspective frameworks also simplify a lot of tasks because they abstract away tedious dom manipulation tasks. Creating a new node and inserting it into the DOM is an imperative multi step process, which in frameworks I can represent in template syntax.

→ More replies

0

u/guest271314 Sep 27 '23

It's a necessary middle man. I'm sorry but if I'm rerendering everything that depends on a single state by hand it will take more (development) time and cause more headaches.

That's simply not true. You have no evidence to support your claim.

Why would writing DOM methods directly take more time? Unless you don't know what those DOM methods are that the library and framwork you depend on uses.