Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
goto11
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
56 ms
·
661.
▲
by
goto11
5y ago
You don't need a FK to point to multiple tables. You would have the reference in the other direction, from multiple different tables to one table.
662.
▲
by
goto11
5y ago
> To make sum types work, you NEED to support embed relations inside relations If that is the case, sum types would be in violation of first normal form.
663.
▲
by
goto11
5y ago
Probably because the same can already be expressed using relations and foreign keys.
664.
▲
by
goto11
5y ago
What is your level? Do you already know how to draw in a realistic style?
665.
▲
by
goto11
5y ago
The classic Disney style is due to technical constraints. Animation was inked and painted on transparent sheets overlayed on static backgrounds. The animated figures have to be simple and well-defined shapes because otherwise it is just to
666.
▲
by
goto11
5y ago
Interesting! Is this because ligne claire does not "guide the eye" as much? Comics often eliminate all inessential backgrounds to let you focus on the action, but ligne claire style never does that.
667.
▲
by
goto11
5y ago
Waterson is not really considered ligne claire though. The line is more sketchy and backgrounds are often simplified or eliminated.
668.
▲
by
goto11
5y ago
There are plenty of sex scenes on cable/streaming though. It is just the big Hollywood blockbusters which need to play it safe by alienating as few demographics as possible.
669.
▲
by
goto11
5y ago
I don't know what you mean with "sugar", but the fact that several different types can represent the exact same set of possible values means that a type cannot be considered as just a set of possible values. > The same typ
670.
▲
by
goto11
5y ago
I'm a fan of static typing, but if people think it will protest them from logical errors like forgetting about DST, then they are actually worse off.
671.
▲
by
goto11
5y ago
I think this is too simplistic for real-world programming languages. For example TypeScript has the "any" and the "unknown" types. Both encompass the same set of values (any possible value which can be represented in the
672.
▲
by
goto11
5y ago
I don't see how this is different between type systems. No type system I know of guarantee you handle leap years correctly.
673.
▲
by
goto11
5y ago
> That's the 'D' in SOLID -- dependency inversion. An object's dependencies should be defined in terms of abstract interfaces, not concrete classes DI does not talk about the interface keyword in Java. It talks about
674.
▲
by
goto11
5y ago
Monads are a particular pattern for function chaining. In OO terminology it is more like an interface than an object, so I would prefer to say that an object support a monad pattern rather than an object is a monad. JS promises also sup
675.
▲
by
goto11
5y ago
Can you link to an example to someone making such a claim? Just so I'm sure I understand what you are referring to.
676.
▲
by
goto11
5y ago
Developers will destroy everything good! DDD has some great ideas about how to model things and talk about things. But it is not a concrete architecture prescribing a particular number of layers or lines of code.
677.
▲
by
goto11
5y ago
It seems a lot of everyday things is a religion then. What if I hire a plumber to fix my sink and he says he need to replace a pipe to make it work. I know nothing about plumbing, so of course I trust the plumber even though I know any huma
678.
▲
by
goto11
5y ago
So if the restaurant claims the tomatoes are locally sourced and I don't personally verify... that is religion? I know the concept of religion is hard to define unambiguously, but come on.
679.
▲
by
goto11
5y ago
> “Believe in science” is just a new religion for the intellectual class. What does that even mean? If I believe the earth is round, then science is my religion? If I believe it is flat, then I am an atheist?
680.
▲
by
goto11
5y ago
Runtime errors means errors which occurs at runtime as opposed to compile time. Logical errors are a subset of runtime errors. Se for example https://en.wikipedia.org/wiki/Runtime_(program_lifecycle_pha... This is the
681.
▲
by
goto11
5y ago
No. Exceptions and errors are different things. An error is when something goes wrong due to a bug or unexpected condition. An exception is a signal in the runtime when an error condition have been detected. If an error does not generate
682.
▲
by
goto11
5y ago
The comment about abuse is obviously a tongue-in-cheek retort to the claims he converted on his deathbed.
683.
▲
by
goto11
5y ago
The question is, why was these run time error not caught by unit tests? Probably because there wasn't any tests - which means the code likely have numerous logical errors. Static typing is great, but it will not prevent against logical
684.
▲
by
goto11
5y ago
I'm not knocking Elm at all, I think it is a very interesting language. I'm saying it is not very productive to rewrite a buggy and brittle JavaScript app in another language because you think that will make the errors go away. A
685.
▲
by
goto11
5y ago
I'm sure Elm is a great language, but thinking it eliminates runtime errors is ridiculous. Of course it might eliminate exceptions , but exceptions are not errors, rather they are (sometimes) signals than an error have happened.
686.
▲
by
goto11
5y ago
So what happens if you divide by 0 in Elm?
687.
▲
by
goto11
5y ago
Someone who thinks all bugs will go away if the code is just rewritten in the hipster niche language de-jour, is probably a 0.1x developer. They may work hard but don't solve any real problems for the business and leave a mess to futur
688.
▲
by
goto11
5y ago
By the way, the Lewis trilemma is silly. It is possible for a person to be mistaken about something without being either mad or a liar (i.e. deliberately telling untruths). Regarding the Gospels it is well known they are written down deca
689.
▲
by
goto11
5y ago
> Religion (or theology) concerns itself with the reason that reality exists. All religions have a creation myth, but religion cannot be reduced to just the creation myth. That would just be deism which is basically a form of atheism.
690.
▲
by
goto11
5y ago
The original study (if I remember correctly) showed a 10x productivity difference between the most and least productive students on a given task. I find that very plausible. In real world settings the difference might be much larger, since
More ›