Blog

  • Code Share: Real-time Code Sharing (like Pastebin)

    As a contract developer, I work remotely a lot. Additionally, I share code with a lot of fellow developers across Instant Messeaging (AOL, Yahoo, MSN, IRC, etc.). One of the tools I utilize is called Pastebin. It’s a site where you can post code, and it’ll give you a unique URL. You can then send that URL other others via IM by pasting it in. They can then see your code that you pasted, formatted and highlighted all pretty (since Pastebin knows a bunch of programming languages). It even has diff support (to see differences in code if someone modifies what you posted). Quick, simple, fast.

    Additionally, you can host Pastebin on your own site.

    I wanted to see if I could do it in Flex utilizing Flashcom to enable it real-time. Although Pastebin is fast, it still requires you to do a page refresh to see the most up to date postings. Since Flashcom is push based, I can see code as it’s posted, real-time.

    It doesn’t have diff support, but it does format ActionScript, Java, PHP, and Python using Igor Dimitrijevic’s phat Flash Text Formatter. Using Kevin Lynch’s deep linking, you can get a URL so you can send it to your colleagues’, and they can paste it into the browser and see your code that you posted.

    Any comments, problems, or suggestions let me know!

    3 days, 2 hours a night. I love Flex & Flashcom.

    Code ShareUse App | Source Under Creative Commons (ZIP)

    Known bugs:

    1. No code in there currently to get around Firewalls via HTTP Tunneling.
    2. Sometimes, Firefox’s URL does not update when you click on a code posting.
    3. Sometimes the view doesn’t change to show the code you just posted.
  • Microsoft IM + Yahoo! IM = *yawn*

    Yahoo! Media Relations

    Yahoo! Inc. and Microsoft Corp. today announced a landmark agreement to connect users of their consumer instant messaging (IM) services on a global basis.

    Why should I care? I can already talk to MSN users, Yahoo users… AND AOL users using Trillian. 1 program, 3 communities communicated to transparently.

    We tech geeks have it too good; we’re not slaves to brands’ and their whims. Maybe if Yahoo! would tell us how they got Flash games into their IM client, then maybe I’d care. Maybe.

    * Update: This is actually nice because now I can just use my MSN account to talk to MSN users AND Yahoo! users. Bringing together networks of people is a good thing.

  • AJAX & The Alternatives

    Pete Freitag linked to this article; JD has some coverage here, and Leo Bergman echoes my vendor independence contentions.

    I thought it was well written and agreed with what Alexei White said in regards to why AJAX is more hyped and talked about than Flex/Flash… well agreed if he had wrote that 12 months ago; the skillset argument doesn’t hold water anymore. I’ve always been frustrated that developers talk more about AJAX this past year vs. Flex & Flash when we do some many things better, and have been for a lot longer.

    Is Flash hard for developers to learn and utilize? Damn straight, that’s why I was employable for so long. It’s also one of the many reasons Macromedia made Flex and removed that barrier. According to his article, we now just have to fight off “Vendor Independance”… but… I like Macromedia!

    The vendor lock-in argument never made any sense to me. I think Patrick Mineault is very talented, and has done an extremely fantastic job with AMFPHP, an open-source alternative to Flash Remoting for PHP. He goes on vacation, or gets p@wned by border patrol again while I’m in the middle of a project, I still have the “email list” to help me through my project, right? And can we all be sure he won’t repeat the history of AMFPHP, and let it languish for another 6 months…? In all fairness, Patrick learned his lesson with BP, and is always improving AMFPHP and asking for the community’s input, so my example isn’t true of what he is truly about, or what AMFPHP is, was, or will potentially be. I’m just using him as an example of an open-source project I know of.

    Still, no thanks. Paying someone to build, maintain, and improve on a technology that works seems perfectly logical to me, and my skillset doesn’t suffer merely because I use Flex vs. Tapestry to develop web applications. I must not understand what vendor lock-in is. I use AMFPHP because it works, I like using it, and I need it for work and side projects. That’s it.

    However, the greatness of blogs shows through, and the comments in Alexei’s post nip at the veridity of it, and help give some corroboration as well as counter-points. David Mendels from Macromedia quickly corrects the skillset misnomer.

    Additionally, his blog is aptly titled “AJAX Info”, where mine is all about Flex and Flash so we’re both subjective. Furthermore, I’m somewhat of a technology bigot because while Macromedia has been cool publicly about saying “It’s not AJAX vs. Flash, but AJAX and Flash”, I’m like so not down with that.

    I really don’t understand what AJAX is appropriate for technically, and if someone says “This is an appropriate usage right here… now will you code in AJAX?”

    I’d reply, “Nope, I’ll just go find someone to pay me to code in Flex on some other project.”

    Regardless, I like reading articles that attempt to compare and contrast technologies, cutting through hype, ecspecially when those articles are written by someone in another area of technology than I am. Specially blog posts since you can get greater context reading the comments which are not deleted because they oppose the writer’s view(s); well done.

    In conclusion, I still think one thing programmers never mention is that our stuff, Flex & Flash, has the opportunity to look better, more customized, and true to a company’s brand. Although my wife’s awesome with a DIV, I can own with a MovieClip.

  • Flex Collapsable Panel

    As promised, here is the Collapsable Panel I made for Flex. See it in action if you haven’t yet.

    Code’s under a Creative Commons.

    Source Files – ZIP

    Example: