Archives

Archives / 2004 / August
  • Javascript Anti-Spam Email Link (#2)

    Jason Mauss posted a neat Javascript trick to hide your email address from Spam Bots using a document.write, and I've seen similar techniques using some pretty advanced encoding functions.

    That got me thinking ... I'm sure it wouldn't be too hard to program a clever spam bot that would utilize the DOM to read rendered HTML (kind of like how JAWS does), instead of looking for email patterns. What about using a trick like this:

    <scr ipt> function MailMe(t,n,d) { window.location = 'mai' + 'lto:' + n + '@' + d + '.' + t; } </sc ript> <a href="JavaScript: MailMe('com','alex','papadimoulis')">Mail Me!</a>

    And if it's absolutely important that the email address appears visible to user (like, sales@example.com), just cut that as a GIF instead of using plain text. I haven't tried it yet, but I'm thinking, that could be the way to go.

    Read more...

  • Why VB Is Better Than C# ...

    ... because I said so. But seriously, while looking something in the newsgroups, I came yet another VB v. C# debate. Better-Intellisense this, Operator Overloading that. I really don't get it. And it got me thinking ... when it comes down to it, it's like arguing what's better: Chocolate or Peanut Butter [*].

    I recently starting using C# to develop things because apparently, all the employers around the Cleveland Area want C#. I really don't see a huge difference. Sure, it's static instead of Shared, out instead of ByRef (or something), things like that ... but it's nothing like the difference between ASP.NET and WindowsForms. That's where we should be arguing ...

    But, I'm surprised how easy it was for me to pick up and become equally (almost) productive with C#. My advice ... when you can, just work with both. Develop a small project in your alter-language. All it can do is help.

    [*] For the record, Peanut Butter is sooo much better than chocolate.

    Read more...