Skip to main content

The Norway Problem

The Norway Problem - why StrictYAML refuses to do implicit typing and so should you

Norway abbreviates as NO. This is a real word and some programs will alter that to a programming command, such as "False." A workaround in some cases is to put it in quotation marks, but you may not know that ahead of time. There are other cases like this, such as a person whose last name is Null.

Found via HN.

Related reading: Principle of least astonishment
A textbook formulation is: "People are part of the system. The design should match the user's experience, expectations, and mental models."

Comments

Popular posts from this blog

Old Blockquote Code Formulary of Life

blockquote{   font-size: 1.4em;   width:70%;   margin:50px auto;        padding:1.2em 30px 1.2em 75px;   line-height:1.6;   position: relative;    } blockquote::before{   font-family:Arial;   content: "\201C";   color:#663399;   font-size:4em;   position: absolute;   left: 10px;   top:-10px; } blockquote::after{   content: ''; }

Old Eclogiselle CSS

img {   border: 1px solid #555; } blockquote{   font-size: 1.4em;   width:70%;   margin:50px auto;   font-family:Open Sans;   font-style:italic;   color: #000000;   padding:1.2em 30px 1.2em 75px;   border-left:8px solid  #555 ;   line-height:1.6;   position: relative;   background:#ffffff; }

To Python or not to Python?

I've had a lot of people recommend Python to me as a language I should learn. I have just tripped across this comment on HN : Not to be a total smartass, but if your Python codebase is not that big yet, then the correct answer is none of the above- rewrite in a compiled language if you find the lack of static checks disturbing. I have been using "type checked" python for a year and let me tell you, it is not even 10% as good as having a real compiler. Python type checkers are not even close to 100% accuracy. Now I'm wondering if Python is really a good first language to learn or not.