Get outta my namespace

In FlexBuilder, the default project output folder is “bin”.  And, so it follows that often the default deployment folder is called “bin”.  And there’s this little checkbox in FlexBuilder which says “Copy all non-embedded items to bin folder” or something like that.  Which means, copy the folders, the graphics, anything within arms reach which was not included in the build.  And so it follows that the default deployment contains a lot of unnecessary stuff, and it all goes into the bin folder.

I suppose I don’t have to say how this irritates me.  But I will say it.  This irritates me.  Why?  Because default behavior is often what gets deployed.  How many pale blue halo themed Flex apps do you have to see to know that?  Do you remember VisualBasic, and the default Form layout?  Many other examples come to mind, as I try fervently to shut them out of that very same mind.  Default behavior can be aesthetically displeasing visually.  But that’s preferable to having a maintenance disaster in the making.

No need to wait for that, though.  Trouble can sometimes arrive on the express train.  ASP dot Net (Microsoft) also has designs for the “bin” folder.  On IIS, the bin folder is hidden by default, if ASP.Net (version?) is installed.  And it is hidden in an atypical way, so get ready for hours of fun trying to figure out what went wrong if deploying bin on this kind of infrastructure.  The die hard bit twitcher will find:


And announce that the problem has been “fixed”. Well, that’s just great. Hurry up and have the congratulations party quickly, because there isn’t much time before the next problem hits.

Why did Microsoft hide that folder, anyway? Because of a security issue. ASP dot Net uses the “bin” folder for compiled executables and other DLL’s.

The simplest solution is to not use the default behavior for Flex builder. The resulting swf’s should go in some other deployment folder, which may even be served up programmatically, and not be in the web document structure.


One Response to Get outta my namespace

  1. Hi there! I know this is kinda off topic but I’d figured I’d ask.
    Would you be interested in exchanging links or maybe guest authoring a blog article or vice-versa?
    My blog discusses a lot of the same subjects
    as yours and I think we could greatly benefit from each other.
    If you happen to be interested feel free to shoot me
    an email. I look forward to hearing from you! Fantastic blog by the way!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: