mirror of
https://github.com/kennethreitz-archive/.com.git
synced 2026-06-21 15:51:00 +00:00
211 lines
5.2 KiB
HTML
211 lines
5.2 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<title>What's in a Language?</title>
|
|
<meta charset="utf-8" />
|
|
<link rel="stylesheet" href="./theme/css/main.css" type="text/css" />
|
|
<link href="./feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Kenneth's log ATOM Feed" />
|
|
|
|
|
|
|
|
|
|
<!--[if IE]>
|
|
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
|
|
|
|
<!--[if lte IE 7]>
|
|
<link rel="stylesheet" type="text/css" media="all" href="./css/ie.css"/>
|
|
<script src="./js/IE8.js" type="text/javascript"></script><![endif]-->
|
|
|
|
<!--[if lt IE 7]>
|
|
<link rel="stylesheet" type="text/css" media="all" href="./css/ie6.css"/><![endif]-->
|
|
|
|
</head>
|
|
|
|
<body id="index" class="home">
|
|
|
|
<a href="http://github.com/kennethreitz/">
|
|
|
|
<img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" />
|
|
|
|
</a>
|
|
|
|
<header id="banner" class="body">
|
|
<h1>
|
|
<a href=".">Kenneth's log </a>
|
|
</h1>
|
|
|
|
<nav><ul>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li >
|
|
<a href="./category/Life.html">Life</a>
|
|
</li>
|
|
|
|
<li class="active">
|
|
<a href="./category/Code.html">Code</a>
|
|
</li>
|
|
|
|
<li >
|
|
<a href="./category/projects.html">projects</a>
|
|
</li>
|
|
|
|
|
|
</ul></nav>
|
|
|
|
</header><!-- /#banner -->
|
|
|
|
|
|
<section id="content" class="body">
|
|
<article>
|
|
<header> <h1 class="entry-title"><a href="whats-in-a-language.html"
|
|
rel="bookmark" title="Permalink to What's in a Language?">What's in a Language?</a></h1> </header>
|
|
|
|
|
|
|
|
<div class="entry-content">
|
|
<footer class="post-info">
|
|
<abbr class="published" title="2009-07-15T04:13:00">
|
|
Wed 15 July 2009
|
|
</abbr>
|
|
<p>In <a href="./category/Code.html">Code</a>.
|
|
|
|
</p>
|
|
</footer><!-- /.post-info -->
|
|
|
|
|
|
<p>What do developers want in a language?</p>
|
|
<ul class="simple">
|
|
<li>Lots of Available Resources / Documentation</li>
|
|
<li>Large Standard Library</li>
|
|
<li>Portability</li>
|
|
<li>Speed of Development</li>
|
|
<li>Easy to Read</li>
|
|
<li>A Community of Developers</li>
|
|
</ul>
|
|
<p>Yes, Easy to read. You'd really be surprised how much this helps a
|
|
developer. Well over half the time a C++ Developer spends writing
|
|
code is actually time spent deciphering what he's already written.
|
|
Certainly the amount of time spent doing this decreases over time,
|
|
but even if you've been reading C++ for 20+ years, there still is
|
|
and always will be a lot of junk in the middle that subconsciously
|
|
slows you down.</p>
|
|
<p><strong>Solution?</strong> Whitespace.</p>
|
|
<p>Whitespace is fantastic. It's standard practice to use indenting
|
|
all over the place. Why not use that as block delimiters? We do it
|
|
anyway. Lets get rid of Curly Braces.</p>
|
|
<p>Here is a clip of C#. No shortcuts taken:</p>
|
|
<pre class="literal-block">
|
|
String output = new String();
|
|
output = "Hello, World!";
|
|
try {
|
|
System.Console.WriteLine(output);
|
|
}
|
|
catch (Exception e) {
|
|
raise;
|
|
}
|
|
</pre>
|
|
<p>Here is the same clip of code in Python:</p>
|
|
<pre class="literal-block">
|
|
output = "Hello, world!"
|
|
try:
|
|
print(output)
|
|
except:
|
|
raise
|
|
</pre>
|
|
<p>Nicer, eh?</p>
|
|
|
|
</div><!-- /.entry-content -->
|
|
|
|
|
|
|
|
<div class="comments">
|
|
<div id="disqus_thread"></div>
|
|
<script type="text/javascript">
|
|
var disqus_identifier = "whats-in-a-language.html";
|
|
(function() {
|
|
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
|
dsq.src = 'http://kennethreitz.disqus.com/embed.js';
|
|
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
|
})();
|
|
</script>
|
|
</div>
|
|
|
|
|
|
|
|
</article>
|
|
</section>
|
|
|
|
|
|
<section id="extras" class="body">
|
|
|
|
|
|
<div class="blogroll">
|
|
<h2>Links</h2>
|
|
<ul>
|
|
|
|
<li><a href="http://github.com/kennethreitz">GitHub Repos</a></li>
|
|
|
|
<li><a href="http://flickr.com/kennethreitz">Photography (Flickr)</a></li>
|
|
|
|
<li><a href="http://twitter.com/kennethreitz">Latest Tweets</a></li>
|
|
|
|
<li><a href="http://www.linkedin.com/in/kennethreitz">Résumé</a></li>
|
|
|
|
<li><a href="http://pick.im/kenneth-reitz">Design Portfolio</a></li>
|
|
|
|
<li><a href="http://laterstars.com/kennethreitz">Later Stars</a></li>
|
|
|
|
</ul>
|
|
</div><!-- /.blogroll -->
|
|
|
|
|
|
|
|
<div class="social">
|
|
|
|
<ul>
|
|
<li><a href="./feeds/all.atom.xml" rel="alternate">atom feed</a></li>
|
|
|
|
|
|
|
|
<li><a href="http://facebook.com/kennethreitz">Facebook</a></li>
|
|
|
|
</ul>
|
|
</div><!-- /.social -->
|
|
|
|
|
|
</section><!-- /#extras -->
|
|
|
|
<footer id="contentinfo" class="body">
|
|
<address id="about" class="vcard body">
|
|
© 2011 Kenneth Reitz & co. All Rights Reserved.
|
|
</address><!-- /#about -->
|
|
|
|
</footer><!-- /#contentinfo -->
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
var disqus_shortname = 'kennethreitz';
|
|
(function () {
|
|
var s = document.createElement('script'); s.async = true;
|
|
s.type = 'text/javascript';
|
|
s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
|
|
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
|
|
}());
|
|
</script>
|
|
<script type="text/javascript" charset="utf-8">
|
|
var disqus_developer = 1;
|
|
</script>
|
|
|
|
</body>
|
|
</html> |