Orthodox C++ (sometimes referred as C+) is minimal subset of C++ that improves C, but avoids all unnecessary things from so called Modern C++. It's exactly opposite of what Modern C++ suppose to be.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Html exposing (span) | |
import Html.Attributes exposing (property) | |
import Json.Encode exposing (string) | |
main = span [ property "innerHTML" <| string "x × y"] [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// GET | |
NSURL *URL = [NSURL URLWithString:@"http://example.com/resources/123.json"]; | |
AFHTTPSessionManager *manager = [AFHTTPSessionManager manager]; | |
[manager GET:URL.absoluteString | |
parameters:nil | |
progress:nil | |
success:^(NSURLSessionTask *task, id responseObject) { | |
NSLog(@"JSON: %@", responseObject); | |
} | |
failure:^(NSURLSessionTask *operation, NSError *error) { |
Author: Chris Lattner
How do you send information between clients and servers? What format should that information be in? What happens when the server changes the format, but the client has not been updated yet? What happens when the server changes the format, but the database cannot be updated?
These are difficult questions. It is not just about picking a format, but rather picking a format that can evolve as your application evolves.
By now there are many approaches to communicating between client and server. These approaches tend to be known within specific companies and language communities, but the techniques do not cross borders. I will outline JSON, ProtoBuf, and GraphQL here so we can learn from them all.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
curl http://releases.llvm.org/6.0.0/llvm-6.0.0.src.tar.xz -O | |
tar xvzf llvm-6.0.0.src.tar.xz | |
rm llvm-6.0.0.src.tar.xz | |
cd llvm-6.0.0.src | |
# get clang | |
pushd tools | |
curl http://releases.llvm.org/6.0.0/cfe-6.0.0.src.tar.xz -O |
OlderNewer