laut

Joined 18 years ago

Karma
824
Submissions
305
Member since
Jun 30
Danish web developer in America.

http://www.creativedeletion.com/

Twitter: http://twitter.com/laut

View on Hacker News

Recent submissions

Comment · 5 years ago
Comment · 5 years ago
The Wrangler 4xe is a plug-in hybrid and began production last year. That car is featured on the US website too.

Jeep also has the Renegade 4xe and Compass 4xe. All plug-in hybrids. Fiat might not have brought them to the US yet.

Comment · 5 years ago
Yes, the `phx-click` doesn't automatically get translated to a link or form submission. You can still design the page to work without javascript. For instance by having a "+" button be a normal form or link and then have phx-click intercept it when javascript is enabled. This can be done with one LiveView module without having to also have a separate regular controller.

One way to do it would be to in the `mount` function handle normal non-javascript params being sent and a `handle_event` function handle `phx-click`.

I don't know if there is already a way to have `phx-click` with fallback to HTTP in a less "manual" way. It should be possible to make.

Comment · 5 years ago
> But with LV wouldn't you need to create both a LV and a regular controller? That's a huge amount of code duplication.

You just do LiveView instead of a regular controller. No duplication.

When you request a page, it is render on the server and all of the HTML is returned over HTTP as usual.

After the client has received the HTML updates, live updates can go over a websocket. For instance you start typing in a search field, this is sent to the server over websockets. Then the server might have a template for that page that adds search suggestions in a list under that search field. The server basically automatically figures out how the page should be rendered on the server side with the suggestions showing. By "re-rendering" the template with changed data used with the server side template. Then it sends back a diff to the client over websockets. The diff adds/changes the search suggestions to the page. The diff is very small and it's all very fast.

Comment · 6 years ago
Apple copied that from the Beocom 6000 phone by Bang & Olufsen.
Comment · 7 years ago
Supply of housing can increase if it makes sense to build housing. Zoning and other regulation can make it impossible, risky or unprofitable to build housing.
Comment · 7 years ago
In Denmark you can get milk at the grocery store that was inside the cow less than 24 hours ago. Ultra High Temperature pasteurization is not really normal in Denmark, but I think it is in Germany.
Comment · 10 years ago
On the map (https://www.passportindex.org/byRank.php) Greenland should probably have a "more powerful" colour since they get a Danish passport.
Comment · 10 years ago

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton