neetpiq

My two cents about software development on the web


By

Markdown link targeting to new window

source: markdown target=“_blank”

Is there a way to create a link in markdown that opens in a new window?

This is the answer I like. I added this script in the footer of the page so every link that points outside my own site is opened in a new window.

var links = document.links;

for (var i = 0, linksLength = links.length; i < linksLength; i++) {
   if (links[i].hostname != window.location.hostname) {
       links[i].target = '_blank';
   } 
}

By

JavaScript: The World’s Most Misunderstood Programming Language

sourceJavaScript: The World’s Most Misunderstood Programming Language by Douglas Crockford

Is JavaScript object-oriented? It has objects which can contain data and methods that act upon that data. Objects can contain other objects. It does not have classes, but it does have constructors which do what classes do, including acting as containers for class variables and methods. It does not have class-oriented inheritance, but it does have prototype-oriented inheritance.

The two main ways of building up object systems are by inheritance (is-a) and by aggregation (has-a). JavaScript does both, but its dynamic nature allows it to excel at aggregation.

Some argue that JavaScript is not truly object oriented because it does not provide information hiding. That is, objects cannot have private variables and private methods: All members are public.

But it turns out that JavaScript objects can have private variables and private methods. Of course, few understand this because JavaScript is the world’s most misunderstood programming language.

Some argue that JavaScript is not truly object oriented because it does not provide inheritance. But it turns out that JavaScript supports not only classical inheritance, but other code reuse patterns as well.

More infos:

By

Highlighting Javascript and HTML in Eclipse using PhoneGap

Using PhoneGap for Android in Eclipse there is not an editor with javascript and html highlighting syntax. You need to install JavaScript Development Tools (JSDT) and Web Page Editor plugins.

To install them:

Install New Software -> Web, XML, Java EE and OSGi Enterprise Development

then find out and select JavaScript Development Tools and Web Page Editor plugins and complete the installation.

By

javascript game of tron in 219 bytes

 

With some coworkers, we challenged each other to write the smallest possible game of tron in javascript (an exercice known as javascript golfing).

This page explains our final version (219 bytes). We initially worked alone but then exchanged ideas and tricks, so erling & mathewsb deserve most of the credits!

our code was originally 226 bytes, but “Cosmologicon” pointed out a way to save three whole bytes, bringing us to 223 bytes.

With p01, we then came up with a way to save another 11 bytes (making the game 212 bytes). He also suggested keeping track of score, which takes 9 bytes but is totally worth it!

skrounge found a way to save 2 more bytes, brining the game to 219 bytes.

source: alokmenghrajani.github.com

By

Linkflood #1-2012

  • 15 jQuery Calendar Date Picker Plugins on SmashingApps – In this collection, you will see some of the best jQuery Calendar Date Picker Plugins that will allow you output planners and calendars even more easily. Majority of these plugins are built on jQuery and jQuery UI (User Interface). With this collection, we tend to help those who need frameworks with great functionality.
  • BugNET Issue Tracker on CodePlex – BugNET is an issue tracking and project issue management solution built using C# and ASP.NET with MSSQL backend. The main goals are to keep the codebase simple, well documented, easy to deploy and scalable. The project has a clean look to it and is under active development. This is a mature project which has been hosted on Sourceforge.net since 2006 but has now moved across to CodePlex.
  • SQL Fiddle – SQL Fiddle is a tool for database developers to test out their SQL queries. If you do not know SQL or basic database concepts, this site is not going to be very useful to you. However, if you are a database developer, there are a few different use-cases of SQL Fiddle intended for you.
  • Building Twitter Bootstrap on A List Apart – A year-and-a-half ago, a small group of Twitter employees set out to improve our team’s internal analytical and administrative tools. After some early meetings around this one product, we set out with a higher ambition to create a toolkit for anyone to use within Twitter, and beyond. Thus, we set out to build a system that would help folks like us build new projects on top of it, and Bootstrap was conceived.
  • Learn jQuery in 30 Days – Each day you’ll be sent a free video lesson. At the end of the month, you’ll be able to confidently use jQuery in your projects, without help.