{"id":1002,"date":"2012-10-08T23:06:20","date_gmt":"2012-10-08T23:06:20","guid":{"rendered":"http:\/\/kera.name\/articles\/?p=1002"},"modified":"2012-10-08T23:09:57","modified_gmt":"2012-10-08T23:09:57","slug":"back-to-stack-overflow-and-look-whats-happened","status":"publish","type":"post","link":"https:\/\/kera.name\/articles\/2012\/10\/back-to-stack-overflow-and-look-whats-happened\/","title":{"rendered":"Back To Stack Overflow, And Look What&#039;s Happened"},"content":{"rendered":"<p>Last year <a href=\"https:\/\/kera.name\/articles\/2012\/03\/why-i-broke-up-with-stack-overflow\/\">I &#034;left&#034; Stack Overflow<\/a> but, as predicted, recently found myself trickling back onto it for the fame and glory.<\/p>\n<p>Then, this.<\/p>\n<p>My <a href=\"http:\/\/stackoverflow.com\/questions\/12789376\/are-char16-t-and-char32-t-misnomers\">question<\/a> (which you won&#039;t be able to view live without sufficient rep):<\/p>\n<blockquote>\n<p><sup><strong>NB:<\/strong> I&#039;m sure someone will call this subjective, but I reckon it&#039;s fairly tangible.<\/sup><\/p>\n<p>C++11 gives us new <code>basic_string<\/code> types <code>std::u16string<\/code> and <code>std::u32string<\/code>, type aliases for <code>std::basic_string<char16_t><\/code> and <code>std::basic_string<char32_t><\/code>, respectively.<\/p>\n<p>The use of the substrings <code>\"u16\"<\/code> and <code>\"u32\"<\/code> to me in this context rather implies &#034;UTF-16&#034; and &#034;UTF-32&#034;, which would be silly since C++ of course has no concept of text encodings.<\/p>\n<p>The names in fact reflect the character types <code>char16_t<\/code> and <code>char32_t<\/code>, but these seem misnamed. They <em>are<\/em> unsigned, due to the unsignedness of their underlying types:<\/p>\n<blockquote>\n<p><code>[C++11: 3.9.1\/5]:<\/code> [..] Types <code>char16_t<\/code> and <code>char32_t<\/code> denote distinct types with the same size, signedness, and alignment as <code>uint_least16_t<\/code> and <code>uint_least32_t<\/code>, respectively [..]<\/p>\n<\/blockquote>\n<p>But then it seems to me that these names violate the convention that such unsigned types have names beginning <code>'u'<\/code>, and that the use of numbers like <code>16<\/code> unqualified by terms like <code>least<\/code> indicate fixed-width types.<\/p>\n<p>My question, then, is this: <strong>am I imagining things, or are these names fundamentally flawed?<\/strong><\/p>\n<\/blockquote>\n<p>It was a polarising question, with as many upvotes as downvotes, and it was closed but managed to attract a string of re-open votes, not to mention a high-powered and professional debate in the comments. Admittedly, discussion is not supposed to take place in SO comments, but there we go.<\/p>\n<p>I didn&#039;t mind it being closed, though of course I voted to re-open.<\/p>\n<p>But the kicker is what moderator <a href=\"http:\/\/stackoverflow.com\/users\/16587\/george-stocker\">George Stocker<\/a> did with it: after posting the following comment&#8230;<\/p>\n<blockquote>\n<p>The problem with this question is the last sentence, &#034;Are these names fundamentally flawed?&#034; Let&#039;s imagine for a second that the answer is &#039;yes&#039;. how does that &#039;yes&#039; answer help us? It doesn&#039;t. <\/p>\n<\/blockquote>\n<p>&#8230; he used his moderator powers to <em>delete the question outright<\/em>.<\/p>\n<p>Now question deletion, in my day, was a power of last resort, reserved only for questions of such a clear lack of value that they amounted to nothing more than <a href=\"http:\/\/www.jesse-anderson.com\/2011\/09\/a-few-million-monkeys-randomly-recreate-shakespeare\/\">monkeys writing Shakespeare<\/a>, or viagra spam. It overrides the open\/close-voting that has made Stack Overflow such a powerful community-driven tool in the past.<\/p>\n<p>But it would seem that during my time away, this has changed. Whether or not you agree with me that since the question was tagged <code>language-lawyer<\/code> the question is completely relevant (if the answer is &#034;yes&#034; then that helps us to rationalise about and hopefully improve the C++ language), is it not deeply disturbing that moderators are now seemingly running around Stack Overflow, deciding what should be forever deleted, <em>on a whim<\/em>?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Last year I &#034;left&#034; Stack Overflow but, as predicted, recently found myself trickling back onto it for the fame and glory. Then, this.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[21,12,63],"_links":{"self":[{"href":"https:\/\/kera.name\/articles\/wp-json\/wp\/v2\/posts\/1002"}],"collection":[{"href":"https:\/\/kera.name\/articles\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kera.name\/articles\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kera.name\/articles\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kera.name\/articles\/wp-json\/wp\/v2\/comments?post=1002"}],"version-history":[{"count":5,"href":"https:\/\/kera.name\/articles\/wp-json\/wp\/v2\/posts\/1002\/revisions"}],"predecessor-version":[{"id":1205,"href":"https:\/\/kera.name\/articles\/wp-json\/wp\/v2\/posts\/1002\/revisions\/1205"}],"wp:attachment":[{"href":"https:\/\/kera.name\/articles\/wp-json\/wp\/v2\/media?parent=1002"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kera.name\/articles\/wp-json\/wp\/v2\/categories?post=1002"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kera.name\/articles\/wp-json\/wp\/v2\/tags?post=1002"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}