Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
1_player
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
91 ms
·
931.
▲
by
1_player
6y ago
phx.gen.auth has been merged and will be part of the upcoming Phoenix 1.6
932.
▲
by
1_player
6y ago
(I'm the submitter) There is an art to it, and I just got lucky. I saw someone had posted it yesterday and it got no attention. I reposted it in case it went better and it did. Usually HN doesn't let you repost, but in some cases
933.
▲
by
1_player
6y ago
You probably have seen it already, but recent Phoenix docs have a section on contexts and what is their intended use case: https://hexdocs.pm/phoenix/contexts.html The way I see it, context are just the public API to a
934.
▲
10 years-ish of Elixir
(dashbit.co)
422 points
by
1_player
6y ago
|
120 comments
935.
▲
by
1_player
6y ago
Agreed. My approach is to use macros written by someone smarter than me (Ecto), but refrain from writing macros myself. Regular functions very often are enough. Macros are definitely abused, but there are some cases, fewer than you think, w
936.
▲
by
1_player
6y ago
I disagree. I think a common antipattern is piping only one thing. This is good and readable: nuclear_missile |> open_hatch() |> open_fuel_lines() |> fire_thrusters(:all) |> configure_gps(%Coordinates{...})
937.
▲
by
1_player
6y ago
How are snaps universal and smoother than Flatpak? For once, they're only really supported by Ubuntu and not its derivatives.
938.
▲
by
1_player
6y ago
What's with Wickr? I never heard of it until yesterday, when a message out of the blue on Reddit asked me why am I not using it (with the excuse that I said I didn't like it, which is false), and now this poster with no comment hi
939.
▲
by
1_player
6y ago
https://hn.algolia.com/?dateRange=all&page=0&prefix=true&que...
940.
▲
by
1_player
6y ago
While not a guarantee, the number of donations is proportional to the number of users. Since they can't extort their current users for more money, the only hope for Signal is to get more users.
941.
▲
by
1_player
6y ago
The fact that it's a "secure collaboration platform" means it doesn't fill the same niche. I don't need a secure collaboration platform to talk with my family or friends. Also, no mention of free personal accounts h
942.
▲
by
1_player
6y ago
Journalists go where there is the news. These days, the news is on Twitter, and that is the real problem. Actually, the problem isn't Twitter per se, is that we've found out it's easier to digest (and regurgigate, and fabrica
943.
▲
by
1_player
6y ago
Mac is great, I would use it full time if Jobs and Apple hadn't decided gaming is for kids. It's my hobby, especially now that I'm locked home, and being unable to play the latest PC game is an unacceptable compromise for me.
944.
▲
by
1_player
6y ago
> I shudder when thinking of all the times I have wasted time trying to generalize something My programming life has improved for the better when my threshold to generalise and DRY is not when I need to use some piece of code in two diff
945.
▲
by
1_player
6y ago
Why is there a metric ton of whitespace between the image and the label? Why doesn't anyone care about pleasant design in the Linux world? It's arguably the reason one would pick Elementary OS, yet this is the result.
946.
▲
by
1_player
6y ago
And if it goes like it did for me, that smile will turn upside down in a month and you'll format your Linux partition and move to WSL2 on Windows even if you haven't used it in 20 years. That's it, I'm done. At least now
947.
▲
by
1_player
6y ago
The fact that people in 3rd world countries are more likely to get a phone plan that includes the most used app to keep in touch with friends and family. Sadly, when you're poor you couldn't care less about net neutrality if it me
948.
▲
by
1_player
6y ago
No one has ever heard of Signal anywhere, that's the point. It's not like it's very common elsewhere either. No one had ever heard of WhatsApp once. But now billions of people use it, why? I mentioned the new WhatsApp TOS to
949.
▲
by
1_player
6y ago
How do you explain rabbit starvation then?
950.
▲
by
1_player
6y ago
Fat is an essential nutritional component. As an example, cholesterol is necessary to produce hormones such as testosterone, estrogen and cortisol. Thankfully, it's pretty much impossible to avoid if you eat meat. Carbs are not essenti
951.
▲
by
1_player
6y ago
Also not to forget that modern fruits and vegetables are nothing like the ones we've spent much of our evolution with. I would guess honey would have been the most sugary thing available, and still guarded by a swarm of angry bees.
952.
▲
by
1_player
6y ago
Calorie counting is illuminating. I've been able to eat 4000 kcal of mostly carbs in one sitting and perhaps up to 7000 kcal in one day, and I need some effort to eat 2000 kcal of meat/fat in one sitting (about 1kg of steak). In g
953.
▲
by
1_player
6y ago
> it doesn't take long before you just get sick of eating meat. The charm of it wears off. Yes and no. Food stops becoming an enjoyable activity, and just becomes fuel. If you're hungry, in the true sense of the word, you'
954.
▲
by
1_player
6y ago
I tried to read the K&R C book when I was 9. It went over my head hard. I tried again at 13 and something started to stick. The brain evolves really quickly at that age, at 7 you're still trying to learn not to eat that dog poop yo
955.
▲
by
1_player
6y ago
And e-mail as a base for instant messaging is not a great idea, as SMTP is not an instant protocol. Sure, most of the time it's fast, but doesn't guarantee speedy delivery at all, and timeout and redelivery timers are quite big.
956.
▲
by
1_player
6y ago
> Only the Signal on my desktop rings when I’m called, while the phone doesn't ring. Doesn't https://signal.org/blog/ice-forking/ deal with that? Hasn't it been implemented yet? I've had the
957.
▲
by
1_player
6y ago
Why he thinks centralisation is best: https://www.youtube.com/watch?v=Nj3YFprqAr8 (Title: 36C3 - The ecosystem is moving) To me, it's a sound argument and he's convinced me. Fighting the status quo by constantly i
958.
▲
by
1_player
6y ago
Assuming your wealth is 1/1e9 of his, you might have a couple dollars laying around as well.
959.
▲
by
1_player
6y ago
US only.
960.
▲
by
1_player
6y ago
You say that as if 2012 is the stone age. CSS hasn't changed much since its inception in 1996, mostly it's added some selector and layout rules in recent years.
More ›