Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
raiflip
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
raiflip
4y ago
At that point you're left with two benefits: 1) Organizing your codebase so that it is easy to find which functions operate on which data 2) Controlling access to those methods on the programming language level. I.E, TankerService is t
2.
▲
by
raiflip
4y ago
So you're filtering specifically for timeslots where the end date is null and therefore guaranteeing that you return a timeslot dated to now?
3.
▲
by
raiflip
4y ago
FP has also benefited from a hype cycle, and FP does improve code in a lot of ways. Making your data immutable makes it easier to reason about, and pure functions prevent surprises. However if your argument is state is bad, and FP avoids st
4.
▲
by
raiflip
5y ago
Sometimes it sounds like bay area programmers think how expensive their area is, is how it is for programmers elsewhere. I also get paid around the same range in NYC, but my mortgage is nowhere near 10k, my taxes eat maybe 40%, and I can de
5.
▲
by
raiflip
5y ago
"Turn around time to get a server spun up was ~6-8 weeks." -> ok this one threw me for a loop. I can literally get an EC2 server spun up within minutes inside Amazon. But as others have stated org quality varies a lot. If you a
6.
▲
by
raiflip
5y ago
I think this is absolutely it. A lot of best practices go down the drain when the compiler compiles the bytecode. As such a lot of best practices are about people, not the computer. APIs can be just as stable behind a network or a library,
7.
▲
by
raiflip
5y ago
It seems reductionist to say Amazon primarily wraps around open source. What about EC2? S3? Glue? DynamoDB? Many of the services that provide the most value are services Amazon has built out.
8.
▲
by
raiflip
6y ago
Regardless of whether or not gravitons actually exist, it is feasible that the US government will want to signal to adversaries that they do have this technology. After all, a deterrent is useless if your adversary doesn't know it exis
9.
▲
by
raiflip
6y ago
Old Testament version of Christianity? You mean Judaism?
10.
▲
by
raiflip
6y ago
Types are just labels that a parse has already been done and doesn't need to be done again. Use them when you don't need to parse again, don't when you do want to parse again.
11.
▲
by
raiflip
6y ago
Eh I can see where you are coming from, but I don't necessarily agree with that. At least here in the US, corporations never accepted to unions as legitimate. It always took giant draw out strikes.
12.
▲
by
raiflip
6y ago
The drip is definitely correlation until proven to be causation. So it is possible the drop was a function of a common underlying cause. The reason no other explanation makes sense to me is that any purely market based explanation, like ene
13.
▲
by
raiflip
6y ago
Graph created by the Washington Post: https://www.washingtonpost.com/resizer/7IbsRIhRFbTYRuEjla6ki... You can see union membership was on the decline since the 1950s, but it accelerated around the 70s. It is hard to se
14.
▲
by
raiflip
6y ago
For sure
15.
▲
by
raiflip
6y ago
A fairly simple explanation that for some reason I don't see a lot of is the drop in union membership density around this time period. Such a drop would decrease bargaining power and therefore decrease the rate of wage increase
16.
▲
by
raiflip
6y ago
Totally agree, that’s a good point.
17.
▲
by
raiflip
6y ago
That example seems a bit odd as a design. You’re throwing an exception to represent a no result, but suppressing it to convert the exception to a none. Monads give you the convenience while being consistent.
18.
▲
by
raiflip
6y ago
What if you need to access 5 resources in a row, any of which can throw exceptions? A monad centralizes the repeated logic in its flatMap function.
19.
▲
by
raiflip
6y ago
A monad really is just a wrapper around a value, with flatMap and return. For some kinds of monads, like maybe, that’s all you need. But, some other kinds of monads need more logic. List is one, IO is another. In OOP language, sometimes all
20.
▲
by
raiflip
6y ago
I really like how this article builds up from a simple real life use case. Shameless plug for my own article that did something similar about a week ago: https://medium.com/@ameltzer91/an-easy-to-understand-monad-g...
21.
▲
An attempt at an easy to understand monad guide
(medium.com)
2 points
by
raiflip
6y ago
|
0 comments
22.
▲
by
raiflip
6y ago
Thank you for being fair-minded on city vs suburban living. Too bad the top post is the usual city-hate.
23.
▲
by
raiflip
6y ago
I've dealt with whole teams of these kinds of people. They also get extremely defensive about anything they don't know. Even worse, this was particularly the case around proper testing. Suffice to say the team committed a lot of b
24.
▲
by
raiflip
6y ago
That's not quite right, and the author is reaching for a valid definition, but it also not quite getting it right (entropy is hard). Entropy is defined as: "It quantifies the number of microscopic configurations that are consisten
25.
▲
by
raiflip
6y ago
Another possibility is that the galaxy (and universe) is full of life, but the speed of light makes it impossible for life across the galaxy to interact.
26.
▲
by
raiflip
6y ago
From what I've read on China's mindset, they are impatient to regain middle-kingdom status. In other words, they are the economic, military, and cultural center of the world, and everyone else sends them raw materials. (trying to
27.
▲
by
raiflip
6y ago
Whatever you do, do NOT repeatedly draw penises. Bad stuff starts happening....
28.
▲
by
raiflip
6y ago
My question to people who think this is objectively a bad thing - given the usual line of thought to get that conclusion is that we shouldn't be prejudiced towards valuing humans any more than other living creatures (which makes sense)
29.
▲
by
raiflip
6y ago
That's interesting. I certainly do not claim to be an expert in raising cattle. Perhaps there are smarter ways we can raise cattle. Is that why the grass-fed label is so important?
30.
▲
by
raiflip
6y ago
Necessary is not the right word. More efficient might be better. It's entirely possible to get protein from plants and omega-3 from vitamins, but from a human health point of view, is it more efficient?
More ›