Better HN
topnewbestaskshowjobs
Log inSign up

Existenceblinks

1,102 karma · joined Jun 12, 2015 (11y ago) · 1,205 submissions

Submissions

comment 7y ago · link · parent

One interesting aspect is that it takes a lot of energy building the whole compile-to-js frontend framework, yet you are also building your own service. Kudos!

I'm using Elixir and Elm, and understand why Mint happens. I'm keeping eyes on Mint, would love see a build-with-Mint page. This app is the first one!

comment 7y ago · link · parent

I can't believe someone just downvoted me, WOW! This is why I barely login to comment on HN.

comment 7y ago · link · parent

This comment is at the bottom while I find this is actually a valid point. I've often experienced this.

comment 7y ago · link · parent

What's different to VScode `alt+shift+f` for .json?

comment 7y ago · link · parent

I don't love the yaml of its 2.0 version. The visual build steps is horribly horizontal (why not just wrap it vertically?).

comment 7y ago · link · parent

Smooth is zero waste stroke :)

comment 7y ago · link · parent

Also, I think, try swimming slowest just to keep moving forward. I find it's good for finding balance.

comment 7y ago · link · parent

How about swimming in an onsen swimming pool (make one if not exist)?

I used to do a mini triathlon, it feels like hell already!

comment 7y ago · link · parent

Many sports are at best when we were young with friends doing the same activities. And yes, it's boring when we are adult now. Treat it as regular eating, showering, although it's more effort, it's just boringly good, sometimes it's fun. They are just activities that our body need every day, otherwise our body is vulnerable to whatever pains.

Any sport that's good for you is great. (Not a big fan of running either, but jogging in the morning is quite nice)

comment 7y ago · link · parent

I swim in public swimming pool regularly, crash every damn kid playing finding items under the pool with their friends.

comment 7y ago · link · parent

Many sports, each has such nice exercise stratagem. Even though swimming is my most favorite since I've been swimming for decade,

cycling: the most enjoyment of scenery, 26km (how I do per day) gives you a lot of different views; mountain, river, road, smell of air along the ways. These are also good for brain.

basketball: it just nicely exercises agility, muscle memory (imagine you nail it 10/10 shooting continually, how nice the muscle is!), reactivity, quick decision making as a team.

table tennis: it is incredible how you can control the small ball in very fast interaction, in very small area (table). Little skills you gain from this is mind-blowing to me.

I play a lot of other sports, I'm very satisfied what my body can do, and breaking current limit is also fun.

comment 7y ago · link · parent

The left-nav hover is a good balance UX that's no harm to be official. Thanks for making this. Installed!

comment 7y ago · link · parent

After doing Elm or PhoenixLiveView, I'll never go back to React stuff. Every time people trying to re-invent html, it will end up pretty much HTML. It's simple and powerful. The sad part is developer resources spent on optimizing for JS instead of joining force improving HTML standard.

comment 7y ago · link · parent

Yes, the problem is that people are incapable of "making enough money"

- Enough for buying satisfied house and land AND a nice secondary room in the middle of city. So they support two main life styles. Need a peaceful time, go to house surrounding by nature. Need a party, city life, back in town.

- Enough money for commuting between places as you want

- Enough money for buying whatever objects. Get bored, go shopping

- Enough money for not worrying about it so you can do things that improve your contentment.

Well, this is not new, money solves maybe 90% of whatever problems you have right now.

comment 7y ago · link · parent

Because, if, enough numbers of users want it, seriously. Also it's still an option, not a default.

comment 7y ago · link · parent

The "display" setting is a good start. Give me options to hide the left-nav, the trend, and I'll be cool with it.

comment 7y ago · link · parent

God, it's not only me then. I have to zoom in until the nav is in icon-link mode. But then the feed is too big. I don't want to bother styling extension (I don't love to have more).

comment 7y ago · link · parent

Javascript itself is not the problem, it's the means. Same as we want gun control (not 100% confident using this analogy though).

comment 7y ago · link · parent

> vast majority of us

Like 1% or 10%?

comment 7y ago · link · parent

I'm all in static typing, but writing Elixir has ways less anxiety than any dynamic typed languages I've written.

These are features that help eliminating uncertainties:

1. Function head pattern matching

This also includes anonymous functions used in Enumerable functions like map, reduce. Which is my most favorite way of using pattern matching

2. Guard clause

It's part of function definition so it's visible in very nice ways; not mess with the body.

3. Process supervision strategies

Let it crash! The elegant way of dealing with exceptions and unexpected errors.

It's a fair trade with static typing.

comment 7y ago · link · parent

Phoenix LiveView is the Google Stadia of web app. Browser is just like a console for sending commands over an established connection (stateful) to server. It's pushing computation and state management to servers, and eliminating a lot of steps e.g. encoding huge internal data structure to json, api endpoints design, huge javascript downloading and parsing, re-rending that data with template on client side. If you use a compile-to-js language on frontend, the extra step is to decode json into internal types as well.

LiveView is the haven for apps that are focusing on B2B and internal tools in organizations. Because it doesn't have to support offline usage, and cost effective since you don't have to have a frontend team.

comment 7y ago · link · parent

It's not a mess. Mostly It was just unclear mixed of runtime and compile time configuration that contribute the inconvenience. Elixir 1.9 just comes up with a simple built-in release mechanism with more clear on how you put configuration.

comment 7y ago · link · parent

Not sure if it's only me. I have not ever used jump-to-definition feature on my editor. 95% of the time I just use search. But in case of Github web, it makes sense because their search feature isn't on par with local text editors.

comment 7y ago · link · parent

No needs to do anything fancy (to read it), just hit the refresh icon and cancel it _almost_ immediately. Click-20ms-click.

comment 7y ago · link · parent

> Because the world will NEED people with those values in the future ..

The world doesn't even need human or dinosaur. It will work just fine.

1046.

Git-based or API-driven CMS (2017)(youtube.com ↗)

1 points · by Existenceblinks · 7y ago · discuss

comment 7y ago · link · parent

Javascript libraries ecosystem in post jquery era is also inefficient.

More duplicated efforts on making reusable uis because they (React/Vue/Svelte/Elm/Ember etc) don't mean to integrate well with each other. Mostly they live their own world. Nothing integrates well with server rendering approach because most of them are based on virtual dom or compiler, vm that takes over the whole ui containers.

When you change a frontend language/lib/framework, your design system also need to change. All of your branded ui components need to be reinvented although some people just wrap libs such as Sortablejs, Select2 with their favorite js thing.

I've experiment Phoenix LiveView with a bunch of mentioned js lib/framework/language (above), nothing really integrates well for production uses. Vanilla js is still best bet for working with server-side rendered html (Unpolyjs or Stimulusjs is nice, but it only serves small purposes)

I hope there would be more js that works with good old html that you are already rendering.

comment 7y ago · link · parent

You take photo to forget. You let objects to save that memory for you so that you can forget. Sure you still remember some, and some pointers of images.

comment 7y ago · link · parent

> Phoenix Live View is very new

Its technique is not new, it's just server-side rendering via websocket and DOM patching (Morphdom is also very old)

> not appropriate at all

"At some" would be appropriate. Pretty much typical CRUD (real world) that needs to fire requests to server anyway (e.g. form, business logic validation).

The only reason not to use it _right now today_ is it's not 1.0 yet.

1
343536
41