Better HN
topnewbestaskshowjobs
Log inSign up

usere9364382

22 karma · joined Aug 14, 2023 (3y ago) · 9 submissions

Submissions

comment 10mo ago · link · parent

I do mean SDL, and the discussion is not about its popularity, but about something formal, but perhaps I was not clear. First, yes, SDL is a very good library, and I have referred to them in the past for references about issues related to software architecture.

However, the way I saw SDL 1.x, I am expecting a strong contract. Every now and then SDL drops support for one thing or another. Where you had to worry about different APIs, now if you want to retain your strong contracts, you have to worry about different SDL versions. I am aware of something like the "sdl12-compat" layer for example, somewhat similar to JQuery Migrate, but it does not change the fact that the underlying contract is not strong, is not trustworthy, because of both changing APIs and changing compatibility, similar to the JQuery situation.

comment 10mo ago · link · parent

It is the ability that JQuery gave us to scope the css selector to a particular node. If you know POSIX, similar to the "at" functions for filesystems. By CSS child selector, classes, IDs, and what JQuery gave us, you could already develop self contained components, HTML custom elements if you like, without the need for shadow DOM. If you teach people to write well defined CSS, they argue that the CSS is over qualified and similar nonsense. Then the industry turns around and invents the shadow DOM. Any fool can come up with a complicated solution, but the best mind comes up with the simplest. And simplicity is not easy.

Take a careful look at "http://eyeandtea.com/crxcmp", and see how the need for shadow DOM is completely absent.

And this simple thing is just one of the geniuses exposed by JQuery.

comment 10mo ago · link · parent

For the record, JQuery is NOT to blame for the so called spaghetti code. Most people seem to blame JQuery for their own short coming. Most people also do not seem to understand the genius that was contained in JQuery. See "http://eyeandtea.com/crxcmp" for an example of what could already be done with JQuery in the IE8 era. A lot of the things later invented in the browser were to mask these shortcomings instead of admitting to them. The shadow DOM is one example. JQuery already had a feature that rendered the shadow DOM unnecessary, but it would require discipline that most developers did not have nor understand.

Having said that, after JQuery 1.x, and in particular, the changing, the deprecating, and the dropping of things here and there, JQuery no longer made sense. Somewhat similar to the SDL situation in the C/C++ word. An important role of JQuery, similar to SDL, was a strong code contract before anything else, and if the developer now has to account for JQuery's version differences like having to account for browser differences, what is the point.

comment 1y ago · link · parent

Indeed. Software can be written like math. 1 + 1 = 2, holds true for now and for all time, past and present.

comment 1y ago · link · parent

Are there any alternatives? On the browser that I use, with javascript disabled,

Ask.com: Does not work; does nothing at all.

Ecosia: Blocks me indirectly by cloudflare.

Startpage: Blocks me explicitly, saying "Your connection has been suspended"

comment 2y ago · link · parent

No, that is a different project. Judging from the github link, that was released in 2016. The reddit link is from 2018. Also see here,

http://eyeandtea.com/

and in particular,

http://eyeandtea.com/crxoop/v2/ch01/03

for the documentation of CrxOop. It is just the OOP part of what you see here

http://eyeandtea.com/crxcmp

comment 2y ago · link · parent

If you really want to be upset, take a look to see what it could have been like already with IE8 era technology

https://old.reddit.com/r/javascript/comments/9vuwe3/crxcmp_s...

Link in the main comment in that thread. The library unfortunately was never released open source for reasons that are clear in that thread.

comment 2y ago · link · parent

Any fool can come up with a complicated solution, but the best mind comes up with the simplest. A man I respect once said to me.

React is just another example of how rot takes over what is good. And people confuse loud with popular, popular with good, easy with simple, and tedious with merit.

comment 3y ago · link · parent

If the "feature" says "block bots", and it is blocking people, then cloudflare is to blame, not the users who enabled the feature.