As software developers we are geard toward solving problems. I personally love putting the puzzle together and seeing things working as they should. As simple as it sounds the fact that we can write one line of code and render an image to the browser is just cool if you think about it. The reason it’s cool is, it works. I know what the code is going to do when I write it and there is always something satisfying about that.
If you have been in the development field for a while then you, like all of use, you surly have run into the issue at the end of the day that you can’t make work, get the defect fixed or whatever the case may be. Either it is lack of experience with the problem at hand or the stress of meeting a deadline just gets to you, or usually it’s a combination of both.
No matter how may times I run into this type of situation I always seem to forget what gets me through it 95% of the time. Settle down, take a deep breath and walk away for a while. Yes the problem is there and it will not magically fix itself but sometimes your brain needs time to work. It’s as simple as that.
More often than not I will get off work, sit on my front porch and enjoy a beer or glass of wine. If you love software development as much as I do, my brain is constantly working and thinking about it. When I have an issue that I can’t figure out I tend to walk through the code in my brain line by line without even really noticing that I am doing it. I have even had dreams where I see the solution.
In my opinion when we relax this is when the power of the human brain kind of takes over. We sometimes have to get out of our own way and let our natural problem solving self figure out, and complete the problem on it’s own. I encourage everyone, not just developers. If you have a problem to solve and the stress or deadline is getting to you, “walk away”. I promise that more often than not your brian just needs some time to process.
I found that over time I stopped using Dreamweaver. It was a great program to go from MS Frontpage when I was learning HTML back in 2000. The program just got to be a bit too slow and packed with way too many things that I didn’t need.
One thing that I always found myself using it for no matter what was it’s global find and replace. From time to time I would run across someone else’s project that was full of static html that I needed to globally change. Dreamweaver is always great at doing this for you. However I always felt a bit pissed about having to install Dreamweaver just to have this one feature. Well no more my friend.
I have been a supporter and user of Textmate for a wile but never had to do the old global find an replace. That’s because I don’t spend a lot of time in html projects. I am currently on a project where I am again editing a tone of static html files. Well after a little searching you can find that Textmate has global find and replace. Yay!
Here is the step by step
(on a side note a Windows user, and friend of mine Andy Matthews says that EditPlus is great for this as well)
1. Make sure you have all your project files open in a Textmate project. Then choose Shift>Command>F
2. Then type some text or code in that you are wanting to replace. You will notice that replace all is grayed out and not selectable. That’s ok > enter step 3.
3. Click Find (This will find all the instances of the text or code within all your project files.
4. Now you can choose replace all or you can choose to select the results one by one below and only do the replace on the files that you want.
5. After preforming the replace all you will notice that all the files that textmate preformed replace on will be gray in the project. This means they need to be saved. You can choose to save one by one or you can go to the menue and Save All.
One of my most trafficked section of my blog is on installing the Flex and Actionscript 3 bundles for TextMate. Don’t let the title fool you. I still really really really enjoy TextMate. It has some great features for sure, but I have to say that Adobe has made a great move in using the Eclipse Platform for code editing Flex and Actionscipt 3 projects.
In the past I have done a tutorial on how to using Flex Builder for your Flash projects and it was a bit of a pain in the ass to set this up. Hence the reason I did a tutorial on how to do it. Even Flash Evangelist Lee Brimelow was linking to my post on how to install the Flex and AS3 bundles. Well leave it to Lee to one up me and I am so glad that he did. For the last week or so Lee has been experimenting and creating tools for better setting up Eclipse so that you can do all your Flash “Actionscript 3” coding in Eclipse.
He is utilizing some existing plugins, creating some plugins of his own and has also created an AIR application that does a really good job of creating the project files and directories needed for editing AS3 code that is part of a Flash CS4 project. The last post he talked about moving this AIR app over to be an Eclipse plugin as well. I can’t wait to see what he comes up with. Do yourself a huge favor and head over to Lee’s site “TheFlashBlog.com” and check out what he has been doing. It will make your Actionscript and Flex development life a lot better and you will feel like you have all the tools that you need. It also sounds like this set up is only going to get better and better.
Using Flex to call CFC functions and Railo Part2
In this video I will set up a Flex project that will use the Railo 3.0 server and a coldfusion CFC to query a MySQL Database. The result that we get back will be displayed into a Flex List component.