Home
6 comments
gwbas1cover 2 years ago
I don't get the navigation pattern on the page. When I click on a link it opens a panel that I can't close, but then if I push refresh I'm taken to a page with a broken back button.<p>IMO: Just do a normal site where links take you to pages. Don't be creative with the UI. Maybe you could use some bog-standard wiki software?<p>The content itself looks very valuable, but because the UI is so bonkers, it's just too hard to use or link to.
评论 #34073095 未加载
评论 #34073276 未加载
评论 #34073852 未加载
评论 #34075731 未加载
评论 #34073070 未加载
评论 #34074399 未加载
marginalia_nuover 2 years ago
As a random tangent, this is an "exception pattern" (Java).<p><pre><code> int foo() {
int i;
for (i = 0; i < 10; i++) {
try {
throw new RuntimeException();
}
finally {
if (i < 5) {
continue;
}
else {
break;
}
}
}
return i;
}
</code></pre>
Compiles. Runs. Returns 5.
评论 #34075558 未加载
epolanskiover 2 years ago
The biggest "issue" with exceptions is that they are not exceptions at all.<p>One of the authors of Stoplight [1] once said during a talk that actually in an http transaction so many things can be wrong (30 major causes in a simple GET http request alone can derive from parsing) that writing http clients or mock servers is actually about handling errors and exceptions and stopping to think about those as unhappy cases, happy cases are, if anything, exceptions.<p>He then pushed for a complete rewrite of their tools using fp-ts and treating exceptions and errors as normal (algebraic) data types which brought critical failures and bugs to basically 0.<p><a href="https://github.com/stoplightio">https://github.com/stoplightio</a>
评论 #34076984 未加载
评论 #34074942 未加载
Izkataover 2 years ago
I'm on Firefox on Android and all I get is a neverending loading spinner and<p>> This site uses features not available in older browsers.<p>This site used to be good, just plain html, no javascript, little styling to get in the way... What happened to it?
civopsecover 2 years ago
The cool thing with all these links is that I can pick whichever one I want to talk about!<p>> Don't use assertions. BairsLaw applies - what will you do if the assertion fails? (Fix the bug, perhaps?) If you don't like the parameters you're given, throw an IllegalArgumentException. If you don't get a correct result, your UnitTest will tell you. There is no room left for assertions.<p>Disagree. How does the “law” apply? Yes, I would like to fix the bug if the assertion uncovers it… not unlike a validation error.<p>Assertions are only turned on in Java if `-ea`. Which means that you can fail fast for local development and maybe just log things in production.
monkpitover 2 years ago
c2 is such a dumpster fire