The Developers Creed – With some spin…

As a developer often times you’re asked to add some functionality to an existing website… And that’s where things get hairy.  It gets hairy because of several factors. 1 reason it may get harry is because, well the original project was built without a simple way to add new functionality without tearing it down and rebuilding some component.  Which is where the Developer’s creed comes in to play.  Which states: ‘If it seems easy, it’s not. If it seems hard, it probably is.’

But there’s actually some clean, well written, easy tom implement, and well supported features you can simply drop into an existing web application without breaking it or having to re-write logic to get the overall result.  AddThis is one of those features.

So we’ve all seen it before, it’s the nice,  easy-to-use feature that allows end users to share content from a website.  Here it is in action:

And here’s a look at the code:

<div>
     <a class="addthis_button_compact"></a>
</div>
<!--Javascript -->
<script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-537e3b783c0d8b68"></script>

Expanding on the example:

<div>
<div>
<a class="" fb:like:layout="button_count"></a>
<a class="" ></a>
</div>
<!--Javascript -->
<script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-537e3b783c0d8b68"></script>

Quick Customization:

This is what it looks like:

<div>

<a class="addthis_button_twitter" >
   <img src="https://g.twimg.com/Twitter_logo_blue.png" border="0" alt="Share on Twitter" />
</a>
</div>
<!--Javascript -->
<script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-537e3b783c0d8b68"></script>


“Now, who’s the real thugs, killers and gangsters?/ Set the revolution, let the things bust and thank us” MF Doom – Strange Ways