<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>documentation on S Anand</title>
    <link>https://www.s-anand.net/blog/tag/documentation/</link>
    <description>Recent content in documentation on S Anand</description>
    <generator>Hugo -- 0.156.0</generator>
    <language>en-us</language>
    <lastBuildDate>Wed, 09 Feb 2011 17:08:02 +0000</lastBuildDate>
    <atom:link href="https://www.s-anand.net/blog/tag/documentation/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>HTML 4 &amp; 5: The complete Reference</title>
      <link>https://www.s-anand.net/blog/html-4-5-the-complete-reference/</link>
      <pubDate>Wed, 09 Feb 2011 17:08:02 +0000</pubDate>
      <guid>https://www.s-anand.net/blog/html-4-5-the-complete-reference/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;https://www.s-anand.net/blog/assets/HTML4and5TheCompleteReference.webp&#34;&gt;&lt;img alt=&#34;HTML-4-and-5-The-Complete-Reference&#34; loading=&#34;lazy&#34; src=&#34;https://www.s-anand.net/blog/assets/HTML4and5TheCompleteReference.webp&#34; title=&#34;HTML-4-and-5-The-Complete-Reference&#34;&gt;&lt;/a&gt; &lt;a href=&#34;http://itunes.apple.com/us/app/html-4-5-the-complete-reference/id414940489?mt=8&#34;&gt;HTML 4 &amp;amp; 5: The Complete Reference&lt;/a&gt; is an iPhone / iPad app that does exactly what it says: a reference for HTML 4 and 5.&lt;/p&gt;
&lt;p&gt;It has a list of all tags, clearly demarcated as HTML4, HTML5 or both. The application is fairly easy to scroll through to find the tag or attribute you want. Clicking on a tag, you get:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;a brief &lt;strong&gt;description&lt;/strong&gt; of what it’s for&lt;/li&gt;
&lt;li&gt;what &lt;strong&gt;attributes&lt;/strong&gt; are valid – the good part is you can see clearly which attributes are specific to the element, and which ones are common (like class, id, etc.). You can also see the possible values for the attribute, which helps.&lt;/li&gt;
&lt;li&gt;and an &lt;strong&gt;example&lt;/strong&gt; of how the tag is used. The examples are quite simplistic, and there’s only one per tag, but it does have a rendered version of the code, which helps.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You can also scroll through the list of attributes and see which tags they’re valid for.&lt;/p&gt;
&lt;p&gt;The part that quite interested me was the “characters” or HTML entities. Quite often, I’d want the pound (£) or right angle quotes (»), but wouldn’t know the character or entity reference. So far, I’ve been using this &lt;a href=&#34;http://www.howtocreate.co.uk/sidehtmlentity.html&#34;&gt;HTML entity reference&lt;/a&gt; to search for characters, where I can just type in the word (e.g. pound or quote) and it filters the list to show what I want. I was really hoping to see that on the app, but was disappointed. It lets you search, but it’s not search as you type. And the result points you to a &lt;strong&gt;section that contains&lt;/strong&gt; the character – not directly to the character. (It’s a bit difficult to find the character in the longer sections).&lt;/p&gt;
&lt;p&gt;There’s also a section where you can see elements by “task” – e.g. Forms, Link-related, Document Setup, Interaction, etc. This is a pretty useful break-up if you’re looking for the right element for the job, or browsing for interesting new elements to discover in HTML5. (I found the &lt;code&gt;&amp;lt;menu&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;command&amp;gt;&lt;/code&gt; tags this way.&lt;/p&gt;
&lt;p&gt;You do have the option of just downloading the &lt;a href=&#34;http://www.whatwg.org/specs/web-apps/current-work/html-a4.pdf&#34;&gt;PDF version of the HTML5 spec&lt;/a&gt; and reading it in iBooks, of course. So while I find the book useful, without a search-as-you-type feature, I suspect it won’t do much for my speed of looking up things, so I’ll just stick to the spec for the moment.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Disclosure&lt;/strong&gt;: I’m writing this post as part of O’Reilly’s blogger review program. While I’m not getting paid to review the app, I did get it for free.&lt;/p&gt;
</description>
    </item>
    <item>
      <title>Organisational amnesia</title>
      <link>https://www.s-anand.net/blog/organisational-amnesia/</link>
      <pubDate>Tue, 19 May 2009 20:23:36 +0000</pubDate>
      <guid>https://www.s-anand.net/blog/organisational-amnesia/</guid>
      <description>&lt;p&gt;It’s amazing how much of a dependency there is on individuals writing IT systems. Reminds me of that &lt;a href=&#34;http://dilbert-search.appspot.com/dilbert/19940610&#34;&gt;Dilbert strip&lt;/a&gt;:&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://www.s-anand.net/blog/assets/flickr-19940610_3545523502_o-gif.webp&#34; title=&#34;Dilbert: 1994-06-10&#34;&gt;&lt;img alt=&#34;19940610&#34; loading=&#34;lazy&#34; src=&#34;https://www.s-anand.net/blog/assets/flickr-19940610_3545523502_o-gif.webp&#34;&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;A few weeks ago, I was trying to figure out in what happens when there are multiple promotions. (Our client is a retailer.) I mean, if there’s a phone that costs £100 and there are 2 promotions: 10% off on phones and £10 off on phones. Do you apply the 10% off first and pay £80 or the £10 off and pay £81?&lt;/p&gt;
&lt;p&gt;Funnily enough, the organisational answer is, “I don’t know.” The person who determined the logic is no longer with the firm. The person who wrote the code was a contractor and moved on to another project. The vendor hadn’t gotten around to documenting the code. Sure, the code’s &lt;strong&gt;there&lt;/strong&gt;, and you just had to read it to figure out what it does. But no human knew what it was supposed to do.&lt;/p&gt;
&lt;p&gt;Last week, there was a decision to rewrite some code that was 10 years old. A colleague who wasn’t quite involved in this work said, “I’m going to have to set aside 2-3 weeks for this. I wrote this stuff when I was a developer. The docs have vanished. The business owners have vanished. I’m the only one who has any clue on what it’s supposed to do.”&lt;/p&gt;
&lt;p&gt;This week, we were trying to figure out how their store locator system works. After fiddling around with &lt;a href=&#34;http://www.fiddler2.com/&#34;&gt;Fiddler&lt;/a&gt;, and seeing that it used Microsoft Virtual Earth, I was able to figure out that it identified stores near a location using a simple JSON API. But can we get the documentation around that? Nope. Tough luck. Nobody knows how it works any longer.&lt;/p&gt;
&lt;p&gt;Personally, I don’t think this is unusual. We forget. Companies forget. But it’s usually good if what we forget is derivable. That’s how I got through my high-school physics exams: not by remembering stuff, but by being able to derive the stuff from a few principles.&lt;/p&gt;
&lt;p&gt;Organisations can do the same. But to be able to do that, you need to have commonly understood principles. As Fred Brooks put it in &lt;strong&gt;The Mythical Man Month&lt;/strong&gt;,&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;I contend that conceptual integrity is the most important consideration in system design. It is better to have a system omit certain anomalous features and improvements, but to reflect one set of design ideas, than to have one that contains many good but independent and uncoordinated ideas.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;One of the biggest enemies of conceptual integrity is growth. Too many people too soon, and the important decisions are taken by people who’ve never had a long chat about things. There’s another reason not to grow too fast.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&#34;comments&#34;&gt;Comments&lt;/h2&gt;
&lt;!-- wp-comments-start --&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Kalpesh&lt;/strong&gt; &lt;em&gt;20 May 2009 2:27 am&lt;/em&gt;:
I guess, it should help having a debug log of things as the code is executed &amp;amp; the decision made in the code based on the data available.
e.g. the code will put the log (conditionally)
gave 10% discount, thus derived value of 90 (100 - 10)
reducing $10 of the calculated value above = 80 (90 - 10)
Basically, having a log of the sequence of steps, the state on which the code relies, input any function takes and output thereafter (but in a user understandable manner or in business language).
One step closer to this could be writing code in a language that is relevant to business
I feel we still write our code in terms of technology (arrays, exceptions, serializations etc).
I don&amp;rsquo;t mean that we should not worry about those things. But, those things should be covered under a layer which makes easy for business people OR a new comer to come back to the code and read it like a specification.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href=&#34;http://nagarjunv.blogspot.com&#34;&gt;Nagarjun&lt;/a&gt;&lt;/strong&gt; &lt;em&gt;13 Dec 2009 10:50 am&lt;/em&gt;:
We faced same situation while trying to find out how the comission is calculated. In the end it so happened that the commision was being calculated based on data that was 5 years old. Nobody had realised that the new data was not comin into the system :)&lt;/li&gt;
&lt;/ul&gt;
&lt;!-- wp-comments-end --&gt;
</description>
    </item>
    <item>
      <title>Laymen want documentation they understand</title>
      <link>https://www.s-anand.net/blog/laymen-want-documentation-they-understand/</link>
      <pubDate>Wed, 04 Sep 2002 12:00:00 +0000</pubDate>
      <guid>https://www.s-anand.net/blog/laymen-want-documentation-they-understand/</guid>
      <description>&lt;p&gt;Programmers: learn from this. &lt;a href=&#34;http://advogato.org/article/374.html&#34;&gt;Laymen want documentation they understand&lt;/a&gt;. (Wish someone told me 5 years ago.)&lt;/p&gt;
</description>
    </item>
    <item>
      <title>Web Developers Virtual Library</title>
      <link>https://www.s-anand.net/blog/web-developers-virtual-library/</link>
      <pubDate>Sat, 09 Oct 1999 12:00:00 +0000</pubDate>
      <guid>https://www.s-anand.net/blog/web-developers-virtual-library/</guid>
      <description>&lt;p&gt;Web design guidelines are available at the &lt;a href=&#34;http://www.wdvl.com/&#34;&gt;Web Developer&amp;rsquo;s Virtual Library&lt;/a&gt;.&lt;/p&gt;
</description>
    </item>
  </channel>
</rss>
