One of the rats achieved a 53.5% success rate (the author did not specify whether this was over the entire 800 data points or only the last 100). When tested on 800 data points, a purely random strategy would have a >…
Honest question: what are the benefits of using environment variables over having an actual configuration file (that is obviously not added to version control) ?
> structure = json.loads(json_string) Not quite. Let's say your JSON data contains the following attribute: "access" : [ "view", "edit", "admin" ], This field should be represented (in the language) as a set of values…
Easy language interoperability as a reason to choose Protobuf over JSON ? Mainstream languages support both JSON and Protobuf equally well, and the others tend to support JSON more often than Protobuf. Free backwards…
https://kdp.amazon.com/help?topicId=A301WJ6XCJ8KW0 If your list price is above $9.99, you get 35% royalties instead of 70%.
"... on GitHub."
Many companies offer production-grade hosting for open source applications. The fact that you are keeping your source closed tells me that you are afraid a competitor (or your clients themselves) could achieve an…
I'm curious: with HTTPS, how does the firewall know that it's an OPTIONS request ?
At RunOrg, we've encountered this a few times with our CORS-only API. It is against our philosophy to leave users behind only because they are locked in by outdated infrastructure. We still want to support them. It is…
This was just as easy in the previous generation :) OCaml has had this feature since 1996.
I have a hard time thinking of a situation where proper objects-and-functions code becomes easier to understand by removing the functions. Do you have any examples ?
The only difficulty is naming the abstraction :)
I would argue that functions have no business performing global side-effects in the first place --- these things are better expressed as state encapsulators (such as objects) anyway.
The Single Responsibility Principle is like Body Mass Index for code: it's easy to measure (humans have an innate sense of what "reponsibility" means) but outside of extreme situations it is not precise enough to base…
The most important rule about the future is that You Aren't Gonna Need It. If the future is known then it is called "requirements". Design is for protecting you from the unknown future: allowing code to be changed in…
What situation would require to mock a function ?
> Roll the mouse wheel inside of the tree view. If you are on a touchscreen device, pinch out. I have neither mouse wheel nor touchscreen device, only a touchpad.
Look at Kent's eight bullet points: half of them are unrelated to the DD part of TDD. Coming from a man who should know the difference between having automated tests for your software and partaking in test-driven…
Your link mentions three servers with 384GB RAM and 16 RAID10, and 16 cores each. Not very far from my 128GB 32 core example :)
A few years ago, I came up with a similar proposal, though more specifically aimed at making callbacks easier to manage. It was a simple syntax extension, as opposed to new semantics for the language. You would write…
From my understanding, it is not the evaluation of a "future" value that causes a context switch, but rather its use: - passing it as an argument to an operator or built-in function - accessing one of its its members -…
The main reason why writing concurrent code in JavaScript is not completely insane (just moderately so) is because of the single-threaded sequential execution model (also known as cooperative threading). Asynchronous…
I certainly agree that most people who pick NoSQL solutions "for scalability" never add a third server to their cluster.
You can check it here: https://github.com/RunOrg/RunOrg/tree/master/server/cqrsLib I'm sorry for the state of the official site, there will be one soon. A `Stream` corresponds to change events (I'm not sure these even…
NoSQL discussions always seem to conflate three very different things: storage engines, APIs and architecture. Where do we store the data ? How do we access it ? How do we make sure it scales ? The "traditional"…
One of the rats achieved a 53.5% success rate (the author did not specify whether this was over the entire 800 data points or only the last 100). When tested on 800 data points, a purely random strategy would have a >…
Honest question: what are the benefits of using environment variables over having an actual configuration file (that is obviously not added to version control) ?
> structure = json.loads(json_string) Not quite. Let's say your JSON data contains the following attribute: "access" : [ "view", "edit", "admin" ], This field should be represented (in the language) as a set of values…
Easy language interoperability as a reason to choose Protobuf over JSON ? Mainstream languages support both JSON and Protobuf equally well, and the others tend to support JSON more often than Protobuf. Free backwards…
https://kdp.amazon.com/help?topicId=A301WJ6XCJ8KW0 If your list price is above $9.99, you get 35% royalties instead of 70%.
"... on GitHub."
Many companies offer production-grade hosting for open source applications. The fact that you are keeping your source closed tells me that you are afraid a competitor (or your clients themselves) could achieve an…
I'm curious: with HTTPS, how does the firewall know that it's an OPTIONS request ?
At RunOrg, we've encountered this a few times with our CORS-only API. It is against our philosophy to leave users behind only because they are locked in by outdated infrastructure. We still want to support them. It is…
This was just as easy in the previous generation :) OCaml has had this feature since 1996.
I have a hard time thinking of a situation where proper objects-and-functions code becomes easier to understand by removing the functions. Do you have any examples ?
The only difficulty is naming the abstraction :)
I would argue that functions have no business performing global side-effects in the first place --- these things are better expressed as state encapsulators (such as objects) anyway.
The Single Responsibility Principle is like Body Mass Index for code: it's easy to measure (humans have an innate sense of what "reponsibility" means) but outside of extreme situations it is not precise enough to base…
The most important rule about the future is that You Aren't Gonna Need It. If the future is known then it is called "requirements". Design is for protecting you from the unknown future: allowing code to be changed in…
What situation would require to mock a function ?
> Roll the mouse wheel inside of the tree view. If you are on a touchscreen device, pinch out. I have neither mouse wheel nor touchscreen device, only a touchpad.
Look at Kent's eight bullet points: half of them are unrelated to the DD part of TDD. Coming from a man who should know the difference between having automated tests for your software and partaking in test-driven…
Your link mentions three servers with 384GB RAM and 16 RAID10, and 16 cores each. Not very far from my 128GB 32 core example :)
A few years ago, I came up with a similar proposal, though more specifically aimed at making callbacks easier to manage. It was a simple syntax extension, as opposed to new semantics for the language. You would write…
From my understanding, it is not the evaluation of a "future" value that causes a context switch, but rather its use: - passing it as an argument to an operator or built-in function - accessing one of its its members -…
The main reason why writing concurrent code in JavaScript is not completely insane (just moderately so) is because of the single-threaded sequential execution model (also known as cooperative threading). Asynchronous…
I certainly agree that most people who pick NoSQL solutions "for scalability" never add a third server to their cluster.
You can check it here: https://github.com/RunOrg/RunOrg/tree/master/server/cqrsLib I'm sorry for the state of the official site, there will be one soon. A `Stream` corresponds to change events (I'm not sure these even…
NoSQL discussions always seem to conflate three very different things: storage engines, APIs and architecture. Where do we store the data ? How do we access it ? How do we make sure it scales ? The "traditional"…