Why is the separator in a TypeScript TypeMemberList semicolon as opposed to comma?

As of TypeScript 1.6 or so, you can now use either , or ; as a delimiter in interface declarations or anonymous object types! The team decided that the flexibility to use one or the other outweighed the concerns listed in the ‘old answer’ section. You’ll still need to use ; in class declarations to … Read more

Is writing specifications for hobby projects the only way for them to be finished?

I don’t think writing specs is the solution to your problem. Clearly, your “hobby projects” are things that you find fun. You write the fun parts but then avoid the not fun parts that would be necessary to complete something. If you’re just “programming for fun” then good, you’re succeeding. I don’t think writing specs … Read more

What is protocol and host combined called?

I think the term you may really be looking for is origin, as in RFC 6454. An origin isn’t just scheme+host, but scheme+host+port, and URLs like https://example.com aren’t actually just scheme+host — because they express a (default) port too: 443, the default TLS port — just as in http://example.com there’s a built-in expression that the … Read more

Maximum Method Name Length

For C# I don’t believe there’s a specified hard limit. (Section 2.4.2 of the C# 5 spec doesn’t give a limit, for example.) Roslyn v2.2.0.61624 seems to have a limit of 1024 characters; this is way beyond the bounds of readability and even a sensible machine-generated name. For Java, section 3.8 of the spec states: … Read more

Chunking WebSocket Transmission

First, you need to differentiate between the WebSocket protocol and the WebSocket API within browsers. The WebSocket protocol has a frame-size limit of 2^63 octets, but a WebSocket message can be composed of an unlimited number of frames. The WebSocket API within browsers does not expose a frame-based or streaming API, but only a message-based … Read more

HTTP Spec: Proxy-Authorization and Authorization headers

Yes, that looks like a valid workflow for the situation you described, and those Authenticate headers seem to be in the correct format. It’s interesting to note that it’s possible, albeit unlikely, for a given connection to involve multiple proxies that are chained together, and each one can itself require authentication. In this case, the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)