Tag Info

Hot answers tagged

6

There's nothing like doing a real project to learn a language/framework. In my opinion, engineering things around needs is a ton more helpful in learning than just building something for the sake of building (e.g. personal website). Personally, having played with early Rails 2, I'm learning Rails 3 now myself and lucked out in a couple ways. One, a former ...


4

I've used cfthread alot with batch processing - and more around memory management than anything else. So if I have 80,000 records I need to process, I will often loop around, do the processing in a thread, and then join it back up at the end. This doesn't give me any speed increase, but it does often mean I don't get memory overflows as the data processed ...


4

CFthread has been a handy little tool :) One thing I've used cfthread for is background image resizing. If a user uploads a large image (let alone many users), it needs to be resized. Threads work well. Observations: As for sticky areas, one area that's sticky / unclear for starting out with threading is how to best pass information in and out of ...


2

You can use something along the lines of the Factory Pattern. A sample of it for your situation would be along the lines of public interface IExporter { void ExportXmlFile(string pathToFile); } public abstract class Exporter : IExporter { public Exporter() { } public virtual void ExportXmlFile(string pathToFile) { } } public class ...


2

Typically what I would do in that situation is to have one XML definition for each of your objects such as Hotels, Apartments and Buses. Choose the simplest possible definition, it will only be known to you. Example: <hotel id="1"> <property1></property1> <image type="X"></image> <image type="Y"></image> etc. ...


1

For anybody else considering this, I also recommend learning and working with a framework while still working in CF. CFWheels is the most similar to Rails, and you'd be able to transfer over the concepts pretty easily. But I'd recommend to any CF developer who hasn't done work in a framework to try it. It forces you to think in very different ways.


1

I have made the transition myself and I am loving it so far. Coming from Java/ColdFusion background, one of the hardest things to understand for me was how Object Oriented is different in Ruby. Well Grounded Rubyist is highly recommended book, if you are interested in understanding Ruby and the philosophy behind it. I was working on ColdFusion on my day ...


1

I am also working to come up to speed with Ruby from a ColdFusion background and while looking at RoR (reading and playing) have decided to build something (small commercial app) with the lighter weight Sinatra framework as a first project. Some of the best guidance I have found includes: http://pragprog.com/ http://peepcode.com/ It's definitely a big ...



Only top voted, non community-wiki answers of a minimum length are eligible