Better HN
topnewbestaskshowjobs
Log inSign up

kermerlerper

42 karma · joined Feb 20, 2024 (2y ago) · 29 submissions

Submissions

comment 1y ago · link · parent

That's fair, tho tbh I don't know of a single WebView app that does this.

P.S: ok I guess it's because I don't notice them, lol

comment 1y ago · link · parent

This is going to be a hot take, but I believe all web views are bad implementations for mobile apps. Primarily because a native app has all the styling, fonts, and client-side logic bundled with the app when it's installed.

A WebView loads those at runtime. So if you were intercept and track all the requests made by a WebView app, you'd see potentially hundreds of assets loading when you make a search query.

A native app doesn't need all those assets, it can make a simple API request to resolve this.

I can imagine a WebView could be bundled with the assets it needs, tho I doubt most people do this.

comment 1y ago · link · parent

A month ago, as I was inside Home Depot searching for plexiglass for our studio booth, I pulled up the Home Depot app to search for cheaper alternatives in-store than the ones I saw on the aisle.

However, the app was MISERABLY slow and janky. I blame this squarely on the fact that most of the app is just a webview. The search bar seems to be native, but everything after is just a website wrapper. And, surprise surpise, the website is slow as well. After about 7 minutes of intense frustration, I cursed the thing and just bought whatever was on the shelf.

But then it struck me.

"I'm a mobile app developer, what's stopping me from just making an optimized version that actually works!"

By "works", I mean:

- it's fast (even on Home Depot's WIFI)

- it's convenient (I can see aisle/bay right in the search results)

- it's clean (not janky/jumpy with loading spinners everywhere)

- it's powerful (create a list of items, and send that list as a link to someone else, no account required)

How it works, I basically have a proxy server between my app and home depot, that makes all the necessary calls BUT, it then filters out all the HTML and returns just the data needed with GRPC (though JSON could've worked as well).

That's how I made "THD Lite." There's still lots of work to be done, hence I'm not releasing it just yet. But so far, it hits the first three goals perfectly.

But, given that I'm not paid by Home Depot, I'm only adding the bits that I utilize. (unless of course ... Home Depot would like to change that, reach me at bookofcooks123@gmail.com).

Namely, what's being left out:

- All "Pro" features (subject to change)

- Online orders (I'm not trying to get sued)

- Anything that requires an account

4.

WebView vs. Flutter in 1 Minute(cdn.prayershub.com ↗)

1 points · by kermerlerper · 1y ago · 5 comments

5.

Htmx is hard, so let's get it right (Part 1)(github.com ↗)

5 points · by kermerlerper · 1y ago · discuss

comment 1y ago · link · parent

I've left many details off this video to keep it brief, so please ask me any clarifying details here.

7.

We Removed 335 LOC with one Go package(poxate.com ↗)

3 points · by kermerlerper · 1y ago · discuss

8.

Podio v0.1 – Remote Audio Processing for Golang(github.com ↗)

1 points · by kermerlerper · 1y ago · discuss

comment 2y ago · link · parent

Agree, that would be a much better solution.

comment 2y ago · link · parent

I agree that Go is not at fault here. However, I don't think FFmpeg is at fault either. It's just a fact of life that you can't seek in a stream with no buffer. As for the error handling, I purposely leave that out of my articles. Obviously, you shouldn't do this in production code.

11.

A Golang pipeline abomination(poxate.com ↗)

21 points · by kermerlerper · 2y ago · 8 comments

12.

Speeding Up MP3 Compilation by 380%(poxate.com ↗)

3 points · by kermerlerper · 2y ago · discuss

comment 2y ago · link · parent

It is imperative (a point I'm surprised I left out), but the difference is that imperative code touching state is collocated.

comment 2y ago · link · parent

Actually be a good way to manage state.

15.

Go does what RxJS couldn't(poxate.com ↗)

1 points · by kermerlerper · 2y ago · 3 comments

16.

Improve RxJS Performance by 992%(code.gdnetwork.co ↗)

1 points · by kermerlerper · 2y ago · discuss

comment 2y ago · link · parent

Agree, especially about the debugging part.

comment 2y ago · link · parent

The async implementation is not shown in the article, but could easily do a number of things such as - http request with decoder information - worker threads

comment 2y ago · link · parent

The former pipeline takes in products, splits the images, and processes each one.

The latter pipeline would releases batches/arrays of images.

comment 2y ago · link · parent

It's a joke.

21.

Go Concurrency vs. RxJS(code.gdnetwork.co ↗)

44 points · by kermerlerper · 2y ago · 52 comments

comment 2y ago · link · parent

That is true, but React in WordPress functions more like an enhancer than the whole thing. But I am part of the group of people who think bringing React in is likely the wrong call.

comment 2y ago · link · parent

> If I were building a mostly static site, I can reach for htmx, if I am building a spa (b2b back end) I can grab react.

https://htmx.org/attributes/hx-boost/

24.

Have front end frameworks destroyed the web?(gdnetwork.co ↗)

23 points · by kermerlerper · 2y ago · 39 comments