This article is not about null but about NaN, a special case floating-point value which is the result of diving by zero.
> So what we have is writings written hundreds of years later documenting an event with no earlier writings verifying that documentation. Unfortunately, this is the case for much of ancient history. Doesn’t mean nothing…
Try applying the same criteria to say the battle of Thermopylae. What does the Persian sources say?
As far as I know we have no Persian sources for the batte of Thermopylæ. Historians also agree that Xerxes couldnt possibly have had a million man strong army. Does this mean the war is entirely fictional? Ancient…
How so? Are the Greek the sea people then?
We dont know that.
Whould would you have preferred?
The point of art (like music and litterature) is the art itself. Code is a craft, it is means to an end. It can still be beautiful and impressive and creative though, but it is a different thing. Code which doesn’t do…
Best solution: Learn SQL and understand the relational model. Learn data modelling and normalization. Then choose a good ORM which does not get in the way, but saves a bunch of boilerplate code.
Ah, that sounds like a classic mistake - rewriting a system from scratch without fully understanding what the system actually does.
Are you referring to some particular projects, or to the early stages of every project?
The article refers to the astronomical calendar, which is differnent from the gregorian by having a year 0, which makes calculations simpler. After year 1 the years have the same numbers, but before 1 they are…
YAGNI is not about things you know you need, because then you wouldn’t write any code ever.
How so?
Stalk their children? What policy are you referring to?
Very charitable to call it a “grey zone” to stalk and dox children of politicians you dislike.
Usually it is not a secret, but currently the prime minister and her family live at a secret address.
Probably, but note that cross-domain GET-requests have been supported since the beginning of the web, since this is literally how links works. So while a badly implemented GET handler can indeed cause security issues,…
Depends. If the abstraction is just a level of indirection, then it is usually pretty simple to eliminate - just hit “inline function” in the refactoring tool a few times. On the other hand it is pretty difficult and…
You are kind-of both right. The spec defines a subset of cross-domain requests called “simple requests” - basically such requests as has always been supported by a plain html form. These are not affected by same-origin…
It is the difference between opt-in and opt-out. Servers certainly can (and probably should) check request origin. But it is not something they usually do, since cross-domain requests from JavaScript wasn’t possible…
Yes, the original CSRF attack using a plain html form does not even require JavaScript. CORS does not address this scenario. But cross-domain post is only allowed if the payload is form data encoded. A Json payload from…
CORS allows JavaScript to make requests to different domains than the origin of the page. By default (without CORS), JavaScript can only communicate with the origin domain.
“Can still talk to, but cant read the response” is a bit too simplied. You can’t post a json payload for example, which is how a JavaScript client would usually talk to a backend. You can only post using form data…
Example: I post “fungame.com” on Show HN, you visit it, and in the background the JavaScript calls Facebook on your behalf (using your Facebook authentication cookie) and adds me as friend. By default such cross-domain…
This article is not about null but about NaN, a special case floating-point value which is the result of diving by zero.
> So what we have is writings written hundreds of years later documenting an event with no earlier writings verifying that documentation. Unfortunately, this is the case for much of ancient history. Doesn’t mean nothing…
Try applying the same criteria to say the battle of Thermopylae. What does the Persian sources say?
As far as I know we have no Persian sources for the batte of Thermopylæ. Historians also agree that Xerxes couldnt possibly have had a million man strong army. Does this mean the war is entirely fictional? Ancient…
How so? Are the Greek the sea people then?
We dont know that.
Whould would you have preferred?
The point of art (like music and litterature) is the art itself. Code is a craft, it is means to an end. It can still be beautiful and impressive and creative though, but it is a different thing. Code which doesn’t do…
Best solution: Learn SQL and understand the relational model. Learn data modelling and normalization. Then choose a good ORM which does not get in the way, but saves a bunch of boilerplate code.
Ah, that sounds like a classic mistake - rewriting a system from scratch without fully understanding what the system actually does.
Are you referring to some particular projects, or to the early stages of every project?
The article refers to the astronomical calendar, which is differnent from the gregorian by having a year 0, which makes calculations simpler. After year 1 the years have the same numbers, but before 1 they are…
YAGNI is not about things you know you need, because then you wouldn’t write any code ever.
How so?
Stalk their children? What policy are you referring to?
Very charitable to call it a “grey zone” to stalk and dox children of politicians you dislike.
Usually it is not a secret, but currently the prime minister and her family live at a secret address.
Probably, but note that cross-domain GET-requests have been supported since the beginning of the web, since this is literally how links works. So while a badly implemented GET handler can indeed cause security issues,…
Depends. If the abstraction is just a level of indirection, then it is usually pretty simple to eliminate - just hit “inline function” in the refactoring tool a few times. On the other hand it is pretty difficult and…
You are kind-of both right. The spec defines a subset of cross-domain requests called “simple requests” - basically such requests as has always been supported by a plain html form. These are not affected by same-origin…
It is the difference between opt-in and opt-out. Servers certainly can (and probably should) check request origin. But it is not something they usually do, since cross-domain requests from JavaScript wasn’t possible…
Yes, the original CSRF attack using a plain html form does not even require JavaScript. CORS does not address this scenario. But cross-domain post is only allowed if the payload is form data encoded. A Json payload from…
CORS allows JavaScript to make requests to different domains than the origin of the page. By default (without CORS), JavaScript can only communicate with the origin domain.
“Can still talk to, but cant read the response” is a bit too simplied. You can’t post a json payload for example, which is how a JavaScript client would usually talk to a backend. You can only post using form data…
Example: I post “fungame.com” on Show HN, you visit it, and in the background the JavaScript calls Facebook on your behalf (using your Facebook authentication cookie) and adds me as friend. By default such cross-domain…