HackerTrans
TopNewTrendsCommentsPastAskShowJobs

hackernewslol

no profile record

Submissions

[untitled]

1 points·by hackernewslol·vor 3 Jahren·0 comments

Server-side code is doing too much

twitter.com
16 points·by hackernewslol·vor 5 Jahren·26 comments

comments

hackernewslol
·vor 4 Jahren·discuss
hackernewslol
·vor 5 Jahren·discuss
YES!

I've started using Tailwind and Alpine (with no other frontend framework). A basic page with a couple of images, a nice UI, animations, etc only takes up ~250kb gzipped.

It loads quickly on practically any connection, is well-optomized, and generally just works really well. The users love it too.

Coupled with a fast templating system and webserver (server-side in Go is my personal favorite but there are plenty of others), it isn't hard to get a modern featureset and UI with under 300kb.

I hope the push for a faster internet continues. Load-all-the-things is great until you're on a bad connection.

Sourcehut comes to mind as a great model/example, using a simple JS-less UI and Go server-side rendering.
hackernewslol
·vor 5 Jahren·discuss
Anything made by Logitech will work fine, as long as you are buying from a well-known brand you shouldn't have any issues. Most retailers have reasonable return policies (15+ days) so that is always an option if you buy something and it turns out to be incompatible.
hackernewslol
·vor 5 Jahren·discuss
This looks like Google and DDG (Bing) results put into one search engine. Can't find an about page, privacy policy, Codebase (GitHub/Lab), or any other real/useful information.
hackernewslol
·vor 6 Jahren·discuss
Yeah IIRC Woocommerce creates a new "Order" record, copying the shipping address from your account if you have one saved or using the one manually inputted at checkout. It makes sense that the account email doesn't update shipping email, generally companies will try to keep payment/purchase/shipping stuff in a "frozen" state or at least something where edits or logged, so in the case of issues, they can see what the user entered initially.

Same practice goes with credit cards, a charge confirmation (like something that would be generated after a stripe charge.succeeded webhook) stored in DB wouldn't be retroactively updated to new last-4-digits if the user switches the card saved in their account.
hackernewslol
·vor 6 Jahren·discuss
If the hacker has direct DB access (as they so often do), then rate limits don't really matter (nor does 2fa, they can just get the secret right out of the database and use that to generate their own codes).
hackernewslol
·vor 6 Jahren·discuss
Ok, you can buy models for different regions and swap them, but the antenna cables are only rated for 10 duty cycles so you can't do it a bunch of times. Purism has said that the modem switch is more designed for if you move or if it breaks, not so you can travel between the US and Europe often or whatever. You can probably purchase extension cables or something rated for more cycled though, but that might be expensive/specialised.
hackernewslol
·vor 6 Jahren·discuss
They are developing all the software for the PinePhone and have to recoup somehow. Also it is supposedly a lot better built.
hackernewslol
·vor 6 Jahren·discuss
Anbox is more meant as a "transition" than a end-goal, similarly to forwarding your email when you change addresses. It isn't meant as a permeate solution, more as a way for users to transition to FOSS tools without having to leave everything immediately. At the same time, we have had plenty of time to migrate so I see where you are coming from.
hackernewslol
·vor 6 Jahren·discuss
It's WP/WooCommerce so likely MySQL...