Products

Products
Viewing By Category : Bits and Bytes / Main
February 2, 2010

Adobe Misses Flex Boat

It's my opinion that Adobe is making a mistake renaming Flex Builder to Flash Builder. Simply put, when it comes to business applications, businesses still don't want to buy a Flash solution. Adobe should catch this wave created by the Flex craze and call it just that, Flex.

June 20, 2009

Consume object or object property

Here it is in a nutshell. I have a controller cfc in my framework that directs execution instructions to the business model cfc's. But I'm wandering if I should pass whole objects, like a user object, and get values as needed from it's methods within the business model? Or should I just pass the object's properties to the business model classes as needed?

Another way to put it is this(model/securityService.cfc):

instance.securityGateway.login(User.getUsername(),User.getUserpassword());

or

instance.securityGateway.login(User);

The business model gateway in this example would be something like(model/data/gateway/securityGateway.cfc):

<cffunction name="login"..>
<cfargument name="username"../>
<cfargument name="password"../>
...
</cffunction>

or

<cffunction name="login"..>
<cfargument name="User" type="model.data.gateway.User"../>
..
</cffunction>

Maybe because I'm not a seasoned OO veteran but I'm looking at this and trying to figure out the best course and can't decide which one to take. From the service cfc do I pass in the user object or it's properties (username & password)?

For now I'm passing the object's properties if the gateway method only requires data and doesn't need to access any of the objects other methods like setters. If the gateway method here needed to use the object's methods instead of just it's properties, then I'd pass the entire object. So what do you think is best practice?

June 4, 2008

Quick comment about code comments

Do any other programmers out there have the same problem I do about coding comments? They actually get in my way and hender my efforts more than help anything. I'm not talking about being too lazy to comment your own code, I'm talking about reading other's code also.

Frankly, in trying to figure out what someone left behind, I read the code. It always makes more sense than the comments and it's just faster. Instead of having to both read the comment and the code, I can just read the code and get on with it.

It's my belief that comments were once useful when code was much harder to read. Things like ruf = af * int(irp) when you had to back up and find out what all the letters were for before going forward. But now you have something more like registeredUserFunds = accountFunds * int(interestRatePrime). This is mostly due to cheaper and more expansive memory allocation with better bit utilization, I think. But you can see where a comment for the later is unwarrented.

Granted, there are still languages out there that could use some comments and arguably they should mature with the rest of the OO world. And there are still programmers who actually still use 2 or 3 letters for long parameter names, and they should grow up too.

To sum it up, good programming and good coders should have no need for comments except around possibly main ideas and sections. An architect doesn't need blueprints to pretty much figure out how a building was built. He can size it up with a skilled eye.

Personally, other than commenting main sections, I think commenting every other freaking line should go by way of the Dodo bird. Please stop overusing comments so I can read your damn code! Trust me, I know how to read without reading instructions.

September 29, 2007

Speed Test results

My speed test at home on Comcast Cable high speed:

July 24, 2007

Gabbly.com - Free chat on your site.

Google has a pretty cool chat application. I wish I thought of this myself. Place gabbly.com in front of any url address to see a chat text box in the upper right corner. Also has option to make it transparent and I think move it around.

Chat with me here (when I'm available) at: http://gabbly.com/www.cfcdeveloper.com

Or just go to http://www.gabbly.com

One good use I found so far is to send the link to a web site client with the url of a page I want to talk about. Now if only the chat box would stay up for two people while surfing and the browser changes for both at the same time. Surf and chat simultaniously.

July 18, 2007

Top Secret Code

Lets have some fun. Can you figure out this secret coded message?

*4 ^(& c1n 4*5&$# %6*2 (n# (&%, ^(& 26(&93n'% 61v# 1 )$(b9#m @*%6 %6# $#2%.

Maybe this one is a little easier for you.

566822 822 777733366 31122834 56611666 5663 04344489722 96663.

I just kinda sat here and thought this up. I wonder if it's hard to break? It's very easy to use.

June 30, 2007

CSS tips for input button

You can use
input[type="submit"] {..}
to specify certain input types to target in your CSS. Tested in the latest Firefox and IE.

Remember to use

cursor:pointer; cursor:hand;
to cover a hand cursor over whatever input you want for targeting Firefox and IE.

June 25, 2007

My Latest Web Site Creation

Pure Aloe Beauty

Created for my wife as she wants to get into the cosmetic beauty skin care business.

The thing to note for my developer peers is what I used to create it, CF Shopkart 4.5. The free open source version is 4.5 and is no longer supported, but is available as a community project. The guy who created it is working on another completely new re-write of the code and is calling his new version CF ShopkartSE, now available as a beta with some features not yet finished. The free 4.5 version though is very much finished and extremely easy to manipulate and recode yourself, take a look at my wife's Pure Aloe Beauty site compared to his out-of-the-box default look. It is all ColdFusion based but could use a lot of code rewrite to take advantage of MX capabilities like CFC's, MVC, and other OOP patterns etc.. So if you need an excellent ColdFusion e-commerce starter kit with barebone parts you can put together, this is a golden find. In regards to features, in my opinion CF Shopkart 4.5 ranks right up there with oscommerce.

April 27, 2007

DIY My Next PC Build

I generally build my own PCs from scratch. I may be looking here soon to upgrade from my present system, a P4 2.4GHz backed by 512MB mem, sitting on a Asus P4PE BP and running a Radeon 9000(??).

So whats next? Core 2 Duo! Oh yea. Here's the components I would like to piece together:

Case: Antec TX-640B w/400w PS
MOB: Asus P5N SLI
CPU: Core 2 Duo E6420 Conroe 2.13GHz
Mem: Corsair 2x1GB PC-6400
GPU: XFX GeForce 7600GT

And keeping my old HDD and DVDR, I'm looking at about $600. Not bad eh? Might even flip for a 19" flat LCD to replace my current 21" old school (or run dual mons).

April 26, 2007

Technology Food for Thought

Unmanned vehicles, cars that drive themselves. Good idea but I think our roads are the biggest obstacle. As we grow, technology is getting ahead of our ability to use it. If we began building roads in the past with the thought that they would need to be built a certain way for future technology, technology today would be easy to develop and cheaper to initiate.

Have you seen the new "Tree" cell towers. Cell towers built to resemble trees, kind of. To me they look like a ball of tangled Christmas lights on a stick. But that's not my point. I think technology is beautiful itself and shouldn't be hidden. In a thousand years from now are we just going to have a fake planet altogether. Like a bunch of "Tree" cell towers but no real trees. If we can find another way to clean the air, control the climate, and produce oxygen then I say get rid of the trees. They're a breading ground for termites and other destructive substances like allergens. What would be so bad about a planet without nature, especially if the inhabitants never knew it any other way. Sure, I would miss it, but my great grandchildren's children wouldn't.

Eye tracking technology, cameras that follow the eye and control the mouse on the screen sounds really cool. Maybe they could make a blink equal a mouse click; right, left, both (middle). But there is a limitation.. Cross-eyed backwoods rednecks. Oh right, what would they be doing around a computer any ways.

MP3's are taking over the radio waves and putting radio DJ's out of work. Now we have stations poping up that play a random of MP3 songs over the Internet. You don't have to have a "radio" in the old fashion sense to hear music in your house or soon in the car. You use a web station to tune in to your favorites and just listen. Of couse your eyes aren't always on the monitor to view the ads that todays web stations are depending on for income. I see a time from now that either your going to hear automated ads randomly inserted or you'll have to start paying just like satelite radio.

More Entries


Copyright © 2005-2006 Clint Willard. All rights reserved.
Aura skin for Clint Willard's BlogCFC inspired by Brooks Bilson's Bolg.
All trademarks property of their owners.