Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
erpellan
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
13 ms
·
121.
▲
by
erpellan
8y ago
Part of the problem is the ANSI SQL standard specifies that 'TIMESTAMP' does not have any offset/timezone applied. The postgres docs pretty much admit this is a bad idea and recommend all timestamps be stored as 'TIMESTA
122.
▲
by
erpellan
8y ago
It gets even more fun if you need to answer questions like: "When this event was scheduled 6 months ago for today at 2pm, what UTC time did that represent then vs now?". Timezone rules also change. So when you're dealing with
123.
▲
by
erpellan
8y ago
Postgres have done a really good job here. It not only understands offsets (which most devs think are timezones) it also understands timezones. What's the difference? GMT-8 is an offset. America/New_York is a timezone. This become
124.
▲
by
erpellan
8y ago
I'm quite excited by ReasonReact. React with strong types! https://reasonml.github.io/reason-react/
125.
▲
by
erpellan
8y ago
The Philippines, Brazil, a few other places from time to time. https://www.theguardian.com/world/2017/apr/02/philippines-pr...
126.
▲
by
erpellan
8y ago
Ask yourself what assumptions you are baking into the design. Can you make them more explicit? How likely are they to change? Where multiple approaches are on the table, favour the ones with the fewest assumptions. Be especially critical wh
127.
▲
by
erpellan
8y ago
FP is not new. OO is not new. They are tools in the toolkit. Take an object with a bunch of instance methods. They are all equivalent to functions with a hidden first parameter. If you make 'this' explicit you've got pure fun
128.
▲
by
erpellan
8y ago
Office design is highly vulnerable to bikeshedding. It _seems_ obvious so everyone has an opinion without realising the implications. I saw a costly office refurb that made everything open plan including the kitchen/breakout area. With
129.
▲
by
erpellan
8y ago
Had real trouble with a .technology TLD a couple of years ago. A large number of major sites (who were big enough to know better) simply refused to accept it as a valid email address. We had to make throwaway accounts to use any of Atlassia
130.
▲
by
erpellan
8y ago
The author appears to have reinvented Communicating Sequential Processes (CSP). http://www.usingcsp.com/cspbook.pdf The (simplified, and as I understand it) gist of concurrency in CSP is that the program is expressed as a s
131.
▲
by
erpellan
8y ago
A lot of the objections to direct giving seem to coalesce to: "But [some non-zero percentage] will just blow the cash on drugs and sex. So nobody should get anything!"
132.
▲
by
erpellan
8y ago
This is appalling. The operators of the site should be charged for criminal negligence. You don't get to call it stealing if all it took was 3 keystrokes in the address bar of a browser. Backspace. Number. Return. Hacked!!
133.
▲
by
erpellan
9y ago
I don't see anything in RSS itself that would preclude using it for an algorithmically curated feed, any more than HTML does. It's just a protocol.
134.
▲
by
erpellan
9y ago
Does 'RSS' also mean Atom feeds? The terms seem to be used interchangeably. I had thought Atom was supposed to be a better alternative to RSS but it doesn't seem to have landed. Is it necessary to always offer both? Most site
135.
▲
by
erpellan
9y ago
Don't modify the scores of old posts, start newer ones with a higher score. Check out how reddit does it: https://medium.com/hacking-and-gonzo/how-reddit-ranking-algo... The concept is that the time-based part of
136.
▲
by
erpellan
9y ago
RECOVER - worst named command ever. It (AFAIR) was designed to recover data from a failing drive. The way it did this was to turn every disk sector into an individual file or similar. Thus rendering the drive unbootable and in practice had
137.
▲
by
erpellan
9y ago
S-expressions can be mechanically converted to HTML. HTML is more verbose and error prone: </closingtag> vs ) <form><table></form></table> oops. Can't happen with an s-expression
138.
▲
by
erpellan
9y ago
Which they could presumably also do by injecting their own packets, not snooping on everyone else's?
139.
▲
by
erpellan
9y ago
What about zcash? As I understand it has much stronger privacy, but almost nobody understands it so people are skeptical. I'm surprised it doesn't get more attention.
140.
▲
by
erpellan
9y ago
Feel free to exert that 'just a very little bit of effort', for all our sakes. If it's that easy it shouldn't take more than a couple of days, right? :) I jest. ECMAScript is the most widely installed programming platfo
141.
▲
by
erpellan
9y ago
From my experience, it can definitely be learned. I went through a very deliberate process of approaching social interaction and communication skills as I would an interesting programming problem. I refined a mental model and tested it out
142.
▲
by
erpellan
9y ago
The House of Commons closest US analogy is the House of Representatives. So, it's the equivalent of being asked to testify before Congress.
143.
▲
by
erpellan
9y ago
Kotlin solves the problem elegantly with the 'apply' and 'run' extension functions. fun foo() = Runtime.getRuntime().apply { addShutdownHook(Thread { println("Bye!") }) traceMethodCalls(
144.
▲
by
erpellan
9y ago
Kotlin is what Java would look like if it was invented today. Type inference, explicit non-nullabililty, first class functions, function types, extension methods, etc. Eveyone I know who's used Kotlin would not willingly go back to Jav
145.
▲
by
erpellan
9y ago
The real achievement here is managing to run up a bill of 1B CAD while still failing to deliver. I mean, I can think of a few projects that probably cost several million/yr but 100x? Astonishing. There's an anecdote floating aroun
146.
▲
by
erpellan
9y ago
I think it's a matrix reference. "Tell me Mr Anderson, how will you make a phone call... if you're unable to speak?"
147.
▲
by
erpellan
9y ago
I lost interest after 'that is a fatal mistake'. Fatal mistake? Really? An unrecoverable failure? So, none of the software I've written in the last decade worked, despite all evidence to the contrary? Right.
148.
▲
by
erpellan
9y ago
Irks. (I checked - TIL an 'erk' is a male member of the RAF of the lowest rank.) Or did I just miss the ironic joke?
149.
▲
by
erpellan
9y ago
The very first example implies its own counterexample. In most decks of cards there are 2 jokers.
150.
▲
by
erpellan
9y ago
I think this article only applies to older PDFs. From what I can tell, PDF2.0 changed the encryption to AES-256. Almost none of the PDF tools the article mentioned can even recognise PDF2.0 https://www.pdflib.com/knowledge-b
More ›