Live data from Hacker News

Ask HN: What are weird and/or novel ways to do web UIs?

news.ycombinator.com

271–280 of 364 posts

Re: Ask HN: What are weird and/or novel ways to do web UIs?

#271

Earlier quoted context omitted.

Why would I choose server side rendering? If I build the site in vue with the most optimized output settings, append hashes to files for perfect caching, drop the files in an S3 bucket, throw a CloudFront CDN on top of it with gzip compression, and build the front end of my backend as a REST api sitting in a lambda function that serves HTTPS requests, I never have to worry about server costs being more than pennies a…

Hosting a lambda based REST API is not "pennies a month" if your site gets any significant traffic at all.

Dimes a month, then? It's not a business-relevant amount of money, is the point.

Re: Ask HN: What are weird and/or novel ways to do web UIs?

#272

Earlier quoted context omitted.

I just saw three dependencies (arguably even less): https://www.npmjs.com/package/react Don't know how you reach your conclusion.

If you generate a typical react app with create-react-app, you get ~1000 dependencies in node_modules: `npx create-react-app some-app-name --typescript` (it was actually exactly 1000 dependencies which is freaking me out because the number was so round. wondering if it am counting lines wrong `ls | wc -l`)

Your ls command may create columns. To list one item per line and count the lines: `ls -1 | wc -l`

Re: Ask HN: What are weird and/or novel ways to do web UIs?

#273
post #155

Earlier quoted context omitted.

Keep the majority of the rendering server side and it isn't a problem at all. Jquery for some UI enhancement.

Then you end up having the page refresh loads of times and having a less smooth experience.

There are ways around that. E.g. turbolinks[0].

[0]: https://github.com/turbolinks/turbolinks

Re: Ask HN: What are weird and/or novel ways to do web UIs?

#274

These days, it's pretty novel to just use HTML and very basic CSS with no JavaScript.

I've wanted to build an application like this for a while. Obviously nothing that would be actually be used, but maybe a personal tool or something. For many simple (probably most CRUD apps tbh) this would seem to work very well

Re: Ask HN: What are weird and/or novel ways to do web UIs?

#275

I once made a calendar UI that used D3 to animate little circles that represented days. Switching from e.g. week to month caused the circles to flow to new locations. It had a pastel color scheme and it was really beautiful. Everyone who came into the office and saw it said things like, "I've never seen anything like this on the web." It was just eye candy really. It never saw the light of day. I begged them to put i…

What were the investors' objections, if you don't mind me asking?

The founders wouldn't show it to potential investors because IIRC they wanted to have some users first. I don't remember why they wouldn't go live with a beta and try to get users. It was a weird little "vanity project" startup and they made a lot of weird decisions (from my POV.)

Re: Ask HN: What are weird and/or novel ways to do web UIs?

#276

I think the weirdest way is using React. I mean, it feels so unnatural for me, compared to the jQuery way. You have to download thousands of packages, keep track of various dependencies and their security holes, adding an overhead for auditing them. HTML5 with jQuery IMHO still beats everything in simplicity and getting work done fastly

Here's the perfect React replacement for you: https://github.com/wisercoder/uibuilder It is a 200-line library, and you get React's templating technology, which is the best part of React. You can use jQuery for updating the screen.

The templating is almost a non issue. The best parts of react are top-down data flow and its diffing engine.

Nobody should be using jQuery in 2019 unless you need to target very old browsers. Vanilla JS works fine for the DOM.

Re: Ask HN: What are weird and/or novel ways to do web UIs?

#277

Earlier quoted context omitted.

I just saw three dependencies (arguably even less): https://www.npmjs.com/package/react Don't know how you reach your conclusion.

If you generate a typical react app with create-react-app, you get ~1000 dependencies in node_modules: `npx create-react-app some-app-name --typescript` (it was actually exactly 1000 dependencies which is freaking me out because the number was so round. wondering if it am counting lines wrong `ls | wc -l`)

Most of those don't wind up in production.

Re: Ask HN: What are weird and/or novel ways to do web UIs?

#278
post #157

Django and SQLite for the backend and jQuery for the front end. And a $5 a month server from pythonanywhere.com. Also using a splash page from glitch.com using static html.

Out of interest did you ever have any problems with multiple users using SQllite? Its the common advice that it doesn't work well for multiuser scenarios but I am curious if it is actually a problem for small scale sites.

Nope. My site I was working on was a startup but we didn’t have much traffic.

Re: Ask HN: What are weird and/or novel ways to do web UIs?

#279

Earlier quoted context omitted.

Try build a complex website with complex journeys and a component architecture and you'll be begging for React. It's probably because you haven't seen the light. I'd never ever go back to using jQuery unless it was for a basic marketing site - even then I'd probably think of using Vue if anything got more complex than a carousel on the page.

I bet your marketing manager will be pleased when her website gets de-ranked on Google because all the page rendering is done client side now.

Google's spider renders JavaScript now.

https://developers.google.com/search/docs/guides/javascript-...

Re: Ask HN: What are weird and/or novel ways to do web UIs?

#280
post #240
post #7

Go spend 5 minutes here on pc desktop. http://cyberspaceandtime.com/Gaano9Y6KAU.video+related I came across this site a few weeks ago. And it's quite unlike anything I've seen. And try to inspect the site using browser inspector. It's a very different ui than I've ever seen before.

Seems completely broken in Firefox and Safari, and mostly broken in Chrome/Chromium - just what browser does the site work with?

You mention safari. Are you on a mac?

So it works in firefox and chrome for me on windows. Not sure, I have pretty vanilla setup.

Post reply on HN