{"id":3045,"date":"2015-06-01T08:19:25","date_gmt":"2015-06-01T08:19:25","guid":{"rendered":"http:\/\/www.dyalog.com\/blog\/?p=3045"},"modified":"2015-06-01T08:47:25","modified_gmt":"2015-06-01T08:47:25","slug":"response-to-name-colouring-for-dfns","status":"publish","type":"post","link":"https:\/\/www.dyalog.com\/blog\/2015\/06\/response-to-name-colouring-for-dfns\/","title":{"rendered":"Response to Name Colouring for Dfns"},"content":{"rendered":"<p>This post contains\u00a0comments to <a title=\"Name Colouring for Dfns\" href=\"http:\/\/www.dyalog.com\/blog\/2015\/05\/name-colouring-for-dfns\/\" target=\"_blank\">John Scholes&#8217; post on name colouring<\/a>; please continue to post any further comments with the original post.<\/p>\n<p>This is a very interesting topic \u2013 as the discussion has already showed, there are many different needs. It seems to me that some\u00a0of the suggestions that have been made are forms of highlighting that you would want to turn on briefly in order to search for something specific or highlight structures while editing code. For example:<\/p>\n<ul>\n<li>to verify the structure (highlight the matching parenthesis or bracket, or rainbow colouring of parentheses\/brackets)<\/li>\n<li>highlight all uses of a particular name or small group of names.<\/li>\n<\/ul>\n<p>I don\u2019t think I would really want any of these enabled for any length of time;\u00a0some of them can probably work very well if they are turned on and off as the cursor moves through the text (when on a parenthesis, highlight the other half of the pair, when on a name, highlight all uses of that name, etc).<\/p>\n<p>Making it easier to read statements through highlighting of &#8220;kinds&#8221; feels more like something that I might well want to have enabled all the time. However, I find colouring to be quite distracting \u2013 it breaks the flow for me. I would certainly want the colours to be as calm as possible for the most common kinds, getting more exciting for the &#8220;exotic ones&#8221;. So I would suggest:<\/p>\n<pre><strong> Array\r\n <\/strong><span style=\"color: #999999;\"><strong>Function\r\n <\/strong><\/span><strong><span style=\"color: #99cc00;\">MonOp<\/span>\r\n <\/strong><span style=\"color: #ff9900;\"><strong>DyOp<\/strong><\/span><\/pre>\n<p>For example:<\/p>\n<pre>   r\u2190(<span style=\"color: #999999;\">foo<\/span> <span style=\"color: #ff9900;\">dop<\/span> 1 2 3) mat <span style=\"color: #999999;\">hoo<\/span> <span style=\"color: #99cc00;\">mop<\/span> vec<\/pre>\n<p>I find that syntax colouring is much more effective in a bold font:<\/p>\n<pre><strong><strong>   r\u2190(<span style=\"color: #999999;\">foo<\/span>\u00a0<span style=\"color: #ff9900;\">dop<\/span>\u00a01 2 3) mat\u00a0<span style=\"color: #999999;\">hoo<\/span>\u00a0<span style=\"color: #99cc00;\">mop<\/span>\u00a0vec<\/strong>\u00a0<\/strong><\/pre>\n<p>But&#8230;looking at the above, I personally find the colours to be quite distracting; they make it hard for me to read the expression as a &#8220;sentence&#8221;. How about if we experiment with emphasis instead, for example we could make <em>functions<\/em> italic, <strong>monadic operators<\/strong> bold, and <strong><em>dyadic operators<\/em><\/strong> both.<\/p>\n<pre>   r\u2190(<em>foo\u00a0<strong>dop<\/strong>\u00a0<\/em>1 2 3) mat <em>hoo<\/em><strong>\u00a0mop<\/strong> vec<\/pre>\n<p>This is very subjective of course, but this is much more readable to me than the coloured version.<\/p>\n<p>Further comments <a title=\"Name Colouring for Dfns\" href=\"http:\/\/www.dyalog.com\/blog\/2015\/05\/name-colouring-for-dfns\/\" target=\"_blank\">with the original post please<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This post contains\u00a0comments to John Scholes&#8217; post on name colouring; please continue to post any further comments with the original post. This is a very interesting topic \u2013 as the discussion has already showed, there are many different needs. It &hellip; <a href=\"https:\/\/www.dyalog.com\/blog\/2015\/06\/response-to-name-colouring-for-dfns\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,23],"tags":[],"class_list":["post-3045","post","type-post","status-publish","format-standard","hentry","category-apl-language","category-musings"],"_links":{"self":[{"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/posts\/3045","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/comments?post=3045"}],"version-history":[{"count":7,"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/posts\/3045\/revisions"}],"predecessor-version":[{"id":3052,"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/posts\/3045\/revisions\/3052"}],"wp:attachment":[{"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/media?parent=3045"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/categories?post=3045"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/tags?post=3045"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}