Notepad++ 4.2.2, and Javascript Pitalls

Categories: Tips, blog



New version of Notepad++ (4.2.2) have been released! My favourite text-editor.

A couple of posts (related to javascript) surfaced lately, either through Dzone or Reddit.

Pitfalls

From The 7 Deadly Sins of Javascript

  • Validating user input
  • Popping faux windows
    • You cannot bookmark, print, minimize, maximize, or organize them, but they sure do look real.
  • Striping tables like a Zebra
  • Floating or flying widgets
  • Dragging and dropping
  • Retrieving the date and time
  • Ignoring the rogue error

From Nine Javascript Gotchas

  • Comma Caused Coruption
  • The adulterous "this" can change what it refers to.
  • Identity Theft
  • String replace only replaces the first occurrence
  • MouseOut sometimes means MouseIn
  • ParseInt scoffs at your base ten numbering system
  • for loops over everything including the kitchen sink
  • Event Handler Pitfalls
  • Focus Pocus

I’ve been the victim of identity theft for several occasions (3rd javascript gotcha).  Heh.

I’d better equip myself with some small note-taking equipment, because when I’m waiting for the bus to arrive, ideas comes raining down on me and just like it came, it vanished upon arrival at the office.

1 Comment »

RSS feed for comments on this post. TrackBack URI

  1. That’s really great editor, not just a text editor but also a development environment. Like this very much :)

    Comment by Englishman — July 6, 2009 #

Leave a comment

XHTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Security Code:

GimpStyle Theme design by Horacio Bella.