Live data from Hacker News

Orb is a free and open source web desktop

gitlab.com

111–120 of 146 posts

Re: Orb is a free and open source web desktop

#111

Earlier quoted context omitted.

chromeos?

Yes, something like that but with the holy trinity. DahliaOS actually does something like that but with Flutter.

Thanks for mentioning this, never heard of it but it looks good.

Re: Orb is a free and open source web desktop

#112
post #75

Earlier quoted context omitted.

They do, but very well-defined ones, little placeholders that just concern themselves with formatting. You include the whole variable name and that makes it brittle, now random bits of string data have to be kept in sync with actual code, and makes it a lot more unwieldy to format in a way that isn't the default representation.

Maybe take a look at lit-html, postgresjs and some others to get a sense of what's possible with good string templating.

Those do look quite nice, fairly far away from the nightmares I've dealt with before. They also seem to avoid the problem of just about summoning a whole separate archaic syntax just for jamming variables into a string.

Re: Orb is a free and open source web desktop

#113
post #107

Earlier quoted context omitted.

> So? The jQuery code still works regardless of when the browser decided to catch up. So, it's not needed anymore. I also started using jQuery in order to get cross-browser support for handy stuff, but since that stuff is now cross-browser without using any 3rd party libraries at all, there is no need to use extra bandwidth and CPU cycles from your users to download something that basically already exists.

Most of the world's bandwidth is being used to stream Netflix and Youtube. I think the web will be OK if my site sends a network request for an 87KB script every now and then.

I never undertood the fuss with bandwidth and jquery either... it's only 30k once behind mod_deflate. To put it in perspective, vue.global.js is 463k or 104k once gzipped.

There are many reason not to use Jquery for greenfield projects now, but bandwith is not one of them.

Re: Orb is a free and open source web desktop

#115
post #113
post #107

Earlier quoted context omitted.

Most of the world's bandwidth is being used to stream Netflix and Youtube. I think the web will be OK if my site sends a network request for an 87KB script every now and then.

I never undertood the fuss with bandwidth and jquery either... it's only 30k once behind mod_deflate. To put it in perspective, vue.global.js is 463k or 104k once gzipped. There are many reason not to use Jquery for greenfield projects now, but bandwith is not one of them.

The "fuss" is not about the specific numbers of bandwidth but more the mindset of not using more resources than absolutely necessary. And yeah, my breed who seems to care about this seems to be scarcer and scarcer out there but I promise, we still do exists.

Re: Orb is a free and open source web desktop

#116
post #12

I took a peek at the "Explorer" app code base. PHP + JS + jQuery, but surprisingly readable (but a lot of practices in there that are not exactly considered "best" today). Perhaps we have sunk too deep into the SPA/API rabbit hole that we can no longer appreciate simplicity. https://gitlab.com/hsleisink/orb/-/blob/master/public/apps/e... https://gitlab.com/hsleisink/orb/-/blob/master/public/apps/e...

>"but a lot of practices in there that are not exactly considered "best" today"

Considered by whom?

Re: Orb is a free and open source web desktop

#117
post #78

Earlier quoted context omitted.

SPAs are here due to organisational, not technical reasons. For large organisations it's easier to manage a team of workers with narrow specialisations than a single, but almost equally productive developer like here. It's particularly visible in banking applications, where modules are almost completely independent and built by non-overlapping teams, so they take forever to load due to the limitation on concurrent re…

I've been evaluating some self-hosted/open source company management systems this weekend. Most of them are classic multi-page PHP apps. It's terrible. I can't stand how it always reloads each time I click on something. I remember it didn't bother me much in the past when everything was like that, but today we have much better options. I went for a SaaS built as a SPA. When I click on something, for example to create…

you're typing this on one of those classic multi-page apps. it's not terrible. it's the web.

Re: Orb is a free and open source web desktop

#118

Earlier quoted context omitted.

> I can't stand how it always reloads each time I click on something. And yet here you are, using HackerNews just about every day, which works exactly the same way. No SPA. No 'forever loading', just a classic, fast SSR webapp that treats individual pieces of content as documents, just like how the web was designed to work.

This is a forum, not a management system where I need to open dozens of listings and hundreds of different detail pages and make modifications there. It also doesn't bother me much on here because HN is much faster than these systems - no wonder, since it's just a forum. But try updating the details of 50 employees, each separated into 5 subpages, when you need to wait 750ms to have each page load. And you need to lo…

speed has nothing to do with the problem that you originally described. an AJAX call can take 750ms also.

Re: Orb is a free and open source web desktop

#119

Earlier quoted context omitted.

jQuery is completely unnecessary now, you can use the built in element selectors to do all the same stuff without pulling a huge lib in. The value in jQuery was acting as a shim to smooth over IE's deficiencies back in the day. Now, its a waste of bandwidth.

jQuery was a browser normalization layer and one heck of an API for DOM manipulation. The first is thankfully not needed anymore, the second hasn’t been matched in simplicity and power by the native one, unfortunately. Not by a long shot. If you don’t believe me, check out one of the “You Might Not Need jQuery” sites. They read much like “you might not need firelighter, stones and sticks are all you need”.

to be honest, I don't use jquery either, but https://youmightnotneedjquery.com/ seems to be telling me that I might just need jquery if I want the code to be concise and readable.

EDIT: oh, I just realized that's exactly what you were saying!

Re: Orb is a free and open source web desktop

#120

Earlier quoted context omitted.

> I can't stand how it always reloads each time I click on something. And yet here you are, using HackerNews just about every day, which works exactly the same way. No SPA. No 'forever loading', just a classic, fast SSR webapp that treats individual pieces of content as documents, just like how the web was designed to work.

This is a forum, not a management system where I need to open dozens of listings and hundreds of different detail pages and make modifications there. It also doesn't bother me much on here because HN is much faster than these systems - no wonder, since it's just a forum. But try updating the details of 50 employees, each separated into 5 subpages, when you need to wait 750ms to have each page load. And you need to lo…

> when you need to wait 750ms to have each page load

Wait, what? If it's taking most of a second for a page to load, then that's the problem, not that it isn't a SPA.

Post reply on HN