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.
Ask HN: What are weird and/or novel ways to do web UIs?
271–280 of 364 posts
Re: Ask HN: What are weird and/or novel ways to do web UIs?
#272Earlier 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`)
Re: Ask HN: What are weird and/or novel ways to do web UIs?
#273Earlier 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.
Re: Ask HN: What are weird and/or novel ways to do web UIs?
#274These days, it's pretty novel to just use HTML and very basic CSS with no JavaScript.
Re: Ask HN: What are weird and/or novel ways to do web UIs?
#275I 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?
Re: Ask HN: What are weird and/or novel ways to do web UIs?
#276I 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.
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?
#277Earlier 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`)
Re: Ask HN: What are weird and/or novel ways to do web UIs?
#278Django 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.
Re: Ask HN: What are weird and/or novel ways to do web UIs?
#279Earlier 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.
https://developers.google.com/search/docs/guides/javascript-...
Re: Ask HN: What are weird and/or novel ways to do web UIs?
#280Go 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?
So it works in firefox and chrome for me on windows. Not sure, I have pretty vanilla setup.