Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ajanuary
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
31.
▲
by
ajanuary
3y ago
It says the word exception right there on the sign. People keep parroting “exceptions should be for exceptions” like it means anything. Just because when it was first used it was given a particular name doesn’t really tell you anything abou
32.
▲
by
ajanuary
3y ago
You must have a real panic when you see a sign saying “No parking except weekends.” Weekends happen all the time!
33.
▲
by
ajanuary
3y ago
someMethod() could return an implementation of Employee that overloads the fire method to dispatch missiles. The point being, someMethod is doing some job that you want it to do. It is incredibly unlikely to simultaneously start doing a com
34.
▲
by
ajanuary
3y ago
Neat, I like the type safe prefix idea. Personally, I rarely find I need ids to be sortable, so I just go with pure randomness. I also like to split out a part of the random section into a tag that is easier for me to visually scan and matc
35.
▲
by
ajanuary
3y ago
To nitpick the nitpicky article, it was “OS X”, not “OSX”.
36.
▲
by
ajanuary
3y ago
Where I hit this all the time is when people have written various flavours of queues and item processors all wrapped up into one, where a timer or similar mechanism will trigger an item(s) to be processed. For example, a denouncing queue wh
37.
▲
by
ajanuary
3y ago
The park may only have one rule, but the quiz has several , including disregarding exceptions to the rule. Yet there are people arguing here that rule shouldn’t count because they disagree with it. Even on a meta level, this is an interesti
38.
▲
by
ajanuary
3y ago
Thanks. Unfortunately I saw too late for me to edit it now :)
39.
▲
by
ajanuary
3y ago
From what I can tell from that documentation, you do still have to remember to call `client.release()`. There's even a big warning saying "You must release a client when you are finished with it." Presumably you would want to
40.
▲
by
ajanuary
3y ago
The verbosity comes because they are demonstrating both how to write the library code to support the feature, and how to consume it. But in reality a lot of the time someone else will have written the library code for you. In this (still co
41.
▲
by
ajanuary
3y ago
It pushes the extra code to the function. If you're consuming a library, that's code you never have to write. Even if you are writing the code, it moves the complexity out from your business logic so it can focus on the important
42.
▲
by
ajanuary
4y ago
I think rather than dragging a region, which might get fiddly, I’d like to be able to hold down on a card and have it make a deck with all of the other cards it’s overlapping.
43.
▲
by
ajanuary
4y ago
I found Dan McCellans video [1] to be informative. Two of the biggest problems I took away from that video are: 1) KJV is based on later revisions of the text. Newer works are based on newer discoveries of older versions of the text, and so
44.
▲
by
ajanuary
4y ago
> There’s no need for adding say, len, to every object that needs a len function. fwiw, Ruby does the same thing, but using the Enumerable mixin rather than a free floating function. > I’d argue that is consistent. I don’t understand
45.
▲
by
ajanuary
4y ago
How often is this a concern in practice? It’s a question I’ve been thinking about a bunch and the answer I keep coming back to is that most of the time, encoding the type in the data exchange format isn’t actually very useful. So I would be
46.
▲
by
ajanuary
4y ago
Not really. The gp is complaining about the lack of semantics about what a missing value means. `String?` still doesn't tell me what not having a string means. `String|NotProvided` or `String|NotFound` or `String|InvalidInput` all have
47.
▲
by
ajanuary
4y ago
It isn’t. The SerenityOS project (of which this is an offshoot) was started by one person a few years ago, but it’s had a lot of contributors since then. https://github.com/SerenityOS/serenity/graphs/contribut
48.
▲
by
ajanuary
4y ago
> To be completely frank I've looked down on UK/EU broadcast techs a little ever since because being able to set everything to 25fps and forget about it is easy street. My experience has been the reverse. Because they can, peo
49.
▲
Video Observability
(evertz.io)
1 points
by
ajanuary
4y ago
|
0 comments
50.
▲
by
ajanuary
4y ago
1) I need to count the loops to work out where it breaks. 2) It’s sensitive to refactoring changing the nesting. That seems strictly worse than labelled breaks. What are the upsides?
51.
▲
by
ajanuary
4y ago
Apologies
52.
▲
by
ajanuary
4y ago
But not making it significantly worse is the bar requested: > that example needs to be significantly more readable and maintainable Yes, things can be slightly tidier with labelled breaks in some contexts. But that’s not a particularly h
53.
▲
by
ajanuary
4y ago
They…they did show it refactored…
54.
▲
by
ajanuary
4y ago
def _find_cell(table, search_query): for r, row in enumerate(table.rows): for c, cell in enumerate(row): if search_query.matches(cell.value): return (r, c) return None found = _find_cell(tab
55.
▲
by
ajanuary
4y ago
Ah yes, and there’s a 0% rate of peoples wallets being stolen.
56.
▲
Designing APIs for Success
(evertz.io)
2 points
by
ajanuary
4y ago
|
0 comments
57.
▲
by
ajanuary
4y ago
I think they mean: function addStuff(a, b) { return a + b; } function logFunction() { console.log(addStuff); } logFunction(); And have it log out that `addStuff` is defined on line 1.
58.
▲
by
ajanuary
4y ago
Not looked into it too closely yet, but for us it looks like there were also issues connecting between the two remaining AZ in our 3 node cluster.
59.
▲
by
ajanuary
4y ago
I’d forgotten all about this. When my work started pushing save soil events I didn’t connect it until now. Does anyone have any good resources talking about how dangerous this organisation actually is that I can use to persuade my company t
60.
▲
by
ajanuary
4y ago
The “sorry, there is no paper” error message popup obscures the order number. So if you missed it before the error message shows, you don’t know your number.
More ›